Machines & sizes
Every sandbox is a full Ubuntu 24.04 virtual machine. Pick one of four sizes and change it whenever you resume or fork.
A sandbox is a microVM, not a container. It runs its own Linux kernel under Cloud Hypervisor, with its own root filesystem, its own network stack and its own process tree. Inside it you are an ordinary Linux user with sudo.
What every sandbox has#
| OS | Ubuntu 24.04 LTS, our own kernel build |
| User | user (home /home/user), passwordless sudo |
| Init | systemd — systemctl enable your services and they come back after a resume or fork |
| Containers | Docker with BuildKit and Compose |
| Virtualization | /dev/kvm is available: run Firecracker, QEMU/KVM or the Android emulator inside |
| Network | Private IPv4 (NAT) and a public IPv6 address per sandbox |
| Access | SSH/SCP, an HTTPS URL per port, a streamed desktop, an exec API |
| Identity | A stable three-word subdomain (e.g. amber-fjord-lumen) that survives stop and resume |
Sizes#
| Type | vCPU | RAM | Disk | Rate |
|---|---|---|---|---|
small |
2 | 4 GB | 12 GB | 0.5× |
default |
4 | 8 GB | 50 GB | 1× |
large |
8 | 16 GB | 125 GB | 2× |
xlarge |
16 | 32 GB | 251 GB | ≈5.56× |
- The rate is how fast a size uses machine time relative to
default. See pricing for the dollar price per hour of each size. - "Disk" is space for your files, added on top of the OS image; the OS and pre-installed tools don't count against it. So
df -h /shows more than the listed size: asmallsandbox's root disk is the image (about 6–7 GB) plus 12 GB, about 19 GB. xlargeneeds the $100/month plan or higher. Lower plans get403 machine_class_plan_required.
sbx new --type small
sbx new --type largeChange size#
You choose the size when you create a sandbox, and you can make it bigger whenever you resume or fork:
sbx resume sb_k3v9x2mq --type large # same sandbox, bigger machine
sbx fork sb_k3v9x2mq --type xlarge # a bigger copy- Growing always works. The filesystem is expanded on first boot.
- Moving to a smaller size isn't supported yet. To go smaller, create a new sandbox of that size and copy your files across (for example with
sbx scporgit). - A resize resume cold-boots from disk instead of restoring memory (the memory image belongs to the old size). Enabled systemd services start; hand-started processes do not.
Fail fast#
By default a create waits for capacity if none is ready. Pass failFast when you would rather try again or fall back:
sbx new --fail-fast{ "type": "large", "failFast": true }Within about a second and a half you get either the usual 202 or 503 no_ready_machine. A refused fail-fast request creates nothing, bills nothing and doesn't count against your start limits. fork and resume accept it too.
Pre-installed software#
| Area | Tools |
|---|---|
| Coding agents | claude (Claude Code), codex, opencode, pi, kimi, vibe (Mistral) |
| JavaScript | Node.js 22 LTS with npm, pnpm, bun |
| Python | python3, pip, venv, uv |
| Other languages | Go, Rust (rustup, cargo), C/C++ (gcc, clang, cmake, ninja). Install anything else with apt, sdkman, rbenv and the like — you have root |
| Containers | docker, docker compose, docker buildx |
| Browsers | Google Chrome (headed on the desktop, or headless) |
| Version control | git, gh |
| Utilities | rg, jq, curl, ffmpeg, tmux, htop |
| Sandboxer | host (publish a port of this sandbox) |
Pre-installed tools live outside your home directory and take no space in your snapshots. Install anything else with apt, npm -g, pip or a vendor installer — your installs are saved by snapshots like any other file.
Inside the sandbox#
These variables are set for every process:
| Variable | Value |
|---|---|
SANDBOXER_ID |
This sandbox's id, e.g. sb_k3v9x2mq |
SANDBOXER_SUBDOMAIN |
Its stable slug, e.g. amber-fjord-lumen |
SANDBOXER_API_URL |
The API base URL |
SANDBOXER_TOKEN |
A key for the SDK and CLI calls this sandbox makes about itself (prompt, exec, files, host, reading its snapshots) |
host 3000 uses them to publish a port without signing in. The sbx CLI isn't pre-installed; to use it from inside a sandbox, install it and hand it the sandbox's token (self names the sandbox it runs in):
curl -fsSL https://sandboxer.com/install | sh
export SANDBOXER_API_KEY=$SANDBOXER_TOKEN
sbx snapshots selfNested virtualization#
/dev/kvm is exposed to the guest, so hypervisors work inside a sandbox:
ls -l /dev/kvm
sudo apt-get install -y qemu-system-x86
qemu-system-x86_64 -enable-kvm -m 2048 -nographic -cdrom alpine.isoUse large or xlarge for nested VMs or the Android emulator — the inner guest's RAM comes out of yours.
Performance#
Creating a sandbox. Each region keeps sandboxes already booted and paused, and a new sandbox from the standard image takes one instead of booting. Measured on 2026-10-28 from US-East (Leesburg, VA) through https://sandboxer.com, default size, from the create call to ready:
us-east |
eu-central |
|
|---|---|---|
| One create at a time (10 each, median / slowest) | 0.18 s / 0.32 s | 0.32 s / 0.33 s |
| 10 creates at once (median / slowest) | 0.38 s / 0.39 s | 0.58 s / 0.59 s |
The eu-central figures include the round trip from Virginia to Finland. Ready sandboxes kept per region today: us-east has 12 default, 4 small, 2 large and 1 xlarge; eu-central has 10 default, 6 small and 1 large. When none of a size is ready (a size the region doesn't keep, a burst bigger than what's ready, or a create from a snapshot), the sandbox boots instead, in about 1–2 s. Pools grow after a burst: a size's pool rises toward its creates in the last 10 minutes, up to twice its usual count, and shrinks back when it's quiet, so repeated bursts are served warm.
Bigger bursts. Measured on sandboxer.com production, Oct 31 2026, client in Ashburn VA, create→ready. Each burst was released at the same instant, and each sandbox was timed from its create call until it could run a command (waitFor=ready, as the SDKs, CLI and MCP wait):
| Burst | Size | Where they ran | Median | p90 | Slowest |
|---|---|---|---|---|---|
| 20 at once | default |
us-east (requested) |
0.76 s | 0.81 s | 0.82 s |
| 40 at once | default |
no region: 30 us-east, 10 eu-central |
1.87 s | 1.96 s | 2.00 s |
All of them became ready. At these sizes every sandbox comes from a warm pool. The method, the region split and the script are in how fast are burst sandbox creates. Without a region, a burst that uses up your region's pool spills to the other region.
A pooled sandbox has never run anyone's code. While it waits it makes its own fresh machine id and SSH host keys, which no other sandbox ever shares; when you create it, it gets a fresh random-number seed and your env, keys and token. Sandboxes waiting in a pool are never billed, and nothing changes in the API, SDKs or CLI.
CPU, disk and Docker pull measurements, with their method and scripts: CPU performance by size, disk throughput by size, Docker image pull time.