Skip to content
TulipFarmPublic

About

Open-source sandbox server for AI agents: Firecracker microVMs you run on your own servers

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Spawnbox: sandboxes for AI agents, on your own servers

Spawnbox

Open-source sandboxes for AI agents. Run them on your own servers.

Website · Get started · SDKs & MCP · API reference · Releases · How it works · TulipFarm

License: Apache-2.0 crates.io Latest release GitHub stars Built with Rust Runtime: Firecracker and gVisor

Follow on X LinkedIn YouTube

Spawnbox is an open-source sandbox server for AI agent platforms. You install it on your own Linux server.

A sandbox is a small, isolated Linux computer. Each sandbox is a Firecracker microVM. On a host without KVM, each sandbox is a gVisor container. An agent can use a sandbox to run code, read and write files, open a terminal and show a web app. A sandbox starts in less than 100 ms. It can connect only to the internet hosts that you allow. Your API keys do not go into the sandbox.

Warning

Status: early development (milestone M3 of M4). Do not use Spawnbox for production work or for code that you do not trust. This README shows only the functions that operate now.

Install in one line

On a Linux server, as your usual user (not sudo):

curl -fsSL https://spawnbox.tulipfarm.ai/install.sh | sh

Then give each agent its own box:

spawnbox create --timeout 600
spawnbox exec $S -- python3 main.py
spawnbox ports publish $S 3000
spawnbox fork $S --count 3
spawnbox pause $S

The full steps are in Getting started.

Tested at scale

6,484 sandboxes at the same time. 768 AI agents at once. About 8 ms to start. 0 failures from Spawnbox in 3,707 agent runs.

768 coding agents ran at once, and every one finished. Each agent got its own 2 GiB microVM, ran Claude Code, wrote a file and pushed a commit. The fleet grew by itself from 26 to 37 servers. Measured on AWS m8i.2xlarge workers, 10 Nov 2026. How we tested.

Benchmark

On the Better-Auth task from the open hpc-sandbox-benchmarks suite, Spawnbox ranked second: 131.1 s to clone, install, build, lint and typecheck the better-auth repo in a 4 vCPU, 8 GiB sandbox. Brezel took 118.1 s and boat 135.8 s. Spawnbox ran v0.1.13 with --huge-pages on one AWS m8azn.metal-12xl, one sandbox at a time, 14 Nov 2026. The other providers come from the suite's published run of 3 Oct 2026 on their own hardware. Results, scripts and how to rerun it.

Contents

Why use Spawnbox

Agent products must run the code that their AI models write. This code can be dangerous. Hosted sandbox services can run this code, but your customers' code and data then go to a different company. Spawnbox gives you the same service on your own servers.

  • Strong isolation. Each sandbox is a Firecracker microVM. AWS Lambda uses the same technology. A sandbox does not share the kernel of the server. On a host without KVM, Spawnbox uses gVisor. gVisor gives a sandbox its own kernel in user space.
  • Fast start. Spawnbox does not boot a new computer for each sandbox. It restores a saved memory snapshot. On the test server, this takes 60 to 75 ms. With a warm pool, a create takes approximately 8 ms.
  • Many customers. Tenants, API keys with scopes, quotas, an event log and usage records let one installation serve many customers.
  • Safe credentials. The code in a sandbox sees only a placeholder for each secret. Spawnbox adds the real value to the HTTPS request outside the sandbox.

Features

These functions operate now:

Area Function
Sandboxes Create, list, get and delete sandboxes. Set a timeout, environment variables and labels.
Commands Run commands. Get the output as JSON or as a live stream. Send stdin. Pass no_new_privs: true to enforce PR_SET_NO_NEW_PRIVS and block setuid/sudo escalation.
Files Read, write, list and delete files and directories, plus single-round-trip tar.zst archive upload/download (/v1/sandboxes/{id}/files:archive).
Terminals Open an interactive shell through a WebSocket.
Browser sessions Give a browser a short token for one sandbox. The token opens its terminal and its private preview URLs, without an API key.
Git Clone https:// repositories. Use a secret for private repositories.
Templates Make your own sandbox image with setup and warmup commands. Start from the Debian base, which has Node.js 26 and Python 3.15, a container image such as node:26-bookworm-slim, or an image-based devcontainer.json. Ready-to-customize examples live in templates/examples/, including multi-context SSE code-interpreter, browser-playwright with CDP, and browser-computer-use with localhost VNC and an HTTP action API.
Warm pools Keep VMs ready with paused vCPUs, so that a create takes approximately 8 ms. The pool size follows the number of creates.
More than one host Add worker hosts to one primary host. Clients use only the primary. The primary puts each sandbox on the host that has the most free space. Drain a worker to move its sandboxes to other hosts. Add an edge that sends commands, terminals, files and previews directly to the correct host.
Build store Keep template builds in an S3-compatible object store. Get a build from the store instead of building it again. Build each template on one host only: the other hosts wait and get it from the store. Set a limit for the disk that builds use. On a Firecracker host, start a sandbox before all of its memory is on the host.
Two backends Run sandboxes in Firecracker microVMs on hosts with KVM. Run them in gVisor on hosts without KVM, for example usual cloud VMs. A tenant can require microVMs.
Volumes Keep files after a sandbox ends. Mount the same volume in the next sandbox. Mount one volume in many sandboxes to read only.
Pause and resume Save the memory, processes and files of a sandbox to disk. Resume in approximately 65 ms. An idle sandbox pauses automatically. A new request resumes it.
Persistent sandboxes Keep a sandbox until you delete it. If its VM is lost, the next request starts it again from its template, with the same ID, env, secrets, volumes and ports. One host only.
Fork and snapshot Start up to 16 copies of a running sandbox, with its memory, processes, files, and any read-only volumes, in less than 1 s. Save a running sandbox as a new template. The sandbox continues to run.
Preview URLs Show a web app from a sandbox at a public, token or private URL.
Services Keep programs such as web servers running in a sandbox. Restart them when they stop or fail a health check. Keep their recent output.
Network control Allow all hosts, only listed hosts, or no hosts. Set a speed limit for each direction. Under restricted policies (allowlist, deny_all), DNS is limited to A, CNAME, AAAA, SVCB, and HTTPS queries. Spawnbox records each connection and each DNS query.
Secrets Keep secrets encrypted. Add them to outbound HTTPS requests (HTTP/1.1, HTTP/2, and WebSocket Upgrade) only for allowed hosts. Missing-header injection is opt-in (inject_missing, default false for http_header, true for git_https).
Disk I/O limits Enforce per-sandbox cgroup v2 read/write MB/s and IOPS caps (disk_read_mbps, disk_write_mbps, disk_read_iops, disk_write_iops).
Tenants Give each customer its own API keys, quotas, templates, secrets and network rules.
Events Record each command, file change, connection and secret use. Stream events live. Send events and traces to OpenTelemetry.
Metrics Show Prometheus metrics for each host: create times, errors, connections, DNS queries, sandboxes, free space and warm pools. Alert rules are included.
Backups Back up the database and keys each day into one encrypted file, in a directory or S3, and restore them with a check that every secret decrypts.
Usage Measure vCPU, memory, disk and network use for each tenant and sandbox, each hour.
CLI Use the spawnbox command for sandboxes, commands, terminals, files, templates, volumes, secrets, tenants, events and usage.
SDKs & MCP Official zero-dependency TypeScript and Python (sync + asyncio) SDKs with SSE exec streaming and CodeInterpreter/SandboxBrowser helpers, async Rust SDK (SpawnboxClient and ForwardClient), and first-party MCP server (spawnbox-mcp) supporting both stdio and Streamable HTTP (--listen, --auth-token).
Operation Install with one script as a systemd service. Use HTTPS. Recover after a crash.

