1
Install
2
Set your environment
Create a project in the Hub dashboard and copy the development API key and signing secret. Then generate a KEK. Corsair encrypts every stored credential with it:.env
3
4
Configure Corsair
Wire your database, KEK, and Hub keys together insrc/server/corsair.ts:src/server/corsair.ts
app/api/corsair/[[...path]]/route.ts
This quick-start uses Next.js. The instance above is the same on every framework; only the mount line changes. See Frameworks for Express, Node, SvelteKit, Hono, and the rest.
slack(), linear(), or gmail(), by appending to the array.5
Connect and call
Mint a connect link and send the user to it. Hub hosts the connect page and delivers the result back to your app, with no connect page or OAuth callback to build:connect.ts
usage.ts
6
Run it
What’s next
Use with AI
Give an agent the three Corsair tools and let it discover and call any endpoint.
Hub overview
How the relay works, and why Hub stores none of your credentials.
Environments
Development vs production keys. Switch to production when you deploy.
Multi-tenancy
Building a product? Flip one flag and every user gets their own data and credentials.
Database options
Postgres, Drizzle, Prisma, and the five tables Corsair uses.
Provisioning
Seed credentials and provision tenants from the
corsair CLI or setupCorsair.