SPAWNBOX

Sandboxes for AI agents,on your own servers.

Spawnbox gives each AI agent its own small, safe computer to run code in. It is open source and runs on your own servers. A new one is ready in less than 100 ms. Your API keys never go inside.

Read the source
YOUR AGENTSPARESREADY ≈ 8 msONE SANDBOXYOUR SERVER
● RUNNING · sbx_c7mty9fysaf0t3d5UPTIME 00:00:00

6,484sandboxes

Running at the same time

768AI agents

Working at once. Every one finished.

≈8ms

To start a fresh sandbox

0failures

From Spawnbox in 3,707 agent runs

Measured on AWS, Nov 2026. How we tested ↓

TESTED AT SCALE

768 coding agents at once.
Every one finished.

Each agent got its own 2 GiB microVM, ran Claude Code, wrote a file and pushed a commit. We doubled the count until it failed, then halved the gap. The fleet grew by itself from 26 to 37 machines.

23agents

On one 8 vCPU, 32 GB server

26→37servers

Added by itself as the load grew

≈400ms

Typical start for an agent, anywhere in the fleet

2×

Double the servers, double the agents

Measured 10 Nov 2026 on AWS m8i.2xlarge workers. A typical agent sandbox started in about 400 ms through the fleet API. The agents talked to a stand-in model and a local git remote, so no AI or GitHub rate limits applied.

BENCHMARK

Second on a real coding task.
131 s to build and check Better-Auth.

The Better-Auth task from the open hpc-sandbox-benchmarks suite clones the better-auth repo, installs it, builds it, and runs its lint and type checks in a 4 vCPU, 8 GiB sandbox. The score is the sum of each step's median over 12 runs. Lower is better.

1Brezel118.1 s
2Spawnbox131.1 s
3boat135.8 s
4Namespace150.5 s
5Daytona (VM)156.6 s
6Modal (VM)180.8 s
Step, median sBrezelSpawnboxboat
Build42.247.247.7
Typecheck27.630.629.9
Lint types20.624.523.3
Cold install8.18.413.7
Lint deps (Knip)6.97.57.5
Lint spell4.95.35.3
Lint (Biome)2.22.42.3
Lint format2.02.12.2
Lint packages1.82.02.4
Git clone1.91.11.7

Spawnbox: v0.1.13 with --huge-pages, self-hosted on one AWS m8azn.metal-12xl (AMD EPYC, up to 5 GHz), one sandbox at a time, 14 Nov 2026. Other providers: the suite's published run of 3 Oct 2026 on their own hardware, so the machines differ. Only this task was rerun. Scripts, raw results and how to rerun it →

0106

Every agent gets its own box.
Scroll to see how it works.

HOW ONE SANDBOX WORKSYOUR AI AGENTasks for a sandboxstart oneITS OWN SMALL COMPUTERSTART/STOPINTERNETFILESLOGREADY IN ABOUT 8 msagent's code runs hereAPI key:fake-key (not real)openai.comreal key added ✓github.com allowed ✓the rest blocked ✕YOUR OWN SERVERNOT OUR CLOUD

STEP 1 — YOUR AGENT

Your agent asks for a sandbox.

One API call or one command. A fresh, empty computer is ready in about 8 ms.

From code
POST /v1/sandboxes
From a terminal
spawnbox create

STEP 2 — THE SANDBOX

Each agent gets its own small computer.

It is a tiny virtual machine. If the agent breaks something, only its own sandbox breaks.

Pause it
spawnbox pause $S
Show a web app
spawnbox ports publish $S 3000
Copy files in
spawnbox cp ./src $S:/workspace/src
Watch what it does
spawnbox events --follow

STEP 3 — KEYS AND INTERNET

Your API keys never go inside.

The agent sees a fake key. When it calls OpenAI, Spawnbox puts the real key in on the way out. Other sites get only the fake one.

The agent sees
sbx_ph_... (a fake key)
Allowed sites
github.com, *.pypi.org
Every other site
blocked

STEP 4 — YOUR SERVER

It all runs on your own server.

Install it with one script on a Linux machine. Nothing goes to our cloud.

Works best on
Linux with KVM
Also works on
machines without KVM
Need more room?
add more servers
0206

What you can run

A sandbox is a full Linux computer. If it runs on Linux, it runs in Spawnbox. See all six use cases, including code from tool calls and MCP servers.

