What is Corsair?
Corsair is an open-source product integration platform for connecting an application's users to the third-party apps they already use. You install a core package plus a plugin per service, and Corsair handles the OAuth handshake, token storage and the request plumbing behind a single consistent syntax. It sits in the Agent Frameworks & Builders category of the Agents & Automation tools and is open-source, written in TypeScript and licensed Apache-2.0.
Overview
Corsair is an open-source product integration platform for connecting an application's users to the third-party apps they already use. You install a core package plus a plugin per service, and Corsair handles the OAuth handshake, token storage and the request plumbing behind a single consistent syntax. Its own description of the job is short: connect your users to their apps.
The design choice that separates it from most agent tooling is that it is built on a REST API rather than being MCP-only. The project's reasoning is that the same integration layer then works for three very different callers — an agent deciding to act, a backend service running a job, and the multi-tenant dashboard where your customers connect their own accounts — instead of only the agent path. The more third-party APIs you touch, the more glue code that saves, because each integration is reached through the same syntax and the adapters behind it are maintained upstream.
It is open core. You can self-host the whole thing and keep your users' tokens on infrastructure you control, or use the hosted Hub if you would rather have OAuth refresh and webhook delivery handled for you. Credentials are encrypted with a key encryption key you generate and hold; the docs are blunt that losing that key means losing access to every stored credential.
What it does
- One syntax across every integration, with the per-service adapters maintained by the project rather than by you
- Built on a REST API, so agents, backend services and end-user dashboards all use the same layer instead of an MCP-only path
- Managed OAuth: create a connection link, redirect the user, and call the service's endpoints once they return
- Multi-tenant by design — connections are scoped to a tenant id, for products where each customer connects their own accounts
- Self-host with your own database and key encryption key, or use the hosted Hub for OAuth refresh and webhooks
- Plugin-per-service packages (for example `@corsair-dev/github`, `@corsair-dev/slack`), with community PRs for new integrations
Getting started
Corsair is a Node/TypeScript package. You install the core plus one plugin per service you want to reach, point it at a database and a key encryption key, then mount its handler in your framework's route file. This walkthrough follows the project's quick-start.
Install the core package and a plugin
Add `corsair` plus the plugin for each service. GitHub is the quick-start's example; yarn, pnpm and bun work the same way.
npm install corsair @corsair-dev/githubGenerate a key encryption key and set your environment
The KEK encrypts stored credentials — generate it locally and keep a backup, because losing it means losing access to every stored credential. The API key and signing secret come from a project you create in the Hub dashboard.
openssl rand -base64 32
# .env
CORSAIR_KEK=your-generated-kek
CORSAIR_API_KEY=ck_dev_...
CORSAIR_SIGNING_SECRET=...Create the database tables
Corsair needs its own tables. The quick-start uses SQLite for a first run; the schema ships with the docs.
npm install better-sqlite3
sqlite3 corsair.db < migration.sqlInitialise Corsair
Create the instance with your plugins, database, KEK and Hub credentials, then mount the handler in your framework's route file — for Next.js, `app/api/corsair/[[...path]]/route.ts`.
import Database from 'better-sqlite3';
import { createCorsair } from 'corsair';
import { github } from '@corsair-dev/github';
const corsair = createCorsair({
plugins: [github({ authType: 'managed' })],
database: new Database('corsair.db'),
kek: process.env.CORSAIR_KEK!,
multiTenancy: true,
hub: {
projectApiKey: process.env.CORSAIR_API_KEY!,
signingSecret: process.env.CORSAIR_SIGNING_SECRET!,
},
});Connect a user, then call the service
Create a connection link for a tenant and redirect the user through it. Once they are connected, call the service's endpoints directly off the Corsair instance.
const { connectUrl } = await corsair.manage.connect.createLink({
plugin: 'github',
tenantId: 'acme',
});
// after the user connects
const repos = await corsair.github.api.repositories.list({});Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Give an agent the ability to act across a user's own GitHub, Slack and other accounts without writing a bespoke OAuth flow for each one
- Ship a multi-tenant dashboard where each customer connects their own third-party accounts, scoped by tenant id
- Reach the same integration from an agent, a scheduled backend job and your UI without maintaining three different client paths
- Self-host the integration layer when your users' tokens and data must stay on infrastructure you can inspect
How Corsair compares
Corsair alongside other open-source agent frameworks & builders tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| DeepSeek Harness | ★ 289k | DeepSeek AI's open-source agent harness (dsh), built on Cordis, where models, tools, skills, sessions, sandboxes, storage and the UI are all plugins composed through profiles. |
| AutoGPT | ★ 188k | One of the earliest autonomous agent projects, now a platform for building and running agents from reusable blocks and workflows. |
| DeerFlow | ★ 86k | ByteDance's open-source super agent harness built on LangGraph: skills, sub-agents, sandboxes, a filesystem and long-term memory for long-horizon research, coding and content tasks. |
| nanobot | ★ 50.5k | Lightweight self-hosted personal AI agent framework in Python, with a WebUI, terminal and chat-app channels, tools, long-term memory, MCP and scheduled automations. |
| LangGraph | ★ 45.6k | A library from the LangChain team for building stateful, graph-based agent workflows with explicit control over steps, memory, and human-in-the-loop checkpoints. |
| Agno | ★ 43.3k | A fast Python framework (formerly Phidata) for building agents with memory, tools, and multimodal inputs, plus a runtime for deploying them in production. |
| AgentGPT | ★ 36.3k | AgentGPT lets you name a custom AI, give it a goal, and watch it plan tasks, run them, and learn from the results, all from a web browser. |
| Corsair | ★ 15.6k | One integration layer for your agents, your backend and your users' dashboards |
