Want to host those surfaces yourself instead? Every step below is the same; swap the
hub block for manual. See Manual or Hub.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
slack(), linear(), 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 — no connect page or OAuth callback to build:connect.ts
usage.ts
What’s next
Use with AI
Give an agent the four 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 four tables Corsair uses.
Provisioning
Seed credentials and provision tenants from the
corsair CLI or setupCorsair.