TERMINALclaudecodexcopilot

› fix the failing test

- return total

+ return round(total, 2)

✓ 14 tests passed

Coding agents

Run Claude Code, Codex or Copilot CLI on a real repo. Let them install packages and run tests. If they break something, only the sandbox breaks. Your API keys stay outside.

How coding agents run →
DESKTOP · CHROMIUM
Book

Browser and computer use

Give an agent its own browser, or a whole desktop you add to its template. It clicks, types, fills forms and uses apps. It can only reach the sites you allow, and every visit is logged.

●https://my-app.preview.example.com

Real web apps

Run the Next.js or Vite app you ship to Vercel, or one you made in Lovable. Start it with npm run dev, publish port 3000, and open the link.

How web apps run →
0306

Everything it can do today

30 features in six groups, 7 of them new. Coming later: TypeScript and Python SDKs, an MCP server and disk speed limits.

Run code

SB-01

Sandboxes

Start, list, look at and delete sandboxes. Give each one a time limit, settings and labels.

SB-02

Commands

Run any command. Get the result at the end, or watch it live. Type input into it.

SB-03

Files

Read, write, list and delete files and folders.

SB-04

Terminals

Open a live terminal into the sandbox.

SB-05

Git

Download code from Git. Private repos work with a saved secret.

SB-06New

Services

Keep a program, like a web server, running. It restarts when it stops or fails a health check, and keeps its recent output.

Get ready

SB-07

Templates

Save a starting setup with your tools already installed. Start from Debian, a Docker image or devcontainer.json.

SB-08

Spare sandboxes

Keep spares ready and waiting. A new sandbox starts in about 8 ms. The number of spares grows and shrinks with use.

SB-09

Build store

Store templates in S3-compatible storage. Build each one only once. A sandbox can start before the whole template has downloaded.

SB-10

Volumes

Keep files after a sandbox ends. Share one read-only folder with many sandboxes.

SB-11New

Coding agent templates

Claude Code, Codex and Copilot CLI templates come with Spawnbox. A new install builds them for you, so each agent sandbox starts in about 0.1 s.

Save and copy

SB-12

Pause and resume

Pause a sandbox and save everything to disk. Wake it up in about 65 ms. Idle sandboxes pause by themselves.

SB-13

Copy and save

Make up to 16 copies of a running sandbox in under 1 s. Save it as a template without stopping it.

SB-14New

Persistent sandboxes

Keep a sandbox until you delete it. If its VM is lost, the next call starts it again with the same ID, settings, volumes and ports. Primary only for now.

Internet

SB-15

Preview links

Open a web app that runs in a sandbox from a link. The link can be public, need a token, or be private.

SB-16

Browser sessions

Share a short-lived link to one sandbox's terminal and web apps. No API key needed.

SB-17

Site rules

Choose which websites a sandbox can reach: all, some or none. Limit its speed. Log every connection.

SB-18

Secrets

Your API keys stay locked outside the sandbox. They are added to requests only for sites you allow.

SB-19New

Encrypted settings

Sandbox and service settings are encrypted on disk and tied to one sandbox. A copied value can't be read anywhere else.

Grow

SB-20

More servers

Add servers when you need room. Each new sandbox goes to the server with the most space. Empty a server before you remove it.

SB-21

Two backends

Uses Firecracker on servers with KVM, and gVisor on servers without it. You can require Firecracker for a customer.

SB-22

Many customers

Serve many customers from one install. Each gets its own keys, limits, templates, secrets and site rules.

SB-23New

Failover

Run two or more primaries on one Postgres database. If the leader stops, another takes over in about 15 s. Sandboxes on workers keep running.

SB-24New

Autoscaling

When it's busy, Spawnbox asks your script or webhook for another server, and gives it back when idle. Use AWS, Terraform or any tool.

SB-25New

Memory guard

When a server runs short of memory, the least recently used idle sandbox pauses to disk. Memory a sandbox frees goes back to the server.

Watch and manage

SB-26

Activity log

A log of everything an agent does: commands, file changes, connections and key use. Watch it live or send it to OpenTelemetry.

SB-27

Metrics

Numbers for each server, ready for Prometheus: start times, errors, connections and free space.

SB-28

Usage

See how much CPU, memory, disk and network each customer and sandbox used, hour by hour.

