Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort the hosted server listens on.3000
BOAT_API_KEYNoYour boat API key, used when running the server locally over stdio.
BOAT_API_URLNoboat API URL.https://boat.dev/api/v1
BOAT_MCP_SCOPESNoScopes clients request at sign-in. Defaults to the everyday sandbox set.
BOAT_MCP_TOOLSETSNoComma-separated list of toolsets to load, or `all` to load all toolsets. The six default toolsets load 70 tools; `all` loads 119.
BOAT_OAUTH_ISSUERNoOAuth issuer URL.https://boat.dev
BOAT_MCP_PUBLIC_URLNoPublic URL of the MCP endpoint. Required when hosting the server.
BOAT_MCP_TOKEN_CACHE_SECONDSNoHow long a checked token is trusted.60

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

boat runs full Ubuntu VMs called sandboxes, billed per second while they run.

  • Start with create_sandbox, then run_command and the file tools. Paths resolve under /home/user or /tmp.

  • run_command waits for the command, up to 600 seconds. For longer work pass detached: true and poll get_command_status.

  • stop_sandbox keeps the disk as a snapshot (resume_sandbox brings it back); delete_sandbox removes it. Stop or delete sandboxes you no longer need, because a running sandbox costs money.

  • open_desktop returns a browser URL for the sandbox desktop. It must be opened within 10 minutes, and anyone with the full URL can open it.

  • host_port gives a public HTTPS URL for a port in the sandbox.

  • A 403 means the connected account did not grant that permission.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_accountB

Get current Boat user. Returns GitHub identity for the authenticated Boat account.

get_caller_addressA

Get the caller's address. The public address that this request comes from, as boat sees it. Use it as an entry of network.inboundAllow. Your network can use another address for the other IP version (IPv4 or IPv6): add both. Any key or session can call this route.

get_limitsA

Get Boat limits. Check remaining machine starts, included VM time, the wallet, overage prices, access readiness, and concurrent-sandbox capacity for the wallet a create would bill: the org / X-Boat-Org you pass (id or name), else the account's active wallet, else personal. The response carries teamId when an organization wallet was read.

list_organizationsA

List organizations. The wallets this account can bill: your personal account first, then every organization you belong to, each with its id and name. Either spelling works wherever an org is passed (org, X-Boat-Org, teamId). active marks the wallet new sandboxes bill when a request names none; change it with PATCH /orgs/active.

update_organizationA

