> ## Documentation Index
> Fetch the complete documentation index at: https://docs.styne.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Switch from boat

> Change boat's base URL and bearer key to point its HTTP API and SDKs at Styne.

**You need** a Styne API key; create one on the dashboard ([API keys](https://docs.styne.ai/authentication.md)).

## The one line

```text theme={"theme":"css-variables"}
export BOAT_API_BASE=https://api.styne.ai/boat/v1
export BOAT_API_KEY=<your Styne API key>
```

The routes are served under `/boat/v1` on the Styne API and take the key as `Authorization: Bearer`. boat's own base URL is `https://boat.dev/api/v1` (source: docs.boat.dev quickstart, read 2026-11-08). For the SDKs the same value goes
into the `host` of their `Configuration`, and the key into `access_token`.

## Operations that work

| Area | Calls |
| - | - |
| Sandbox | create, get, list (state, name, namePrefix, label, limit, cursor), update the auto-stop, stop and get the stop, resume, fork, delete |
| Commands | run and wait (timeout 1 to 600 s), run detached, read status and log by offset, stop |
| Files | read, write, list, delete (utf8 or base64, inline up to 5 MiB) |
| File tools | info, search by name, find in text, make a folder, move, permissions, replace, signed download and upload URLs |
| Command history | list, one command, its logs; a detached command's output streamed as server-sent events (`/commands/{processId}/stream`) |
| Sandbox | processes, usage, recover (brings a stopped sandbox back), host (exposes a port), ssh key, share, artifacts (one file as bytes), desktop (noVNC in the browser), AI usage and AI access |
| Agents | prompt, prompt status, conversations, events, steer, interrupt ([Agents](https://docs.styne.ai/agents.md)) |
| Snapshots | of a sandbox: list, latest, delete all; of the account: list, delete, file tree, one file, download as a tar; saved and named snapshots: list, save from `sandboxId`, read, delete |
| Account | `/me` (the account the key belongs to), `/limits` (plan, caps and use), organizations (`/orgs`, `PATCH /orgs/active`, `PATCH /orgs/{org}`), data retention and deletion operations |
| API keys | list, create a scoped key (a preset or actions), revoke, rotate, one key's usage |
| Webhooks | list, create, read, update, delete, rotate the signing secret |
| Telemetry | read, set and delete the OpenTelemetry export |
| CI | overview (GitHub App installations, repositories, jobs), the App's install link, one job and its record |
| AI credentials | credential profiles: list, create, update, delete; set, add, switch and delete a provider's keys; the AI proxy switch; AI usage |
| Environments | list, create, update, delete, upgrade; set and delete variables and secret files; add and remove repositories |
| Secrets and repositories | `/secrets` reads and writes the default environment's variables and secret files; `/repos` lists the GitHub App's repositories and adds one to the default environment |

## How the account calls map

* The account routes act as the member who made the key, with the key's preset: a key with the `full` preset reads and changes
  the account, `keys.manage` is needed for API keys. A key acts in its own account; `/orgs` lists the accounts its member belongs to.
* Secrets are the variables (`envContents`, `.env` text) and secret files of the account's default environment, which a new
  sandbox starts with. Secret file contents are write-only: a read lists each file's path with empty `contents`.
* An environment's `id` is a UUID that stays the same for the environment's life; its name is lowercase letters, digits, `-`
  and `_`. A create's `environment` picks the environment by name (`base` is the account's default). An environment is applied when
  a sandbox starts, so `upgrade` reports the version every new sandbox gets.
* A repository is named by its full name (`owner/name`) as `/repos` lists it.
* Webhook events: `sandbox.ready`, `sandbox.error`, `sandbox.archived` (stopped, timed out or deleted), `sandbox.recovered` and
  `sandbox.hydrated` (resumed), `sandbox.degraded` (an error).
* Credential ids: `anthropic-api-key`, `openai-api-key`, `openrouter-api-key`, `deepseek-api-key`, `moonshot-api-key`,
  `mistral-api-key`, `xai-api-key`. The AI proxy sends a stored key only to these providers at their fixed addresses; another
  API's key goes into an environment variable, and `custom-apis` answers 400 `invalid_credential` saying so.
* Every member of an account reaches its sandboxes: `share` answers the sandbox, while `unshare` and `newSandboxesPrivate: true`
  answer 409 `account_shared`. A saved snapshot starts sandboxes of its own account, so snapshot `shares` answer 409
  `account_scoped` with the way to hand one over.
* `desktop` starts Xfce on a virtual screen with x11vnc and noVNC and answers a URL of port 6080 that carries the session's VNC
  password. Sandboxes of the `desktop` template have it at once; in another sandbox the first call installs it and answers
  `provisioning: true`.

A sandbox a client sees as `ready` is running; one it sees as `archived` is stopped and resumes with its disk. Errors come as
`{"ok": false, "type": "sandbox.error", "status", "code", "message", "error", "requestId"}`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.