Experimental / not yet verified on hardware:

  • ARM64 (aarch64) build scripts: SPAWNBOX_ARCH=aarch64 scaffolding is included in scripts/build-artifacts.sh, guest/kernel/build.sh, and guest/images/debian/build.sh, but has not yet been verified on ARM64 KVM hardware.

Getting started

In these steps, you install Spawnbox on a Linux server. Then you create your first sandbox.

Two computers are used in these steps:

  • Your computer: your laptop or desktop. You use it to connect to the host.
  • The host: the Linux server that runs Spawnbox and the sandboxes.

Each step tells you on which computer to type the commands.

WARNING: Do not use your personal computer or a production server as the host. Sandboxes run code that you do not trust.

NOTE: You cannot run Spawnbox on macOS or Windows. You can use them only as "your computer" to connect to the host.

Step 1: Get a host

Get a Linux server that agrees with these requirements:

Item Requirement
CPU x86_64 (Intel or AMD). ARM is not supported.
Virtualization KVM (/dev/kvm) is recommended, but it is not necessary. With KVM, sandboxes are Firecracker microVMs. Use a bare-metal server, or a cloud VM with nested virtualization, for example AWS C8i, M8i or R8i, or Google Cloud N2. Without KVM, sandboxes are gVisor containers. See Firecracker or gVisor.
Operating system Ubuntu 22.04 or later, or Debian 12 or later
Memory Minimum 4 GiB. Each sandbox uses 1 GiB by default.
Disk Minimum 40 GiB free. An SSD or NVMe disk makes pause and resume faster.
Access A user account with sudo, and internet access

Step 2: Connect to the host

On your computer, type this command. Use the user name and the IP address of your host:

ssh ubuntu@203.0.113.10

Note

ubuntu and 203.0.113.10 are examples. Replace them with the user name and the public IP address of your host. Your cloud console shows these values. For AWS EC2, the user name for Ubuntu images is ubuntu.

Type all the commands in steps 3 to 7 on the host.

Step 3: Find out if KVM is available

  1. Type this command:

    ls -l /dev/kvm
  2. Make sure that the output shows a line like this:

    crw-rw---- 1 root kvm 10, 232 Nov  4 10:00 /dev/kvm
    
  3. If the output shows No such file or directory, KVM is not available. You can continue. Spawnbox then runs sandboxes in gVisor. For Firecracker microVMs, use a different host, or turn on nested virtualization for this host.

Step 4: Install Spawnbox

CAUTION: Run the installer as your usual user, not with sudo. The installer uses sudo when it must.

  1. Type this command:

    curl -fsSL https://spawnbox.tulipfarm.ai/install.sh | sh

    The command downloads the latest release, checks its SHA-256 sum and installs it. A release has the built programs, a Linux kernel for the sandboxes, a Debian disk image, Firecracker and gVisor (runsc). The installer also installs the system tools that Spawnbox uses, and starts the spawnbox systemd service. It takes about a minute.

    To upgrade later, type the same command again. To install a specific release, set SPAWNBOX_VERSION, for example curl -fsSL ... | SPAWNBOX_VERSION=v0.1.0 sh.

    You cannot go back to a release before the one that encrypts stored env. Its first start changes the database, and earlier releases then stop at start instead of losing the env. Back up <data-dir> (or the Postgres database) before you upgrade.

    To compile Spawnbox from the code instead, set SPAWNBOX_FROM_SOURCE=1. The command then downloads the code into ~/spawnbox, installs the build tools and Rust, and compiles everything. This takes about 30 minutes because it compiles a kernel. You can also clone the repository yourself and type deploy/install.sh.

  2. Wait until the installer stops. The last lines of the output must look like this:

    ==> Spawnbox is running at http://127.0.0.1:8080
    
    API key (shown once; ...):
    sbx_org_...
    
  3. Copy the API key and keep it in a safe location.

    CAUTION: Spawnbox shows the key only one time. If you lose it, make a new key with this command: sudo /opt/spawnbox/bin/spawn-api create-key --data-dir /var/lib/spawnbox

On a first install, the installer also starts builds of the coding agent templates. To skip them, set SPAWNBOX_AGENT_TEMPLATES=0, for example curl -fsSL https://spawnbox.tulipfarm.ai/install.sh | SPAWNBOX_AGENT_TEMPLATES=0 sh.

The installer puts files in these locations:

Location Contents
/opt/spawnbox Programs, kernel, base disk and template files
/etc/spawnbox/spawnbox.env Server settings
/var/lib/spawnbox Database, templates, paused sandboxes and secrets

Step 5: Make sure that Spawnbox operates

  1. Type this command:

    curl http://127.0.0.1:8080/healthz
  2. Make sure that the output is ok.

  3. If the output is not ok, go to Troubleshooting.

  4. To see the backend of the host, type this command:

    sudo journalctl -u spawnbox | grep "sandboxes run in"

    The output shows sandboxes run in firecracker or sandboxes run in gvisor.

Step 6: Create your first sandbox

  1. Keep the server address and your API key in two variables. Put your key in place of <your-key>:

    export B=http://127.0.0.1:8080/v1
    export A="Authorization: Bearer <your-key>"
  2. Create a sandbox and keep its ID in the variable S:

    S=$(curl -s -H "$A" -d '{"timeout_s": 600}' $B/sandboxes |
      python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')
    echo $S

    The output shows an ID, for example sbx_c7mty9fysaf0t3d5.

  3. Run a command in the sandbox:

    curl -s -H "$A" -d '{"cmd": "uname -a && whoami"}' $B/sandboxes/$S/exec

    The output is JSON. The stdout field shows the Linux version and the user name user.

  4. Delete the sandbox:

    curl -s -H "$A" -X DELETE $B/sandboxes/$S

Commands in a sandbox run as user in the directory /workspace. The user user can use sudo.

Step 7 (optional): Use Spawnbox from your computer

The API listens only on the host (127.0.0.1). To use it from your computer, make an SSH tunnel.

  1. On your computer, open a new terminal.

  2. Type this command and keep the terminal open:

    ssh -N -L 8080:127.0.0.1:8080 -L 8081:127.0.0.1:8081 ubuntu@203.0.113.10
  3. On your computer, in a different terminal, use http://127.0.0.1:8080 as the server address. Port 8081 gives you the preview URLs.

Use the CLI

The installer puts the spawnbox command in /usr/local/bin on the host. The CLI sends the same requests as the HTTP API.

  1. On the host, keep the server address and your API key:

    spawnbox login --url http://127.0.0.1:8080

    The CLI asks for the key. It keeps the address and the key in ~/.config/spawnbox/config.json. Only your user can read this file.

  2. Create a sandbox, run a command and delete the sandbox:

    S=$(spawnbox create --timeout 600)
    spawnbox exec $S -- uname -a
    spawnbox kill $S

    The exit code of spawnbox exec is the exit code of the command.

These are the other commands:

spawnbox ls                                   # list sandboxes
spawnbox sh $S                                # open a terminal
spawnbox cp ./src $S:/workspace/src           # copy files into a sandbox
spawnbox cp $S:/workspace/out.txt .           # copy files from a sandbox
spawnbox clone $S https://github.com/octocat/Hello-World
spawnbox ports publish $S 3000                # show the preview URL
spawnbox create --service-file services.json  # start services in a new sandbox
spawnbox services $S                          # show the state of its services
spawnbox services restart $S web
spawnbox services logs $S web --follow
spawnbox pause $S
spawnbox resume $S
spawnbox fork $S --count 3                    # print the IDs of 3 copies
spawnbox snapshot $S --name with-deps         # save as a template
spawnbox templates build ./py.json            # same body as POST /v1/templates
spawnbox templates build .devcontainer/devcontainer.json --devcontainer --name web
spawnbox secrets set openai --hosts api.openai.com --env OPENAI_API_KEY
spawnbox volumes create work --size 5         # a 5 GiB volume
spawnbox create -v work:/data                 # mount it at /data
spawnbox create -v work:/data:ro              # mount it to read only
spawnbox tenants create acme
spawnbox keys create --tenant acme --name acme-prod
spawnbox events --follow
spawnbox usage

To see all the options of a command, type spawnbox <command> --help. To get JSON output, add --json. To use the CLI from your computer, build it with cargo build --release -p spawnbox-cli and use the SSH tunnel from step 7.

You can also set the server address and the key with the environment variables SPAWNBOX_URL and SPAWNBOX_API_KEY.

Use the Rust SDK

Install the official spawnbox crate from crates.io:

cargo add spawnbox
use std::time::Duration;
use serde_json::json;
use spawnbox::{ForwardClient, Method, SpawnboxClient};

let client = SpawnboxClient::new("http://127.0.0.1:8080", "sbx_api_key")?;
client.ensure_tenant("default", None).await?;
client
    .ensure_template(
        "python-data",
        &json!({ "name": "python-data", "base": "python:3.12-slim-bookworm" }),
        Duration::from_secs(2),
        60,
    )
    .await?;

let sandbox = client.create_sandbox(&json!({ "template": "python-data" })).await?;
let sandbox_id = sandbox["id"].as_str().unwrap();
let result = client.exec(sandbox_id, &json!({ "cmd": ["python3", "--version"] })).await?;

let forward = ForwardClient::new("http://127.0.0.1:8082", Some("fwd_key".into()))?;
let resp = forward.request(Method::GET, sandbox_id, 8000, "/health").send().await?;

The 0.1.x crate targets the Spawnbox v0.1.x (/v1) API. See crates/spawnbox/README.md and docs.rs/spawnbox for details.

TypeScript, Python & MCP

  • TypeScript SDK (sdks/typescript): zero runtime dependencies; supports execStream (SSE), snapshots, ports, services, git clone, volumes, templates, secrets, events, and sb.codeInterpreter() / sb.browser() helpers.
  • Python SDK (sdks/python): zero runtime dependencies; provides both sync (SpawnboxClient, Sandbox) and asyncio (AsyncSpawnboxClient, AsyncSandbox) clients with exec_stream, full API parity, and sb.code_interpreter() / sb.browser() helpers.
  • MCP server (spawnbox-mcp): exposes sandbox lifecycle, exec, files, snapshots, ports, services, git clone, volumes, and templates over stdio or Streamable HTTP:
# stdio (default, for local MCP clients)
SPAWNBOX_URL=http://127.0.0.1:8080 SPAWNBOX_API_KEY=sbx_... spawnbox-mcp

# Streamable HTTP (POST /mcp, GET /healthz)
SPAWNBOX_URL=http://127.0.0.1:8080 SPAWNBOX_API_KEY=sbx_... \
  spawnbox-mcp --listen 127.0.0.1:8787 --auth-token mcp_secret

How to use Spawnbox

Type these commands on the host, or on your computer with the SSH tunnel from step 7. The examples use the variables A, B and S from step 6.

Run commands

# Get the result as JSON: stdout, stderr, exit_code and duration_ms
curl -s -H "$A" -d '{"cmd": "ls -la", "cwd": "/tmp"}' $B/sandboxes/$S/exec

# Run without privilege escalation (sets PR_SET_NO_NEW_PRIVS, blocking sudo/setuid)
curl -s -H "$A" -d '{"cmd": "id", "no_new_privs": true}' $B/sandboxes/$S/exec

# Send data to stdin
curl -s -H "$A" -d '{"cmd": "wc -l", "stdin": "a\nb\n"}' $B/sandboxes/$S/exec

# Get the output live, as server-sent events
curl -N -H "$A" -H "Accept: text/event-stream" \
  -d '{"cmd": "for i in 1 2 3; do echo $i; sleep 1; done"}' $B/sandboxes/$S/exec

# Start a background process that continues after the request ends
curl -s -H "$A" -d '{"cmd": "setsid python3 -m http.server 3000 >/dev/null 2>&1 &"}' \
  $B/sandboxes/$S/exec

Read and write files

curl -s -H "$A" -X PUT --data-binary @main.py "$B/sandboxes/$S/files?path=main.py"
curl -s -H "$A" "$B/sandboxes/$S/files?path=main.py"        # file contents
curl -s -H "$A" "$B/sandboxes/$S/files?path=/workspace"     # directory list as JSON
curl -s -H "$A" -X DELETE "$B/sandboxes/$S/files?path=old&recursive=true"

Make your own template

A template is a start image for sandboxes. Spawnbox runs the setup commands one time. Then it saves a snapshot. Sandboxes from your template start as fast as sandboxes from the base template.

  1. Create the template:

    curl -s -H "$A" $B/templates -d '{
      "name": "py",
      "setup": ["apt-get update && apt-get install -y build-essential", "pip install requests"],
      "env": {"PYTHONUNBUFFERED": "1"},
      "resources": {"vcpus": 2, "memory_mib": 2048, "disk_gib": 20}
    }'
  2. Get the template. Do this again until latest_build.state is ready:

    curl -s -H "$A" $B/templates/py
  3. Create a sandbox from the template:

    curl -s -H "$A" -d '{"template": "py"}' $B/sandboxes