Update organization settings. The owner renames the organization with name. Requests that name the organization by its old name fail after the rename; its id does not change. The billing name on new invoices follows when it is still the organization name. If Stripe does not answer, the request fails with 502 and nothing changes. Owners and admins set whether new sandboxes of the organization start private (only their creator can use them) or shared (every member can use those that hold none of their creator's logins). The default is shared. Existing sandboxes keep their setting; their creators change it with POST /sandboxes/{sandboxId}/share and POST /sandboxes/{sandboxId}/unshare. A fork of a private sandbox is private.

set_active_organizationA

Set the active organization. Set the wallet new sandboxes bill when a request names none, for this account on every client: the API, the CLI (boat org switch sets the same value) and the dashboard. Pass an organization id or name you belong to, or personal (or null) for your own account. GET /limits follows it. Sandboxes already running keep the wallet they were created with; leaving or deleting the organization resets the account to personal.

get_data_retentionA

Get account data-retention policy. Returns the current zero-data-retention policy. Per-Boat API keys cannot access this account-wide setting. Responses are never cached.

update_data_retentionA

Update account data-retention policy. Requires an interactive sandbox session; API keys and legacy permanent tokens are refused. Enabling requires the exact confirmation phrase delete archived sandbox data. Disabling affects future archives only and cannot cancel deletion operations already accepted.

get_deletion_operationA

Get deletion operation. Poll an accepted Boat or snapshot deletion. Only operations owned by the authenticated account are returned. Responses are never cached.

list_reposB

List GitHub repositories available to Boat. Returns GitHub repositories grouped by installation plus the current selected repositories for new Sandboxes.

select_repoB

Select repository for sandboxes. Idempotently selects one repository for the sandbox environment. Use databaseId from GET /repos as repositoryId; selecting an already-selected repository updates its baseBranch.

list_secretsB

Get Boat secrets setup. Returns the environment variables and secret files configured for sandboxes.

update_secretsC

Update Boat secrets setup

list_sandboxesA

List sandboxes. Your sandboxes. In an organization's scope (the active wallet, org, or X-Boat-Org) the list also holds every sandbox that organization pays for, whoever created it; createdBy and access say whose it is and what you may do with it. An unknown query parameter is refused with 400 invalid_query, which names it.

create_sandboxB

Create sandbox. Provision a new cloud computer. Store the returned sandbox.id with your product job/session record. Send an Idempotency-Key header to make this call safe to retry after a lost response without creating a second billable sandbox.

get_sandboxB

Get sandbox. Poll this endpoint after create, stop, resume, or fork operations.

update_sandboxC

Update sandbox

delete_sandboxA

Permanently delete sandbox data. Accept irreversible background deletion of the sandbox machine, snapshots, and content-bearing records. This is not archive: the sandbox cannot be resumed. Saved snapshots and other shared artifacts remain independent. Poll the returned operation until completed.

stop_sandboxA

Stop and archive sandbox. Stop active work and archive/snapshot the sandbox for later resume or fork.

A stop always saves the sandbox's disk first. If that save is failing, the stop is refused and the sandbox keeps running so your work is not discarded, we retry automatically and email you. You are not billed for time spent in that state.

The stop is an operation: the response and the sandbox carry it as stop, with an id and a status. Poll GET /sandboxes/{sandboxId} until stop.status is completed. A failed attempt shows failing with its error and is retried until the sandbox archives; commands and prompts you send meanwhile do not cancel it. Only a resume ends it early (superseded). Calling stop again while one is pending returns the same id.

Set force: true to stop anyway, keeping the last successful snapshot and losing everything written since then. This is irreversible; only reach for it after a stop has already failed. A force on a stop that is already pending escalates that stop.

A stop never fails because the sandbox is already stopping or stopped: you get 202 with the stop in progress, or 200 with the last stop once the sandbox is stopped. statusUrl is the path that reads the stop.

get_stopA

Get a stop by id. Returns one stop of this sandbox by the id that POST /sandboxes/{sandboxId}/stop returned. Old stops stay readable after a resume or a later stop. Returns 404 when the id is unknown or belongs to another sandbox.

resume_sandboxC

Resume sandbox

fork_sandboxA

Fork sandbox. Provision a new sandbox from an existing one. Send an Idempotency-Key header to make this call safe to retry after a lost response without creating a second billable fork.

recover_sandboxA

Recover a sandbox that stopped responding. Power-cycle the machine of a sandbox that stopped answering. The disk is not touched. The sandbox usually answers again within 1-2 minutes and then saves your work by itself; sandbox.recovered fires when it does.

Refused with 409:

  • sandbox_is_reachable: the sandbox answers normally.

  • too_soon: a recover started less than 10 minutes ago.

  • no_machine: the sandbox has no machine. Resume it instead.

  • recover_unsupported: its machine cannot be power-cycled. Wait for it to answer, or stop it with {"force": true} and resume it from its last good snapshot. With no snapshot, a forced stop loses everything.

  • reset_failed: the power-cycle failed. Reply to the incident email.

share_sandboxA

Share sandbox with the organization. Let every member of the organization that pays for this sandbox use it.

A sandbox that holds none of your personal logins is shared at once.

A sandbox that holds them: your personal logins (GitHub token, Claude and Codex logins, environment secrets, the sandbox's own CLI key) are never pushed to it again and are wiped off its disk at its next start, so a teammate never acts as you. Files you wrote stay. The wipe is one-way: the sandbox stays like a noEnv sandbox from then on. A running sandbox stays view for the organization until you stop and resume it (restartRequired): its running programs hold your logins in memory.

Teammates never read history recorded before the share.

Only the person who created the sandbox can share it, and only a sandbox billed to an organization. Sharing an already shared sandbox is a no-op. Undo with POST /sandboxes/{sandboxId}/unshare.

unshare_sandboxA

Make an organization sandbox private. Make a shared organization sandbox private again, at once. Only you can then use it. Teammates still see it in their list and can stop it. Their SSH keys are removed from the running machine.

Nothing on the sandbox changes: files, installs and its environment stay. Undo with POST /sandboxes/{sandboxId}/share.

Only the person who created the sandbox can make it private, and only a sandbox billed to an organization. Making a private sandbox private is a no-op.

get_sandbox_usageA

Get boat usage. Machine time one sandbox consumed, and what it costs, so you can bill your own users per sandbox. Same meter as GET /limits: billable seconds with the sandbox type's multiplier applied, paused past a refused stop, never counting time stopped. Narrow it to a billing period with since and until; a period boundary that falls inside a running stretch splits that stretch pro rata. Works while the sandbox runs and after it stops.

open_desktopA

Get desktop streaming URL. Create or fetch a secret-bearing desktop/noVNC URL for live computer-use visibility. Use ?vnc=1 for noVNC; a provisioning: true response means poll again.

host_portA

Expose a sandbox port on a public HTTPS URL. Registers a stable https://<sandbox-subdomain>-<port>.on.boat.dev route for a port inside the sandbox and opens the sandbox firewall for it. Idempotent: calling it again for the same sandbox and port returns the same URL and token. On a sandbox with network.inbound boat-only, only a caller outside the sandbox can publish: a session, or an API key that does not live in a sandbox. The key that lives in the sandbox, and any request that a sandbox with a network policy sends, get 403 inbound_closed. With public: true the URL carries no token; the raw port stays closed.

add_ssh_keyA

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.

This is also how you reach your own machine from inside a sandbox without the CLI: authorize the key, then open a reverse tunnel with stock OpenSSH, and a port on your machine answers at 127.0.0.1:<port> inside the sandbox for as long as the ssh process runs.

ssh -o ExitOnForwardFailure=yes -i ~/.ssh/id_ed25519 -N -R 7777:127.0.0.1:7777 user@<machineIp>

boat forward <id> --reverse --local 7777 is the same tunnel with the key handling and redial done for you.

On a sandbox with network.inbound boat-only, the route answers 403 inbound_closed when the sandbox has no inbound list. A sandbox takes SSH over IPv4 and over IPv6, and boat sees only the address of this API request. When the list has entries, the route answers 403 inbound_not_allowed, with the address in error.details.address, only when the list does not cover the caller's address and holds no entry of the other IP version. In every other case the route answers normally, and the host accepts or drops the SSH connection by its real source address. With ?include=caller, the answer then holds caller.address and caller.listed.

get_artifactA

Download a sandbox artifact. Downloads one file of up to 50 MiB, under /home/user or /tmp, as raw bytes.

run_commandA

Execute a command in a sandbox. Runs the command synchronously by default (timeout configurable via timeoutSeconds, 600s cap). With detached: true the command starts in the background and a process id is returned immediately; poll /sandboxes/{sandboxId}/commands/{processId} for status and logs. With stream: true the output arrives as the command writes it, as newline-delimited JSON (application/x-ndjson): {"type":"started"}, then {"type":"stdout"|"stderr","data":"..."} per chunk, and last {"type":"exit",...} (the synchronous result without stdout/stderr) or {"type":"error","error":"...","message":"..."}. Returns 400 invalid_timeout when timeoutSeconds is not an integer in 1-600. A command sent while the sandbox is still starting (right after a resume) waits up to 60s for it to be ready instead of failing; 409 boat_starting (retryable) is returned only if it is still not ready by then. A sandbox that is not starting (error, stopped) returns 409 sandbox_not_ready with retryable: false and its state at once: resume or recover it first. Command execution is never retried automatically: a 502 boat_direct_failed means the command may already be running on the sandbox. Every command and its output are kept 7 days in the command history (/sandboxes/{sandboxId}/command-history), readable while the sandbox is stopped.

get_command_statusA

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.

stop_commandA

Stop a detached command. Sends SIGTERM to the command and every process it started, then SIGKILL to what is left after 5 s. Only a process started with detached can be stopped. The response carries the command's history record with its final state and output.

list_command_historyA

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.

get_commandC

Get one command from the history

get_command_logsA

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.

list_processesA

List the processes in a sandbox. A running sandbox: every user-space process, read now, busiest first. A stopped sandbox: the last sample kept (live: false).

read_fileA

Read a file from a sandbox. Files up to 5 MiB. For a larger file, use POST /sandboxes/{sandboxId}/files/download-url. On a sandbox that is still starting, the call waits until it is ready (up to 60 s, like a command), so it reads the sandbox's own disk and never the machine's stock one.

write_fileA

Write a file in a sandbox. Files up to 5 MiB after decoding. For a larger file, use POST /sandboxes/{sandboxId}/files/upload-url. On a sandbox that is still starting, the call waits until it is ready (up to 60 s, like a command): a sandbox's files are in place only once it is ready, so a write any earlier would not stay. A 200 always means the file is on the sandbox's disk.

delete_fileA

Delete a file or directory in a sandbox. A directory needs recursive=true. A symlink is deleted itself, never its target. /home/user and /tmp themselves cannot be deleted. Needs file.write.

list_filesA

List a directory in a sandbox. One level, sorted by name. A symlink is listed as a symlink, not followed. Defaults to /home/user. Needs file.read.

get_file_infoA

Get file or directory details in a sandbox. Size, permission bits, type and modification time. Needs file.read.

search_filesA

Search files by name in a sandbox. Every file and directory under path whose name matches the glob pattern (for example *.py). Symlinks are not followed. Needs file.read.

find_in_filesA

Find text in sandbox files. Every line under path that contains pattern. pattern is plain text; with regex=true it is an extended regular expression. Binary files are skipped and symlinks are not followed. Needs file.read.

create_folderB

Create a directory in a sandbox. Missing parent directories are created. An existing directory is not an error. Needs file.write.

move_fileA

Move or rename a file or directory in a sandbox. Works across /home/user and /tmp. A symlink is moved itself, never its target. Needs file.write.

set_file_permissionsA

Set file permissions in a sandbox. Sets the permission bits. Files belong to the sandbox user; the owner and group do not change. Needs file.write.

replace_in_filesC

Replace text in sandbox files. Replaces every occurrence of pattern with newValue in each file. Needs file.write.

create_download_urlA

Get a download URL for a sandbox file. Returns a short-lived URL that the sandbox serves itself. GET it to download the file as raw bytes, with no size limit and no Authorization header. The URL is bound to this path and expires after ttlSeconds (default 15 minutes, at most 1 hour). Needs file.read. Treat the URL as a secret until it expires.

create_upload_urlA

Get an upload URL for a sandbox file. Returns a short-lived URL that the sandbox serves itself. PUT the file as the raw request body to write it, with no size limit and no Authorization header. Missing directories are created; an existing file is replaced only once the upload completes. The URL is bound to this path and expires after ttlSeconds (default 15 minutes, at most 1 hour). Needs file.write. Treat the URL as a secret until it expires.

prompt_agentA

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. Set new: true to start a fresh one, conversationId to continue a specific one, or omit both to continue the most-recently-active conversation; the response returns the conversationId. See Integrated agents.

get_prompt_statusB

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.

list_conversationsA

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 conversationId would continue. Pass an id back as conversationId on POST /prompt to resume that thread, or as conversation on POST /steer, POST /interrupt and GET /events to scope those. See Integrated agents.

list_eventsA

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. Clients can long-poll this endpoint with sort=asc and a cursor to stream responses. Response events expose agent text, streaming partials via data.is_streaming, and tool calls/results via data.tools. When you poll, send the last ETag back in If-None-Match. An unchanged page answers 304 Not Modified with no body.

steer_agentA

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.

Where the harness has a native mid-turn primitive (Claude Code, Codex, pi, Prime Agent) nothing is interrupted and the response has native: true. Where it does not (OpenCode), Boat interrupts that turn and immediately continues the SAME conversation with the instruction, keeping the session and its memory, and the response has native: false.

Refused with 409 no_running_turn when the conversation has nothing in flight; queue work with POST /prompt instead. error.details.reason says why: turn_ended (with error.details.lastTurn.status and .error of the newest turn), turn_not_started (the turn is starting; retry in a moment), no_turn, not_running (the sandbox is not running) or delivery_failed (the sandbox did not accept the steer; check the turn before sending more work). The steer shows up in GET /events as a steer event. See Integrated agents.

interrupt_agentA

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.

list_saved_snapshotsB

List saved snapshots. List your saved snapshots, newest first. An unknown query parameter is refused with 400 invalid_query, which names it.

save_snapshotB

Save a saved snapshot. Freeze a sandbox's current state under a name (boat snapshot <id> <name> in the CLI). Answers 202 immediately with the snapshot in saving; a running sandbox takes a fresh capture first, which can run minutes. Poll GET /saved-snapshots/{name} until the status settles at ready or failed. Reusing one of your existing names replaces that snapshot's artifact once the new save is ready.

get_saved_snapshotC

Get a saved snapshot

delete_saved_snapshotA

Remove a saved snapshot. Remove a saved snapshot and release its storage (boat snapshot rm <name> in the CLI). Sandboxes already deployed from it are unaffected.

list_snapshot_sharesB

List share codes of a saved snapshot. List the share codes of a saved snapshot, active and revoked (boat snapshot shares <name> in the CLI). The full codes are not returned. Needs snapshot.read.

create_snapshot_shareA

Share a saved snapshot. Make a secret code that lets any Boat account create a sandbox from this saved snapshot (boat snapshot share <name> in the CLI). The response shows the code once; Boat stores only a hash. Re-saving the name changes what the code deploys. Removing the name removes its codes. Everything on the disk is shared, so do not keep secrets in files on it. Needs snapshot.write.

revoke_snapshot_shareA

Revoke a share code. Revoke a share code (boat snapshot unshare <name> <share-id> in the CLI). The code stops creating new sandboxes. Sandboxes already created from it keep their own copy. Needs snapshot.write.

list_snapshotsA

List snapshots. List visible completed snapshots across all of your sandboxes using immutable ownership attribution. Pinned, deletion-scheduled, and privacy-fenced sandbox snapshots are omitted. Follow nextCursor through the complete history; there is no hidden 500-snapshot cap. An unknown query parameter is refused with 400 invalid_query, which names it.

list_sandbox_snapshotsB

List boat snapshots. List visible completed snapshots for one sandbox with uncapped cursor pagination.

get_latest_sandbox_snapshotA

Get latest boat snapshot. Return the most recent completed snapshot for this sandbox, or null if it has none.

delete_sandbox_snapshotsA

Permanently delete all snapshots of a sandbox. Accept irreversible deletion of every unpinned snapshot of this sandbox. The sandbox itself and its saved snapshots stay. Snapshots disappear from lists, restores and forks immediately; their stored data is purged in the background. Set X-Ascii-Confirm-Delete to the sandbox id.

delete_snapshotA

Permanently delete snapshot data. Accept irreversible deletion of an unpinned snapshot owned by the authenticated account. Any such snapshot is accepted: it disappears from lists, restores and forks immediately, and its stored data is purged in the background once nothing still reads it (see the operation's stage). 409 only means X-Ascii-Confirm-Delete is missing or wrong.

list_snapshot_filesB

Get snapshot file tree. List the files and folders captured in a snapshot, with sizes. Returns a flat list of entries you can render as a tree.

read_snapshot_fileA

Download a file or folder from a snapshot. Stream a single file's bytes, or a folder subtree as a tar archive, directly out of a snapshot, the sandbox can be stopped or archived; the machine is never contacted. Use GET /snapshots/{snapshotId}/tree to list paths, then pass one here. Paths are relative to the snapshot root (same space as tree entries; docker volumes under __dockervol__/). An empty or / path downloads the whole snapshot as a tar. Folder responses set X-Snapshot-File-Count, X-Snapshot-Total-Size-Bytes and X-Snapshot-Skipped-Base-Image-Files headers; both response shapes set X-Snapshot-Entry-Kind (file or dir). File responses accept a single Range: bytes= header and answer 206 with Content-Range, so large files can be downloaded in parts and resumed.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.9/5.0

Scored across 70 tools

Disambiguation2/5

Several tool families overlap heavily: list_snapshots vs list_saved_snapshots vs list_sandbox_snapshots, the three snapshot-delete variants, and get_command vs get_command_status vs get_command_logs vs list_command_history. File-download tools also overlap (create_download_url, get_artifact, read_file). Descriptions are detailed, but the 70-tool surface makes boundaries hard to keep straight.

Naming Consistency4/5

Most tools follow a predictable verb_noun pattern: get_, list_, create_, delete_, update_, read_, write_, etc. There are minor deviations such as host_port and get_stop, plus some long compound names, but no chaotic mixing of casing or naming styles.

Tool Count1/5

Seventy tools is far beyond a well-scoped 3–15 tool surface and exceeds the 50+ threshold for extreme count mismatch. Even for a broad sandbox platform, this many endpoints burdens selection and suggests grouping or hierarchical resources would be better.

Completeness4/5

Coverage is broad across sandbox lifecycle, files, commands, snapshots, organizations, secrets, repos, and agents, with no obvious dead ends for core workflows. Minor gaps remain around explicit restore/launch from saved snapshots and organization membership management.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues