← All integrations

Boat MCP server

125 operations6 webhooks

Persistent Linux sandboxes for AI agents with Boat: create, stop, resume and fork sandboxes, run commands, read and write files, prompt integrated coding agents, expose ports and the desktop, save snapshots, and manage environments, credential profiles, API keys, webhooks, CI and telemetry (125 operations).

Try Boat with your agent

Connect Boat, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.

Using Corsair, show me what you can do in Boat on my account, then run one read-only example and show me the result.

Runs once, when you ask

Boat tools and triggers

Tools are what your agent can do in Boat through Corsair's MCP server. Triggers are the Boat events a routine can start from.

Sandboxes

  • Add Ssh KeyWrite

    Configure sandbox SSH key. Adds an OpenSSH public key to the running sandbox so the caller can SSH as user user. The response carries machineIp, which is the host to connect to on port 22.

    sandboxes.addSshKey

  • Agent.Get PromptRead-only

    Get prompt run status. Returns first-class status for a queued/running/finished prompt so clients do not infer completion from sandbox state and events.

    sandboxes.agent.getPrompt

  • Agent.InterruptWrite

    Interrupt running work. Interrupt running agent work. By default this stops every conversation on the sandbox. Pass conversation to stop just one, leaving the others running. See Integrated agents.

    sandboxes.agent.interrupt

  • Agent.List ConversationsRead-only

    List boat conversations. Every conversation on the sandbox, most recently prompted first, with what you need to pick one: how many prompts it holds, whether a turn is running in it right now, the last harness and model it ran on, a preview of its last prompt, and current, the one a POST /prompt without new or…

    sandboxes.agent.listConversations

  • Agent.List EventsRead-only

    List boat events. Return Sandbox work, lifecycle, and progress events so product UIs can show what the sandbox is doing. A Sandbox runs many conversations in parallel; this streams all of them by default and every event carries a conversationId. Filter to one or more with conversation. Event payloads are extensible. Pass the ETag of the last page as ifNoneMatch: an unchanged page answers 304, raised as an error with status 304.

    sandboxes.agent.listEvents

  • Agent.PromptDestructive

    Prompt Sandbox. Queue a natural-language work item for an agent harness (Codex, Claude Code, pi, OpenCode, or Prime Agent) inside the sandbox. Observe progress with GET /sandboxes/{sandboxId}/events. A Sandbox runs many conversations in parallel. Runs an agent harness with the model key or subscription connected on the Boat dashboard: it spends model usage.

    sandboxes.agent.prompt

  • Agent.SteerDestructive

    Steer a running turn. Send a new message to a turn that is already running, without losing what the agent is doing. This is what typing into a coding agent while it works does: the instruction is taken into account and the work continues. Spends model usage like a prompt.

    sandboxes.agent.steer

  • Commands.AttachRead-only

    Attach to a detached command. The output of a detached command as it is written, one JSON object per line, until the command ends. After 10 minutes the stream ends with a reconnect line: open it again with its offsets to continue with no gap. One open stream replaces polling. Needs the exec key scope. Returns { text, contentType }: the output as newline-delimited JSON frames, one per line.

    sandboxes.commands.attach

  • Commands.GetRead-only

    Get one command from the history. (GET /sandboxes/{sandboxId}/command-history/{commandId})

    sandboxes.commands.get

  • Commands.Get LogsRead-only

    Read a command's stored output. Reads stdout or stderr from a byte offset, at most 1 MiB per call. Read on with nextOffset until done. A running detached command gains output every 30 s; a streamed one every 2 s. Works while the sandbox is stopped.

    sandboxes.commands.getLogs

  • Commands.Get StatusRead-only

    Get detached command status and logs. Without offsets, the answer holds the end of each log. With stdoutOffset or stderrOffset, it holds only the output written since those byte offsets, so each poll returns only new output. A sandbox agent too old for offsets answers 409 agent_outdated.

    sandboxes.commands.getStatus

  • Commands.List HistoryRead-only

    List the command and process history. Every command run through POST /sandboxes/{sandboxId}/commands in the last 7 days, and every other process that wrote to its stdout/stderr in the last 72 hours (mode process), newest first. Works while the sandbox is stopped.

    sandboxes.commands.listHistory

Connect Boat to Claude, ChatGPT or Cursor

  1. 1

    Connect Boat in Corsair

    Add your Boat API key once in Corsair. Corsair stores the credential encrypted and makes the Boat API calls for your agent, so it never goes into a prompt or a config file. Connect Boat

    If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Boat. On a ChatGPT personal plan, connect Boat here first.

  2. 2

    Add Corsair's MCP server to your agent

    Every client uses the same address:

    https://mcp.corsair.dev/mcp
    Open Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.

    Codex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client

  3. 3

    Sign in and choose what needs your approval

    Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Boat's read and write operations run right away and its 34 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.

FAQ

Install corsair and @corsair-dev/boat, add the Boat plugin, and connect with an API key. Then call methods like corsair.boat.api.account.getCallerAddress() from your app. Corsair verifies webhooks, and keeps each tenant isolated.

Yes. Boat requires an API key from your Boat account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.

Yes. One Corsair client can hit Boat, GitHub, Notion, Stripe, and the rest. Trigger Boat from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.

Teams use Corsair for persistent Linux sandboxes for AI agents with Boat: create, stop, resume and fork sandboxes, run commands, read and write files, prompt integrated coding agents, expose ports and the desktop, save snapshots, and manage environments, credential profiles, API keys, webhooks, CI and telemetry (125 operations). Common builds include sync jobs, admin tooling, and agents that call Boat APIs from your backend. Webhook handlers react to Boat events and fan out to Slack, email, or other plugins in the same tenant.

The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Boat API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.

We maintain @corsair-dev/boat in the open repo. When Boat ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.

No. Corsair does not read your Boat data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Boat data on your behalf.

Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.

Yes. Put Boat on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 34 destructive Boat operations. You can change a link's mode at hub.corsair.dev/me.