● Works today
Run Claude Code, Codex or Copilot CLI on a real repo, with root in its own microVM. Spawnbox has a ready-made template for each one. Our scale test ran 768 Claude Code agents at once, and every one finished.
Any agent with a command line, for example
Each step shows the call, the reply and the lines it adds to the activity log. You can read the whole log withGET /v1/sandboxes/$S/events.
SPAWNBOX API
Spawnbox comes with claude-code, codex and copilot templates. Each installs one pinned npm release on the base disk, with Node.js 26. A new install builds all three for you in a few minutes, one time for each server. On an install from before v0.1.10, run the installer again to upgrade, then build the one you need.
# see when the builds are ready
spawnbox templates ls
# installed before v0.1.10: upgrade, then build one
spawnbox templates build /opt/spawnbox/templates/claude-code.jsonSPAWNBOX API
Save the key as a held secret. Claude Code sends it in the x-api-key header. The agent sees only a placeholder. The proxy puts the real key in requests to api.anthropic.com.
POST /v1/secrets
{"name": "anthropic", "type": "http_header",
"value": "sk-ant-...", "env": "ANTHROPIC_API_KEY",
"allowed_hosts": ["api.anthropic.com"],
"header": "x-api-key", "format": "{value}"}SPAWNBOX API
It starts from the saved snapshot, with the agent already installed. On our test host this took about 0.1 s. The sandbox can reach only the model API, GitHub and npm.
POST /v1/sandboxes
{"template": "claude-code",
"secrets": ["anthropic", "github"],
"egress": {"mode": "allowlist", "allow": [
"api.anthropic.com", "github.com",
"registry.npmjs.org"]}}IN THE SANDBOX
A git_https secret opens private repos. The GitHub token does not go into the sandbox.
POST /v1/sandboxes/$S/git:clone
{"url": "https://github.com/acme/api", "depth": 1}IN THE SANDBOX
Ask for a stream to get stdout and stderr as they come. If you close the stream, Spawnbox stops the agent.
POST /v1/sandboxes/$S/exec
Accept: text/event-stream
{"cmd": "claude -p 'fix the failing test' --permission-mode acceptEdits",
"cwd": "/workspace/api", "timeout_s": 1800}SPAWNBOX API
Copy the sandbox with its memory, processes and files. Give each copy a different prompt, and keep the best result.
POST /v1/sandboxes/$S:fork
{"count": 3}