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.

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

≈8ms

Start a new sandbox

60–75ms

Start from a saved copy

≈65ms

Wake up a paused sandbox

16copies

Copies of one sandbox, made in under 1 s

Measured on the Spawnbox test server.

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.

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.

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.

0306

Everything it can do today

23 features in six groups. 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

Browser sessions

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

SB-06

Git

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

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.

Save and copy

SB-11

Pause and resume

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

SB-12

Copy and save

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

Internet

SB-13

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-14

Site rules

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

SB-15

Secrets

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

Grow

SB-16

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-17

Two backends

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

SB-18

Many customers

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

Watch and manage

SB-19

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-20

Metrics

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

SB-21

Usage

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

SB-22

CLI

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

SB-23

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.

MAIN SERVERMORE SERVERSBEING EMPTIED

Add more servers

You talk to one main server. It puts each sandbox where there is the most room.

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.

host:~
$ curl -fsSL https://spawnbox.tulipfarm.ai/install.sh | sh
$ S=$(spawnbox create --timeout 600)
$ spawnbox exec $S -- uname -a
  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. 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.