NOTE: The base disk is Debian 13 with Node.js 26.13.1 (with npm) and Python 3.15.2 (with pip) in /usr/local. It has no apt package lists. Run apt-get update before you install packages.

Ready-made coding agent templates

The templates/ directory has template files for three coding agent CLIs. Each file installs one pinned npm package on the base disk:

File Package Command
templates/claude-code.json @anthropic-ai/claude-code@2.1.322 claude
templates/codex.json @openai/codex@0.167.2 codex
templates/copilot.json @github/copilot@1.0.109 copilot

A first install starts a build of each template in the background. The builds take a few minutes, one time for each server. Builds stay after a restart. Then each sandbox starts from the saved snapshot, as fast as a sandbox from base:

spawnbox templates ls                   # wait until the build is ready
spawnbox create --template claude-code

The installer copies the files to /opt/spawnbox/templates. If you upgraded from an older version, or the install skipped the builds, build a template with the CLI:

spawnbox templates build /opt/spawnbox/templates/claude-code.json

Each template uses 2 vCPUs, 4096 MiB of memory and 20 GiB of disk. To get a newer agent, change the version in the file and build it again.

Give the agent its API key as a held secret, so the real key never enters the sandbox:

# Claude Code sends the key in the x-api-key header.
curl -s -H "$A" $B/secrets -d '{
  "name": "anthropic", "type": "http_header", "value": "sk-ant-...",
  "allowed_hosts": ["api.anthropic.com"], "env": "ANTHROPIC_API_KEY",
  "header": "x-api-key", "format": "{value}"
}'
curl -s -H "$A" -d '{"template": "claude-code", "secrets": ["anthropic"]}' $B/sandboxes

For Codex, use the openai secret from Use a secret safely (OPENAI_API_KEY).

NOTE: The held-secret setup for Copilot CLI is not documented here, because the hosts that it sends its token to are not verified.

Start a template from a container image

Set base to a container image. Spawnbox gets the image inside a builder VM, not on the host. Then it runs setup and saves a snapshot, as for other templates.

curl -s -H "$A" $B/templates -d '{
  "name": "node22",
  "base": "node:22-bookworm-slim",
  "setup": ["npm install -g pnpm"],
  "resources": {"disk_gib": 10}
}'
  • Use an image for linux/amd64. Use a digest, for example node@sha256:..., to always get the same image. Spawnbox reads a tag only when it builds the template.
  • The image environment variables (ENV) are set in each sandbox.
  • Spawnbox ignores the image ENTRYPOINT, CMD, USER and WORKDIR. Commands run as user (UID 1000) in /workspace. setup commands run as root.
  • The image must have /bin/sh. The unpacked image must fit in disk_gib.
  • The tenant's network rules apply to the image download.
  • For a private registry, make a held secret for the registry host (for example an http_header secret with Authorization: Basic ...). Put its name in registry_secrets. Spawnbox adds it only while it gets the image. You can set a maximum of 4.

Use a devcontainer.json

The CLI changes an image-based devcontainer.json into a template:

spawnbox templates build .devcontainer/devcontainer.json --devcontainer --name web
  • image becomes base. containerEnv and remoteEnv become env.
  • onCreateCommand, updateContentCommand and postCreateCommand become setup commands. They run as root.
  • The CLI refuses build, dockerFile, dockerComposeFile and features. It refuses values with ${...}.
  • The CLI shows the other fields that it ignores, for example forwardPorts.

Keep builds in an object store

Spawnbox can save each template build in an S3-compatible object store, for example Amazon S3, Cloudflare R2, Garage or SeaweedFS. Then:

  • When you make a template again with the same settings, Spawnbox gets the build from the store. This is faster than a new build.
  • If the build files on the host are lost, Spawnbox gets them from the store.
  • You can set a limit for the disk that builds use on the host.
  1. Make a bucket in your object store, for example spawnbox-builds.

  2. On the host, open the settings file:

    sudo nano /etc/spawnbox/spawnbox.env
  3. Add --build-store s3://spawnbox-builds/builds to the SPAWNBOX_ARGS line.

  4. Add the access settings of your object store on new lines. Use your values:

    AWS_ENDPOINT=https://s3.example.com
    AWS_REGION=us-east-1
    AWS_ACCESS_KEY_ID=your-access-key
    AWS_SECRET_ACCESS_KEY=your-secret-key

    For Amazon S3, do not add AWS_ENDPOINT. For a store without HTTPS, also add AWS_ALLOW_HTTP=true.

  5. Optional: to limit the disk that builds use, add --build-cache-gib 50 to the SPAWNBOX_ARGS line.

  6. Save the file and restart the service:

    sudo systemctl restart spawnbox
  7. Make sure that the build store operates:

    sudo journalctl -u spawnbox -n 50 | grep "build store"

    After each new build, the log shows saved to the build store.

NOTE: With --build-cache-gib, Spawnbox removes builds from the host when the disk is more than the limit. It removes only builds that are in the store and that nobody used in the last 10 minutes. The next sandbox from such a template waits while Spawnbox gets the build (approximately 5 seconds for 1 GiB).

