Start

Overview

Annex gives an AI agent a computer from any sandbox provider you have connected (45 of them, and your own servers), picked by price, speed, region or name. It moves on when a provider can't start one, saves checkpoints, and carries work on elsewhere when a provider ends a sandbox. Use your own provider accounts (each bills you directly), Annex credit (no account needed), or both.

Base URL

Example
https://annex.eversonder.com/v1

The full description is public: openapi.yaml and openapi.json (OpenAPI 3.1).

API keys

Make a key in the dashboard under API keys (see Quickstart). It is shown once. Send it as a bearer token:

Example
Authorization: Bearer anx_live_…
  • A key belongs to one workspace and reaches only /v1/workspaces/{wid}/… of that workspace (any other is 404), plus GET /v1/connectors.
  • Anything that widens access or spends your money stays with people: making keys, connecting accounts, editing and revealing secrets. A key gets 403 there.
  • Each key may make 600 requests a minute; past that, 429 with Retry-After.

The workspace in the path

Every resource lives under a workspace: /v1/workspaces/wsp_…/sandboxes. Find yours in the dashboard's address bar, or with GET /v1/workspaces when signed in.

Responses

One resource comes under its singular name; lists under the plural, with meta.

JSON
{ "sandbox": { "id": "sbx_8f3k9a2b7c4d1e0q", "status": "running", … } }

{ "sandboxes": [ … ], "meta": { "page": 1, "total": 87, "pageCount": 4, "perPage": 25 } }

Nullable fields are always present (as null). Times are RFC 3339 in UTC. Money is in micro-dollars (cost_micros, currency: "USD"). 204 means done, nothing to say.

Pagination

?page= (from 1) and ?perPage= (25 by default, 100 at most). A command's output pages by cursor instead: pass meta.next_cursor until meta.done.

Errors

JSON
{ "message": "sandbox not found", "code": "not_found" }

{ "message": "The given data was invalid", "code": "validation_error",
  "errors": { "vcpu": ["The vcpu field must be between 1 and 64."] } }
CodeStatusWhen
bad_requestStatus400WhenMalformed body
unauthenticatedStatus401WhenNo key, or an unknown or revoked one
forbiddenStatus403WhenA people-only action
not_foundStatus404WhenMissing, or in another workspace
conflictStatus409WhenThe resource is busy or in the wrong state
limit_reachedStatus409WhenA running or spend limit; the message says which and where to change it
sandbox_lostStatus409WhenIts provider ended it; with replaced_by and replacement_resume
precondition_failedStatus412WhenA key-value write's If-Match is stale
validation_errorStatus422WhenFields are wrong (errors by field), or a value is unknown
no_providerStatus422WhenNothing connected fits the route, region or size
provider_refusedStatus422WhenA provider refused the call in a way it would again
too_many_requestsStatus429WhenRate limit; wait Retry-After
provider_unavailableStatus503WhenEvery provider on the route was unavailable; the message gives their reasons
internal_errorStatus500WhenSomething went wrong on our side

Idempotency

Creating a sandbox, resuming, checkpointing, applying a plan and pushing a queue message take an Idempotency-Key header (any unique string, such as a UUID). Retry with the same key and the same body and you get the first answer back (Idempotent-Replayed: true) instead of a second paid machine.