Corsair context prompt for your agent
Paste this before your feature prompt so the agent knows how Corsair works:Install
Generate your encryption key
Corsair encrypts stored credentials with a Key Encryption Key. Click Regenerate for a new one, or run the command yourself:Migrate the database
Corsair needs five tables. Install the driver, then run the migration:View migration SQL
View migration SQL
migration.sql
Create src/server/corsair.ts
src/server/corsair.ts
Connect Google Calendar
Google Calendar uses OAuth2. You’ll need a GCP OAuth app first:- Go to the Google Cloud Console, create a project, and enable the Google Calendar API.
- Under APIs & Services → Credentials, create an OAuth 2.0 Client ID (Application type: Web application). No redirect URI needed — Corsair handles it locally.
- Copy your Client ID and Client Secret, then store them:
pnpm: command not found or setup fails?
pnpm: command not found or setup fails?
If Then re-run
pnpm corsair isn’t found, add this to your package.json so pnpm builds the native dependency correctly:package.json
pnpm install and retry the setup command.- Start the OAuth flow:
authUrl printed in the terminal. Once you authorize in the browser, tokens are saved automatically and the command exits.Vibe code the dashboard
Paste this prompt into Claude, Cursor, or any AI coding agent:pnpm dev when it’s done.What’s next
Google Calendar Plugin
Full API reference — create events, check availability, and handle webhook notifications.
Webhooks
React to calendar changes in real time — new events, updates, and deletions pushed to your server.
Workflows
Chain calendar events to other plugins — meeting created → Slack notification → Linear task.
Multi-Tenancy
Building a product? Each user gets their own calendar credentials and isolated data.