NOTE: With a build store, only one host builds a new template. That host writes a claim object under <prefix>/claims/. The other hosts log is being built on another host; waiting and get the build from the store when it is there. If the host that builds stops, the other hosts wait until its claim is 3 minutes old. Then one of them builds the template. The store must support create-only writes (If-None-Match: *). If it does not, the log shows a warning and each host builds the template.

NOTE: A worker that joins gets the templates with the most sandboxes in the last 7 days first. If its builds already use all of --build-cache-gib, it does not download more builds. It gets each one from the store when a sandbox first uses it.

NOTE: On a Firecracker host, the first sandbox from a build that is only in the store does not wait for all of the memory. Spawnbox gets the disks, starts the sandbox, and gets the memory while it runs. The parts that the sandbox asks for come first. If a part is not available for 30 seconds, Spawnbox stops the sandbox. Its state becomes failed, and it gets a sandbox.lost event. A pause or a fork of such a sandbox waits until its memory is on the host.

NOTE: If a sandbox's VM stops on its own, for example because the guest crashed, Spawnbox notices within a second. The sandbox's state becomes failed, it gets a sandbox.lost event, and calls to it return 409 conflict. A warm VM that stopped is replaced by a normal start.

NOTE: Spawnbox deletes objects in the store that no host used for 7 days. Do not keep other data under the same prefix.

Open a terminal

Install websocat. Then type:

websocat -H "$A" --binary "ws://127.0.0.1:8080/v1/sandboxes/$S/pty?cols=120&rows=40"

Type exit to close the terminal.

Open a terminal or a private preview in a browser

Do not give your API key to a browser. Get a session token for one sandbox from your server, and give the token to the browser. A token opens one thing: the terminal, or the private preview of one port.

curl -s -H "$A" -d '{"ttl_s": 900, "audience": "terminal"}' $B/sandboxes/$S/session-tokens
curl -s -H "$A" -d '{"ttl_s": 900, "audience": "preview", "port": 3000}' \
  $B/sandboxes/$S/session-tokens
  • For the terminal, the browser opens ws://127.0.0.1:8080/v1/sandboxes/$S/pty?session_token=<token>.
  • For a private preview URL, add ?spawnbox_session=<token> to the URL. At the first visit, the token becomes a cookie.

The token stops after ttl_s seconds (maximum 900). It also stops when you revoke the API key that made it.

Clone a repository

curl -s -H "$A" -d '{"url": "https://github.com/octocat/Hello-World", "depth": 1}' \
  $B/sandboxes/$S/git:clone

Show a web app with a preview URL

  1. Start a web server in the sandbox. The server can listen on 127.0.0.1.

  2. Publish its port:

    curl -s -H "$A" -d '{"port": 3000}' $B/sandboxes/$S/ports
  3. Open the url from the output in your browser.

Keep a program running with a service

A service is a program that Spawnbox keeps running in the sandbox. Give the services when you create the sandbox:

curl -s -H "$A" $B/sandboxes -d '{
  "services": [{
    "name": "web",
    "command": ["python3", "-m", "http.server", "8000"],
    "cwd": "/workspace",
    "env": {"LOG_LEVEL": "info"},
    "port": 8000,
    "access": "private",
    "health": {"http": "/", "interval_s": 10, "failures": 3},
    "restart": "always"
  }]
}'
  • Spawnbox starts each service as user, with the env of the sandbox and then the env of the service.
  • If a service stops, Spawnbox starts it again. It waits 1 s, then 2 s, 4 s and up to 30 s. After 60 s of good operation, the wait is 1 s again. With "restart": "on-failure", a service that exits with code 0 stays stopped.
  • A health check is {"http": "/path"} (a GET must give a 2xx status) or {"tcp": true} (the port must accept a connection). If the check fails failures times one after the other, Spawnbox restarts the service.
  • Spawnbox publishes the port of a service with its access (default private). A preview request waits up to 30 s for the service to be healthy.
  • The last 1 MiB of output of each service is in /var/log/spawnbox/<name>.log in the sandbox.
  • A pause keeps the services and their processes. A resume does not restart them. A cold start of a persistent sandbox starts them again.
  • Sandboxes from a template made before services were added cannot have services. The create gives 409 conflict. Build the template again.

Pause and resume a sandbox

curl -s -H "$A" -X POST $B/sandboxes/$S:pause    # releases CPU and memory
curl -s -H "$A" -X POST $B/sandboxes/$S:resume   # processes continue

Usually, you do not need these commands. A sandbox pauses automatically after 10 minutes without requests. The next exec, file, terminal, clone or preview request resumes it.

Keep a sandbox until you delete it

S=$(curl -s -H "$A" -d '{"persistent": true}' $B/sandboxes | jq -r .id)

A persistent sandbox has no timeout. It pauses after 10 minutes without requests and stays paused until the next request. Paused retention does not delete it.

If Spawnbox cannot keep its memory, the sandbox becomes cold. This occurs when the server crashes, the VM stops on its own, a pause or a resume fails, the snapshot_storage_gib quota has no room for its idle pause, or the server stops before the sandbox can pause. The sandbox.cold event has the reason. The next exec, file, terminal, clone, preview or resume request starts it again from its template build. The processes and the files outside its volumes are gone. Its ID, env, secrets, network rules, volumes and published ports are the same.

A tenant needs the persistent_sandboxes quota. It is 0 by default. The primary admits each persistent sandbox and keeps its quota and its start record. By default it also runs the first VM. With --persistent-placement any on the primary, the first VM starts on a worker that ranks above the primary and has a build of the template's current spec. Only workers of this version or later take a first start. The primary never builds a template on a worker for this. If no worker can start it for sure, the primary starts it. If the primary cannot know whether the worker started it, the create gives 503 node_unreachable with the sandbox ID in the message. The sandbox is kept: it is cold, or it runs on the worker, and the next call to it starts it or reaches it. :migrate cannot copy a persistent sandbox to another host with its memory (409). In a fleet, a cold sandbox can start again on any worker that has its template build. Refer to Fence lost hosts. To run one on another host, let it become cold: it then starts on the host that takes the next call, from a build of that host. A drain does this for you.

Upgrades and old builds