SB-29

CLI

One spawnbox command does it all: sandboxes, files, templates, secrets, customers and logs.

SB-30

Easy to run

Install with one script. Runs as a normal system service with HTTPS. Comes back by itself after a crash.

0406

Everything your agent needs

Inside its sandbox, an agent can run code, use the internet, keep files and use your keys safely. You can watch it, pause it or copy it.

TERMINAL

›

Run code

Run any command and watch the output live. Or open a full terminal.

:3000● https://{label}.preview.example.com
:8080you choose who can open it
SITES IT CAN REACH
allowgithub.com
allow*.pypi.org
blockevery other site

Internet

Share a web app with a link. Pick which sites the agent can reach. Every connection is logged.

  • /workspace
  • src/
  • main.py
  • out.txt ● written · now
  • /data ⟶ kept after the end

Files

Put files in and take files out. Keep a folder after the sandbox is gone.

Activity log

See every step the agent takes, live. Send it to your own tools with OpenTelemetry.

IN THE SANDBOXAPI key = fake-key
SENT TO openai.comAPI key = real key ••••

Safe API keys

The agent only sees a fake key. Spawnbox swaps in the real one on the way to sites you allow.

RUNNINGPAUSEDSAVED TO DISKAWAKE AGAIN≈ 65 msSAVED COPYCOPIES · UP TO 16

Pause, wake, copy

Idle sandboxes pause by themselves to save room. Wake one up, save it, or make copies.

spawnbox fork $S --count 3

Copy a sandbox

Make up to 16 copies of a running sandbox, with everything in it, in under 1 s.

SANDBOXES RUNNING00 SERVERSMAIN SERVERspawnbox create × 1,000

1,000+ sandboxes in seconds

Add servers when you need more room. You talk to one main server, and it starts each sandbox on the server with the most space.

0506

How it compares

We checked each project's own website on 8 Nov 2026. Spawnbox is not the cheapest cloud or the fastest start. It is made to be easy to run yourself, to serve many customers, and to log everything agents do.

● Yes◐ Partly○ No? Not stated
SpawnboxE2BDaytonamicrosandboxCubeSandboxInstaVM
Open source●Apache-2.0●Apache-2.0○Repo archived Oct 2026; core moved private●Apache-2.0●Apache-2.0?Not stated
Run it on your own server●One install script●Docker Compose or Terraform○Open-source repo no longer maintained◐Runs locally as a child process; beta●KVM x86_64 host○Cloud service; local tool for development
How sandboxes are kept apart●Firecracker microVM●Firecracker microVM?Dedicated kernel; technology not named●microVM●KVM microVM (RustVMM)●microVM
Works on servers without KVM●Uses gVisor instead○KVM required?Not stated◐Needs KVM, Apple Silicon or Windows WHP○KVM required?Not stated
Many customers, each with own keys and limits●Own keys, limits, secrets, site rules◐Auth and quotas◐Organizations, API keys, limits?Not stated◐Per-sandbox traffic tokens◐API keys, volume quotas
API keys stay outside the sandbox●Added outside the sandbox?Not stated?Not stated●Never enter the VM●Credential vault via egress proxy●Injected via a proxy
Pause and resume●Pauses by itself, wakes in ≈65 ms●Auto-pause◐Snapshots●Stop, start, snapshots●Auto-pause and resume●Pause, snapshot, resume
Copy a running sandbox●Up to 16 copies, < 1 s●Up to 100 per request?Not stated●msb fork◐Fork from a checkpoint◐Clone a VM
Also sold as a hosted cloud○None, by design●E2B Cloud, BYOC●Daytona cloud?Not stated?Not stated●InstaVM cloud

Sources:E2BE2B runtimeDaytonamicrosandboxCubeSandboxInstaVM

0606

Install

You need a Linux server: Ubuntu 22.04+ or Debian 12+, x86_64. KVM is best, but not required.

  1. Get a server. At least 4 GiB memory and 40 GiB disk. A physical server, or a cloud VM that can run VMs inside it.
  2. Run the install script. Get the command at the top. It downloads Spawnbox, checks the download is not changed, and starts it as a service.
  3. Start a sandbox. Use the spawnbox command or the HTTP API.

WARNING Sandboxes run code you do not trust. Use a separate server, not your own laptop or a live production server.