Org API key
Your account key. Use it server-side for all management calls — creating agents, starting sessions, registering webhooks, managing credentials.Client tokens
A session-scoped, short-lived token withread + steer scope — safe to hand to a front-end. It can stream and steer one session and nothing else.
You get one back from POST /v3/sessions, and can mint more:
client_token to the browser, which uses it directly for the SSE stream and steer calls.
?token= (native EventSource can’t set an Authorization header); other calls use the Authorization header normally.
Model credentials
Sessions run the model on your own Anthropic key. It’s held in OpenComputer’s secret store — encrypted at rest (AES-256-GCM) and write-only (never returned by the API). Crucially, the real key never enters a sandbox at all: it’s sealed into an opaque token, and a host-side proxy swaps in the real value only on the outbound HTTPS call toapi.anthropic.com (scoped by an egress allowlist). So it’s never exposed to the model, never in the agent’s prompt or code, and never in the VM — see Secrets. A credential is required — a session with no resolvable key fails to start (422 no_credential).
The easiest way to add one is inline when you create an agent ("key": "sk-ant-…"). The standalone resource below is for reusing one key across agents, setting an org default, and rotating/removing keys:
Additional model providers, model hot-swap, and platform-billed usage are coming soon — they use this same credential shape, so your setup won’t change.