The guest in a sandbox is part of its template build. A host accepts guests up to two minor versions older or newer than its own. A persistent sandbox can live longer than that, and the host that starts it can lack its build, for example after a leader failover. So:

  • A paused persistent sandbox whose guest the host no longer accepts is not resumed. It becomes cold with the reason guest_too_old, and the call starts it again from its start record.
  • A cold start uses the recorded build if this host has it, or can get it from the build store, and accepts its guest. If not, it uses a ready build of this host made from the same template spec, or builds that spec again with the current guest, as a template rebuild does. The sandbox then starts from that build from now on, and the event sandbox.rebuilt shows from_build, to_build and the reason: missing (no host file and not in the store), outdated (made with another kernel, base disk, runtime or disk IO engine) or guest_too_old.
  • Cold starts on one host that need the same spec wait for one build. On the primary, the call waits up to 60 seconds for it. When the sandbox starts on a worker, the call does not wait. In both cases, the call gives 503 rebuilding while the build goes on; try again.
  • If the spec cannot be built, the call gives 409 build_failed with the error, and the sandbox stays cold. The same error is given for the next 5 minutes, then the next call builds again. If a worker cannot build the spec, the primary starts the sandbox itself, and does not ask that worker to build the spec again for 5 minutes. A sandbox from a snapshot template cannot be built again on another host or version.
  • When a paused sandbox on a worker becomes cold this way, the worker tells the primary at once, and the primary starts the sandbox again for the same call. If that takes too long, the call gives 503 sandbox_cold; try again.

Fork a sandbox or save it as a template

curl -s -H "$A" -d '{"count": 3}' $B/sandboxes/$S:fork
curl -s -H "$A" -d '{"name": "with-deps"}' $B/sandboxes/$S:snapshot
curl -s -H "$A" -d '{"template": "with-deps"}' $B/sandboxes

Each copy starts with the files and the running processes of $S. $S continues to run. Use a fork to try different changes from the same point. Use a snapshot when you will need the same state again later.

Keep files in a volume

The files of a sandbox go away when you delete the sandbox. To keep files, put them in a volume. A volume is a disk with a name. It stays until you delete it.

  1. Create a volume of 5 GiB:

    curl -s -H "$A" $B/volumes -d '{"name": "work", "size_gib": 5}'
  2. Create a sandbox that mounts the volume at /data, and write a file:

    S=$(curl -s -H "$A" $B/sandboxes -d '{
      "volumes": [{"volume": "work", "path": "/data"}]
    }' | jq -r .id)
    curl -s -H "$A" $B/sandboxes/$S/exec -d '{"cmd": "echo hello > /data/note"}'
  3. Delete the sandbox. Then create a new sandbox with the same volume. The file /data/note is there.

Rules:

  • One sandbox can write to a volume at a time.
  • Many sandboxes can mount a volume with "read_only": true at the same time. They cannot do this while a sandbox writes to the volume.
  • If a volume is in use, the response is 409.
  • A sandbox can mount 1 to 4 volumes.
  • The user user owns the files on a new volume.
  • A volume keeps its data when the sandbox pauses, resumes or moves to a different host.
  • A volume works only with the backend of the first sandbox that mounted it: Firecracker or gVisor.

CAUTION: A volume is on the disk of one host. Spawnbox does not make a backup copy. If you lose the host, you lose the volume.

Control network access

This sandbox can connect only to github.com and to subdomains of pypi.org:

curl -s -H "$A" $B/sandboxes -d '{
  "egress": {"mode": "allowlist", "allow": ["github.com", "*.pypi.org"]}
}'

Use a secret safely

  1. Save the secret:

    curl -s -H "$A" $B/secrets -d '{
      "name": "openai", "type": "http_header", "value": "sk-...",
      "allowed_hosts": ["api.openai.com"], "env": "OPENAI_API_KEY"
    }'
  2. Create a sandbox with the secret:

    curl -s -H "$A" -d '{"secrets": ["openai"]}' $B/sandboxes

In the sandbox, $OPENAI_API_KEY contains a placeholder, for example sbx_ph_.... When code sends an HTTPS request to api.openai.com, Spawnbox puts the real key in the request. Other hosts get only the placeholder.

Serve many customers

Use your org key to create a tenant and a key for that tenant. The tenant key can see only the sandboxes of its tenant.

curl -s -H "$A" $B/tenants -d '{"id": "acme", "name": "Acme",
  "quotas": {"running_sandboxes": 5, "monthly_egress_bytes": 10000000000}}'
curl -s -H "$A" $B/keys -d '{"tenant": "acme", "name": "acme-prod"}'

Firecracker or gVisor

Spawnbox has two backends. A backend is the technology that isolates a sandbox. Each host uses one backend for all its sandboxes.

Item Firecracker gVisor
Host Needs KVM Does not need KVM. A usual cloud VM is sufficient.
Isolation Each sandbox is a microVM with its own Linux kernel. The CPU hardware isolates it. Each sandbox has the gVisor kernel. This kernel is a program on the host that does the system calls of the sandbox. This isolation is less strong than a microVM.
Linux functions All Most. Some programs that use special kernel functions do not operate, for example programs that load kernel modules.
API and functions All All. Pause, resume, warm pools and moves between hosts operate the same.

Spawnbox selects the backend when it starts:

  • If Spawnbox can open /dev/kvm, it uses Firecracker.
  • If it cannot open /dev/kvm, it uses gVisor.

To select a backend yourself, add --backend firecracker or --backend gvisor to the settings. Refer to Configuration.

To see the backend of a host, type this command on the host:

sudo journalctl -u spawnbox | grep "sandboxes run in"

Some customers must have microVM isolation. Set isolation of their tenant to microvm-only:

curl -s -H "$A" -X PATCH $B/tenants/acme -d '{"isolation": "microvm-only"}'

Then Spawnbox puts the sandboxes of this tenant only on Firecracker hosts. If no Firecracker host has space, a create gives 503 no_capacity. The default value of isolation is any.

See events and usage

# Tag a request with the step ID of your agent, then find its events
curl -s -H "$A" -H "X-Spawnbox-Step: tool-call-42" -d '{"cmd": "make"}' $B/sandboxes/$S/exec
curl -s -H "$A" "$B/events?step_id=tool-call-42"

# Stream all new events
curl -N -H "$A" "$B/events?follow=true"

# Get the usage for this month, for each sandbox
curl -s -H "$A" "$B/usage?group_by=sandbox"

See metrics in Prometheus

Start the server with --metrics-listen 127.0.0.1:9464. Then each host shows Prometheus metrics at http://127.0.0.1:9464/metrics. This address has no authentication. Use only a private address.

