The profile and proxy calls need an API key with
account.admin. Account usage needs account.read. Sandbox usage needs sandbox.read on that sandbox.
Credential profiles
A credential profile is a named set of AI credentials. boat encrypts it at rest. The API never returns a secret value: it lists which credentials a profile holds (connected) and the names of its custom APIs.
Each account has one default profile. A sandbox gets the default profile of its owner, unless its environment names another profile. The credentials you had before profiles existed are now the profile named default. On the dashboard Agents & Proxying page, pick a profile at the top. Both tabs then show and edit only that profile: its sign-ins and keys, its proxy switch, its custom APIs and its usage.
You can remove any credential with
rm-key. A sign-in sent to set-key returns 400 not_an_api_key.
Out of credits? Switch to another account
A credential can hold several accounts: two ChatGPT sign-ins, two Claude sign-ins, two OpenAI keys. One account is in use. When it runs out of credits, switch the credential to another account. Every sandbox that uses the profile gets the other account at once, running sandboxes included. Nothing restarts, and the other credentials do not change. On the dashboard Agents & Proxying page, the account in use shows next to each credential. Click it to:- switch to another account,
- add another account: sign in again, or paste another key. The current account stays, ready to switch back to,
- forget an account. Forgetting the one in use switches to another account first.
--profile picks another profile; the default is your default profile. The account list never shows a secret: a sign-in shows its email when the provider gives it, a key shows its last characters.
To give different sandboxes different accounts at the same time, use one profile per account and name the profile on an environment (see Environments).
Set and remove API keys
--copy-from starts a new profile with a copy of the API keys and custom APIs of a profile you manage. Sign-ins are not copied: one sign-in in two profiles would sign itself out at the first renewal. Sign in again on the new profile. The CLI reads a key from stdin when you omit the value, so the key stays out of your shell history. A key is one token of up to 8192 printable characters, without spaces or line breaks; anything else returns 400.
409 is_default) or a profile that an environment names (409 in_use).
Organization profiles
An organization can own profiles too. By default, every active member can use them. An owner can limit a profile to a list of members withboat ai profile access. Read Limit who can use an environment or profile. Only organization owners create and change them, and only they see the account list. In a profile list, owner.kind is org and canManage tells you if you can change it.
Your own Claude sign-in in a sandbox
The Claude Code credential you select in your profile sets variables in the sandbox’s shells. Only the selected one does. A connected Anthropic API key that you did not select is not in the sandbox, so it is never billed:
When you select another credential, running sandboxes drop the variables of the previous one.
Claude Code prefers these variables to a sign-in. Remote Control needs a full claude.ai sign-in. To use it, run
claude in the sandbox and sign in with /login. From the next shell, boat removes CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, and claude uses your sign-in. boat never removes that sign-in: it stays across stops, resumes and cold resumes. The agent that boat prompt runs still uses the profile.
Custom APIs
A custom API is a secret for any HTTPS API, such as Stripe or your own service. You give it a name, a value and a base URL. The sandbox gets two variables:
The name is an environment variable name:
A-Z, 0-9 and _, up to 64 characters. Provider names (ANTHROPIC_*, OPENAI_*, AWS_*, and so on) and names that end in _BASE_URL are reserved. The base URL must use HTTPS on the default port, with a public DNS name.
$<NAME>_BASE_URL. With the proxy on, a request sent straight to the API with the placeholder fails.
The AI credentials proxy
Without the proxy, a sandbox holds your real keys and sign-ins. Anyone with a shell in it can copy them. With the proxy on, the real keys never enter the sandbox.- A placeholder is worthless outside boat. It does not contain the real key.
- A copied placeholder stops working when the sandbox stops. Each start gives the sandbox new placeholders.
- The proxy sends each credential only to its own provider. An Anthropic key never goes to another host.
- The proxy puts a provider key only in the
Authorizationorx-api-keyheader. A placeholder in another header or in the URL stays a placeholder, so a provider that echoes it cannot return the real key. - A custom API gets its secret in any request header and in the query string, never in the path. Pick a base URL you trust: a host that echoes requests shows the secret to the sandbox.
- boat renews Claude, ChatGPT and Grok sign-ins behind the proxy. The sandbox never sees a renew token.
What the proxy covers
Bedrock signs each request with AWS keys, so there is nothing to swap. The Kimi Code CLI renews its sign-in itself. While the proxy is on, boat withholds these credentials from sandboxes. Use a Moonshot API key in place of the Kimi sign-in.
Turn it on
The switch is per account: one for you, one for each organization. Only an organization owner can change the organization switch. On the dashboard, open Agents & Proxying, then the Proxying tab. It holds the switch, the custom APIs and the AI usage, for the account in view: you, or the organization you selected. A sandbox goes through the proxy when either switch is on:- the switch of the account that owns its credential profile, or
- the switch of the organization that pays for the sandbox. An organization can make sure that no real key enters its sandboxes, whoever’s profile they use.
Safe for third parties, with AI credentials
An environment marked safe for third parties passes nothing of yours. Turn onproxyAiCredentials on that environment to still pass AI credentials, as placeholders. The sandbox user can run the agents, but cannot take your keys. You can block the sandbox at any time.
proxyAiCredentials needs the proxy on for the account that owns the profile. If it is off, the call returns 400 ai_proxy_off.
Environments
An environment can name the profile its sandboxes get, withcredentialProfileId (an id or a name). null, or --credential-profile default in the CLI, means the default profile of the sandbox owner. Like every environment change, this makes a new version. Running sandboxes move at boat env upgrade. See Environments.
Usage
For each proxied sandbox, boat counts requests and errors, and the tokens per UTC day, credential and model. The token counts are the numbers the provider reports in its replies: input, output, cache read and cache write. A sandbox that holds real keys has no usage here, because its requests do not go through boat.--org, org or X-Boat-Org. In the dashboard, open the ⋯ menu of a sandbox and select AI usage.
dollars in these responses is the boat proxy charge: $1 per 1,000 requests. It is not your provider bill. The provider bills your tokens on your own provider account.
Cap AI spend
boat has no automatic AI spend cap. The member spend cap of an organization limits sandbox time, not provider tokens. To cap AI spend yourself:- Read the usage of each sandbox with
GET /sandboxes/{id}/ai-usageon a schedule. - When the tokens pass your limit, block the sandbox.
Block a sandbox
Block a sandbox to stop its AI requests at once, running or stopped. The proxy refuses its placeholders with403. Unblock it to accept them again. Blocking has no effect on a sandbox that holds real keys (proxy off). The sandbox creator and the managers of its profile can block it.
Pricing
Profiles, custom APIs and usage tracking are free. The proxy costs money. The wallet pays it, not the plan’s included time:dollars in the usage responses is the request charge for the period. It does not include the daily charge. The provider bills your tokens as usual, on your own provider account.