Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt

Use this file to discover all available pages before exploring further.

You can use the Claude Agent SDK with Corsair through the dashboard or in code.

In the dashboard

  1. Sign in at app.corsair.dev.
  2. Open Dashboard and click New instance.
  3. Open your instance and click Add Plugin to enable an integration (e.g. GitHub, Slack).
  4. Click New User to add a tenant — enter a tenant ID and click Save.
  5. Connect the integration for that tenant: click the cell where the tenant row meets the plugin column, then sign in with OAuth or enter credentials.
  6. Click the tenant name in the first column to open the side panel.
  7. Copy the MCP URL and create an API key (New key → name → Create → copy the secret once).
Quick Start under SDK → Claude Agents copies a full starter if you want a guided demo.
npm install @corsair-dev/app @anthropic-ai/claude-agent-sdk

In code

Configure

import { query } from "@anthropic-ai/claude-agent-sdk";
import { claudeMcpServerConfig, createClient } from "@corsair-dev/app";

const corsair = createClient({ apiKey: process.env.CORSAIR_DEV_KEY! });
const key = await corsair
  .instance(process.env.CORSAIR_INSTANCE_ID!)
  .tenant("alice")
  .mcpKeys.create("claude-agent");

const stream = query({
  prompt: "Star the corsairdev/corsair repo on GitHub",
  options: {
    model: "claude-opus-4-6",
    mcpServers: {
      corsair: claudeMcpServerConfig({
        url: key.mcpHttpUrl,
        apiKey: key.secret,
      }),
    },
  },
});

for await (const event of stream) {
  if ("result" in event) process.stdout.write(event.result);
}
claudeMcpServerConfig() returns { type: "http", url, headers } for the Agent SDK.

Run it

Pass any prompt to query(). If you connected GitHub, try:
Use Corsair to star the Corsair repo on GitHub