# Corsair > Corsair is an open-source SDK that lets your app integrate with hundreds of services (Gmail, Slack, GitHub, Linear, Google Calendar, and more). Run it in your own process: install plugins, sync data to your database, expose tools to agents over MCP, or call operations directly. ## Get started - [Introduction](https://docs.corsair.dev/getting-started/introduction.md): What Corsair is, how the SDK works, and when to use it. - [Quick start](https://docs.corsair.dev/getting-started/quick-start.md): Get a local Corsair instance running with Hub. - [Set up with your agent](https://docs.corsair.dev/getting-started/set-up-with-your-agent.md): One prompt that wires Corsair Hub into your app end to end. ## Adapters - [Handlers](https://docs.corsair.dev/adapters/handlers.md): Mount the /api/corsair route — Next.js, Express, Hono, or any Web-standard runtime (SvelteKit, Remix, Astro, Nuxt, Workers, Bun, Deno). - [Vanilla client](https://docs.corsair.dev/adapters/client.md): createCorsairClient — typed fetch wrapper for the management API, any JS runtime. - [React hooks](https://docs.corsair.dev/adapters/react.md): createCorsairReactClient — typed useTenants, useConnectionStatus, and friends. ## Core concepts - [Integrations](https://docs.corsair.dev/concepts/integrations.md): Instances, plugins, permissions, and root credentials. - [Auth](https://docs.corsair.dev/concepts/auth.md): How Corsair authenticates to third-party services. - [Permissions](https://docs.corsair.dev/concepts/permissions.md): Scope what each instance and tenant can do. - [Multi-tenancy](https://docs.corsair.dev/concepts/multi-tenancy.md): Tenants, connect links, and per-customer credentials. - [Database](https://docs.corsair.dev/concepts/database.md): Synced cache, schemas, and reading data. - [Webhooks](https://docs.corsair.dev/concepts/webhooks.md): Receive and route provider webhooks. - [Hooks](https://docs.corsair.dev/concepts/hooks.md): Run logic on Corsair events. - [API](https://docs.corsair.dev/concepts/api.md): Call plugin operations directly with `tenant.run()`. - [Error handling](https://docs.corsair.dev/concepts/error-handling.md): `CorsairApiError` and failure modes. - [TypeScript](https://docs.corsair.dev/concepts/typescript.md): Generated types and Zod schemas. ## Authentication - [API key](https://docs.corsair.dev/concepts/api-key.md): API-key based auth for providers. - [OAuth](https://docs.corsair.dev/concepts/oauth.md): OAuth-based auth for providers. - [OAuth process](https://docs.corsair.dev/concepts/oauth-process.md): Manual-mode production OAuth flow and connect links. ## Provisioning - [Provisioning](https://docs.corsair.dev/concepts/provisioning.md): Initialize integrations, accounts, and tenants with `setupCorsair` or the corsair CLI. ## Hub Optional hosted relay for the parts of Corsair that need a public URL — OAuth callbacks, connect pages, approvals. Stores none of your credentials. - [Overview](https://docs.corsair.dev/hub/overview.md): What Hub is and why it stores no credentials. - [Setup](https://docs.corsair.dev/hub/setup.md): Wire the SDK into your app — install, /api/corsair route, keys, self-registration. - [Environments](https://docs.corsair.dev/hub/environments.md): Development vs production keys. - [Delivery URLs](https://docs.corsair.dev/hub/delivery-urls.md): How Hub delivers results; dev self-registration and production POST. - [Dashboard](https://docs.corsair.dev/hub/dashboard.md): Manage keys, connections, and delivery URLs. - [Manual or Hub](https://docs.corsair.dev/hub/manual-vs-hub.md): What you build in each mode. - [Permissions](https://docs.corsair.dev/hub/permissions.md): Scope what each environment can do. - [Hub REST API](https://docs.corsair.dev/hub/rest-api.md): Language-agnostic HTTP contract for non-JS backends. ## Use with AI Expose Corsair tools to agents over MCP, or wire them into agent SDKs and coding agents. - [MCP adapters](https://docs.corsair.dev/mcp-adapters/mcp-adapters.md): Local stdio MCP for agents and clients. - [Anthropic SDK](https://docs.corsair.dev/mcp-adapters/anthropic-sdk.md): Use Corsair tools with the Anthropic SDK. - [Claude Agent SDK](https://docs.corsair.dev/mcp-adapters/claude-sdk.md): `claudeMcpServerConfig` and `query()`. - [OpenAI Agents](https://docs.corsair.dev/mcp-adapters/openai-agents.md): Corsair tools in the OpenAI Agents SDK. - [Vercel AI SDK](https://docs.corsair.dev/mcp-adapters/vercel-ai.md): `streamText` / `generateText` with Corsair MCP tools. - [Mastra](https://docs.corsair.dev/mcp-adapters/mastra.md): Corsair tools in Mastra. - [OpenAI](https://docs.corsair.dev/mcp-adapters/openai.md): Responses API with Corsair MCP. - [Coding agents](https://docs.corsair.dev/mcp-adapters/coding-agents.md): Give Cursor, Claude Code, and other clients a local MCP server. - [Claude Code](https://docs.corsair.dev/mcp-adapters/claude-code.md): `.mcp.json` or `claude mcp add`. - [Cursor](https://docs.corsair.dev/mcp-adapters/cursor.md): `.cursor/mcp.json` configuration. ## Management API - [Overview](https://docs.corsair.dev/management/overview.md): Manage instances, tenants, and connections programmatically. - [Handler](https://docs.corsair.dev/management/handler.md): The 9 management routes, options, and error shapes. Mounting lives under [Adapters](https://docs.corsair.dev/adapters/handlers.md). - [Connect](https://docs.corsair.dev/management/connect.md): Connect link flow. ## Workflow engines - [Inngest](https://docs.corsair.dev/guides/inngest.md): Run Corsair operations from Inngest functions. - [Temporal](https://docs.corsair.dev/guides/temporal.md): Use Corsair in Temporal workflows. - [Trigger.dev](https://docs.corsair.dev/guides/trigger-dev.md): Use Corsair in Trigger.dev tasks. - [Hatchet](https://docs.corsair.dev/guides/hatchet.md): Use Corsair in Hatchet workflows. ## Plugins - [Plugins guide](https://docs.corsair.dev/guides/plugins.md): The Corsair plugin catalog and how to use plugins. - [Create your own plugin](https://docs.corsair.dev/guides/create-your-own-plugin.md): Build a custom plugin. - [Plugin credentials](https://docs.corsair.dev/guides/plugin-credentials.md): Configure credentials for plugins. - [Integrations catalog](https://api.corsair.dev/md/integrations): Complete Corsair integration catalog (Markdown). ## Guides - [Webhooks](https://docs.corsair.dev/guides/webhooks.md): End-to-end webhook setup. - [Workflows](https://docs.corsair.dev/guides/workflows.md): Build workflows with Corsair. - [Dashboard](https://docs.corsair.dev/guides/dashboard.md): Use the Corsair dashboard.