curl -s http://127.0.0.1:9464/metrics | grep spawnbox_create_seconds_count

Each metric is about the host that shows it. On a fleet, scrape each host. Prometheus adds the instance label.

Metric Labels Meaning
spawnbox_create_seconds (histogram) path (warm, cached, cold), backend Time to create a sandbox. cold means that the host got the build from the build store first.
spawnbox_create_step_seconds (histogram) step (prepare, restore, fixups), backend Time of each step of a create
spawnbox_api_errors_total code Error responses
spawnbox_egress_connections_total verdict Connections from sandboxes and template builds
spawnbox_dns_queries_total verdict DNS queries from sandboxes and template builds
spawnbox_sandboxes (gauge) state Sandboxes on the host that are starting, running, paused or cold
spawnbox_node_committed_ratio (gauge) resource (slots, memory) Part of the host in use, from 0 to 1
spawnbox_warm_pool_ready (gauge) template, build, network Warm VMs ready
spawnbox_warm_pool_hits_total, spawnbox_warm_pool_misses_total build Creates that got or did not get a warm VM
spawnbox_fleet_nodes (gauge) state Primary only: workers in each state
spawnbox_fleet_load (gauge) None Primary only: load of the primary and the ready workers that are not drained, from 0 to 1
spawnbox_service_restarts_total (counter) reason Restarts of services
spawnbox_fleet_create_refused_total (counter) reason Primary only: creates refused with no_capacity
spawnbox_self_fences_total (counter) reason (self_fenced, lease_lost) Times this host stopped its persistent sandboxes because it lost the primary or its lease
spawnbox_fenced_cold_total (counter) reason Primary only: persistent sandboxes of a lost host that became cold, by proof (operator, autoscaler, self_fence, failover)
spawnbox_stale_copies_total (counter) None Copies of persistent sandboxes from an older generation that a host deleted
spawnbox_sandbox_rebuilds_total (counter) reason (missing, outdated, guest_too_old) Cold starts of persistent sandboxes that used a new build of their template spec, because the recorded build could not be used
spawnbox_fleet_retirements (gauge) state Primary only: workers that retire, in each state (draining, blocked, ready_to_terminate)
spawnbox_creates_total (counter) result (ok or an error code) Create calls, by result
spawnbox_cold_starts_total (counter) result (ok or an error code) Cold starts of persistent sandboxes on this host, by result
spawnbox_cold_start_seconds (histogram) None Time of each cold start that worked
spawnbox_leader_term (gauge) holder (this host's ID) The term of the database lease this server holds as the primary. Only the leader shows it. It goes up each time a primary takes the lease: at a failover, and when the same primary restarts. A new holder means another host took over.
spawnbox_data_dir_available_bytes, spawnbox_data_dir_size_bytes (gauges) None Free space and size of the file system of --data-dir
spawnbox_start_time_seconds (gauge) None When this server process started, in seconds since the Unix epoch. It changes at each restart.
spawnbox_forward_requests_total (counter) code (ok or an error code) Requests on the forward listener, by result
spawnbox_forward_wakes_total (counter) None Sandboxes that the forward listener woke
spawnbox_forward_wake_wait_seconds (histogram) None Time that forwarded requests waited for a wake

deploy/prometheus/spawnbox-alerts.yml has alert rules for these metrics. Each alert is described, with its likely cause and first response, in deploy/prometheus/README.md.

Documentation

Detailed guides and references live in docs/:

How Spawnbox works

For diagrams and more data, read ARCHITECTURE.md.

Development

Spawnbox is a Rust workspace. Install Rust with rustup. The file rust-toolchain.toml sets the Rust version.

Type these commands in the repository directory. They operate on macOS and Linux:

cargo test --workspace --locked
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --locked -- -D warnings

The VM, network and API code compiles only on Linux. Thus, also run Clippy on Linux. You can write code on macOS, but you cannot run VMs on macOS.

Tests with real VMs

You must have a Linux x86_64 host with KVM that you use only for tests. On the host, type:

scripts/m0.sh          # boot, snapshot and restore times, and clone isolation
scripts/m1-smoke.sh    # the full API, with a restart, a crash and HTTPS
  • The two scripts use sudo. They remove all the items that they create.
  • They use the kernel, the base disk and Firecracker in ~/.cache/spawnbox/artifacts. scripts/build-artifacts.sh makes these files.

CAUTION: Do not run scripts/m1-smoke.sh while the installed service runs. The two use the same firewall table. First, type sudo systemctl stop spawnbox.

To run the server without the installer:

a=~/.cache/spawnbox/artifacts
scripts/build-artifacts.sh $a
cargo build --release --locked -p spawn-api
sudo target/release/spawn-api create-key --data-dir /var/lib/spawnbox
sudo target/release/spawn-api serve --data-dir /var/lib/spawnbox \
  --firecracker $a/bin/firecracker --jailer $a/bin/jailer \
  --kernel $a/vmlinux --rootfs $a/rootfs.ext4

Soak and failover tests

scripts/soak.py runs against an installed server or fleet for a long time and checks that nothing is lost, run twice or left behind. It uses only the Python standard library. It reaches the API with an org key, and each host with ssh as root, or as a user with sudo if you add --sudo. Name each host with --host NAME=TARGET. For NAME, use primary, standby or a worker's node ID from spawnbox nodes ls.

# 72 hours at about 30 live sandboxes, with a server killed every 6 hours.
scripts/soak.py --api http://10.0.0.5:8080 --key "$KEY" \
  --host primary=root@10.0.0.5 --host nod_1=root@10.0.0.6 \
  --ssh-opt=-i --ssh-opt="$HOME/.ssh/fleet" \
  --density 30 --duration 72h --chaos-every 6h --summary soak.json

# Kill a worker, cut a worker off from the primary, and kill the leader.
scripts/soak.py --mode failover \
  --api http://10.0.0.5:8080 --api http://10.0.0.7:8080 --key "$KEY" \
  --host primary=root@10.0.0.5 --host standby=root@10.0.0.7 \
  --host nod_1=root@10.0.0.6 --primary-ip 10.0.0.5 \
  --fence-after-s 60 --fence-margin-s 30 --summary failover.json

# Show the plan and probe the API and hosts without changing anything.
scripts/soak.py --dry-run --api http://10.0.0.5:8080 --key "$KEY" \
  --host primary=root@10.0.0.5
  • The soak creates ephemeral and persistent sandboxes in the tenant soak (--tenant). Each has a service and an env value, and each persistent sandbox has a volume. It pauses, wakes, cold starts (it kills the VM's firecracker process), kills services in the guest and deletes sandboxes at random.
  • Every --check-every (default 5 minutes) it checks these points:
    • Each persistent sandbox answers with its volume file, its env value and, unless it was cold started, its disk file.
    • No VM runs on two hosts, and each VM runs on the host that the API names.
    • No jail, network namespace or cgroup stays behind for a sandbox that was deleted, is cold or moved.
    • A killed service runs again.
    • The memory and open files of spawn-api do not grow beyond --max-rss-growth-mib and --max-fd-growth.
  • The failover mode puts persistent sandboxes on one host, then cuts the host off. New persistent sandboxes start on the primary by default, so the script moves each one to the worker by cold starts: it kills the VM and wakes the sandbox until placement picks that worker, up to --place-tries times (default 12). A cold start prefers the host that holds the sandbox's volume, so a sandbox with a volume reaches a worker only when the primary has no room. The worker scenarios use sandboxes without a volume unless you set --failover-volume-sandboxes. The leader scenario also uses sandboxes with a volume. It checks that no sample of the host's processes taken after the API made a sandbox cold still shows its VM. It wakes the sandboxes without a volume while the host is still cut off, so a second copy starts elsewhere, and checks that the two never run at once, also after the host returns. Then it checks that each sandbox starts again with its data.
  • A sandbox whose host is restarting or cut off, or whose volume's host is away, may answer 503 for a while. The script asks again for up to --verify-wait (default 3 minutes) before it counts the sandbox as lost. A wake or check that fails with another retryable error, such as 503 no_capacity on a full host, is asked again with backoff for up to --retry-wait (default 90 seconds). The summary counts these retries under errors as retried_<code>. An error that is not retryable counts as lost at once.
  • The script writes the summary (--summary) and exits with 1 if a check fails. It exits with 3 if it cannot set up what it tests, for example if it cannot write its markers or cannot get a sandbox onto the host of a scenario. These are not counted as lost sandboxes.
  • python3 scripts/soak_test.py tests the script's own logic against a stubbed API, without a server. scripts/soak.py --help lists every option.

Wake benchmark

scripts/wake_bench.py times how fast a small web app in a sandbox answers its first request. It uses only the Python standard library and a tenant key. It builds a template with a tiny Node HTTP server, then sends requests through the preview listener, as a browser would.

# Cold and resumed starts, 30 samples each after 3 warm-up runs.
scripts/wake_bench.py --api http://10.0.0.5:8080 --preview-addr 10.0.0.5:8081 \
  --key "$KEY" --phases cold --samples 30 --summary cold.json

# On the host: fill it with idle sandboxes, then wake them all at once.
scripts/wake_bench.py --api http://10.0.0.5:8080 --preview-addr 10.0.0.5:8081 \
  --key "$KEY" --phases density,wake --mem-stop-pct 80 \
  --data-dir /var/lib/spawnbox --summary wake.json
  • The phases are cold, resume (run with cold), burst, density and wake. scripts/wake_bench.py --help lists every option.
  • cold creates a sandbox with the app as a service and times it to the first 200. resume pauses that sandbox and times the request that resumes it. The two alternate, so drift touches both.
  • burst creates --burst sandboxes at once. wake pauses every density sandbox and wakes them all at once.
  • density stops before host memory would pass --mem-stop-pct, when the server refuses a sandbox, or at --density-max. It reads host memory and firecracker memory from /proc, so run it on the host.
  • Without --health, the server sends requests to the app as soon as it starts, so the script asks again every --poll-ms until the app answers. Many quick retries load a busy host, so a small --poll-ms slows a burst. With --health, the server holds each request until the app passes its check.
  • The script deletes every sandbox it made, checks the listing, and exits with 1 if one is still there. python3 scripts/wake_bench_test.py tests its own logic.

CAUTION: The failover mode kills servers and adds iptables rules on the hosts. Use it only on a test fleet. Do not run the soak on a fleet with real users.

Repository layout

Path Contents
crates/spawn-api The HTTP API server (spawn-api serve)
crates/spawn-node Builds, restores, pauses and connects VMs on one host
crates/spawn-egress The egress proxy: policy, records and secrets
crates/spawn-guest The agent that runs as PID 1 in each VM
crates/spawn-proto The gRPC contract between the host and the guest
crates/spawn-bench The boot and restore benchmark
crates/spawnbox-cli The spawnbox CLI
guest/ The guest kernel settings and the Debian base image, with Node.js and Python
templates/ Ready-made template files for coding agent CLIs
install.sh The one-line installer: downloads a release (or the code) and runs deploy/install.sh
deploy/install.sh The installer for one server, from a release bundle or the code
deploy/backup.sh Encrypted backups and restores. Refer to Back up and restore.
deploy/prometheus/ Prometheus alert rules and what to do for each alert
.github/workflows/release.yml Builds the release bundle for each v* tag
scripts/ Build scripts and end-to-end tests

Contributing

We welcome contributions. First, read CONTRIBUTING.md. Then do these steps:

  1. For a large change, open an issue first.
  2. Keep each change small.
  3. Run fmt, Clippy and the tests in Development.
  4. If you change the VM, network or API code, run scripts/m1-smoke.sh on a KVM host. If you change spawn-node or the guest, also run scripts/m0.sh.
  5. Add tests for the behavior that you change.
  6. If the available functions change, update this README.

WARNING: Do not use real credentials or personal data in tests.

Good first tasks: the TypeScript or Python SDK, the CLI, an MCP server, and examples for agent frameworks.

If you find a security problem, do not open a public issue. Read SECURITY.md to send a private report.

License

The Spawnbox code has the Apache-2.0 license. Dependencies, guest kernels and base images keep their own licenses.

Spawnbox is open source and you run it on your own servers. There is no hosted service and no paid plan.

Links


If Spawnbox helps you, give it a ⭐ on GitHub. It helps other people find it.


More from TulipFarm

TulipFarm — Build and run business operations with agents

Project Description
TulipFarm Open-source workspace for business operations with agents, records, knowledge & workflows
Huntsman Self-hosted Go + Lightpanda web scraper with Firecrawl-compatible API & MCP server
Keep Open-source memory and knowledge server for AI agents, written in Rust
Sprõut Accessible React 19 + Base UI + Tailwind CSS 4 component library

About

Open-source sandbox server for AI agents: Firecracker microVMs you run on your own servers

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages