Via the console
- On the Secrets page, create a secret with the Anthropic provider and paste your API key — you only do this once, and the key never enters the sandbox.
- Go to console.superserve.ai and click Create sandbox.
- Pick the
superserve/claude-codetemplate (Claude Code preinstalled). - Under Advanced Options → Secrets, bind that secret to
ANTHROPIC_API_KEY. - Create the sandbox, open its Terminal, and run
claude.
Via the SDK
ANTHROPIC_API_KEY as usual, but its value is a stand-in token — the real key is attached only on requests to Anthropic, never exposed to the agent.
Open the sandbox in the console, launch the terminal, and run claude.
Persist sessions
Delete when finished
A paused sandbox is kept until you delete it. When you no longer need the sandbox, delete it. This also deletes its files and saved state.Sandbox.killById() (TypeScript) or Sandbox.kill_by_id() (Python). To delete paused sandboxes automatically, see Auto-delete.