Compare providers
Compare Local with Docker or agentOS, E2B, Vercel Sandbox, Daytona, Upstash Box, Railway, Boat, Sandboxer, Tenki, Superserve, boxd, Freestyle, and Memory side by side. Factories, credentials, and what each one is best for.
A provider is where sandboxes actually run. You pick one by importing its factory from a subpath and passing it to createSandbox. The rest of your code stays the same when you switch.
E2B, Daytona, Freestyle, Superserve, Boat, and Sandboxer call the provider’s HTTP API directly, so they need no package besides Sandbox SDK. The others use the provider’s own SDK, which you install next to Sandbox SDK; Peer packages names the package and version range for each one. It loads on the provider’s first operation, so unused providers cost nothing. Either way, calls use your credentials.
Not sure where to start? Choose a provider maps common needs to a provider. Adapters that other people publish and maintain are on Community providers.
At a glance
| Provider | Factory | Credentials | Best for |
|---|---|---|---|
local() from /local |
None | Development and CI | |
agentos() from /agentos |
None | Local command and file tasks without Docker | |
e2b() from /e2b |
E2B_API_KEY |
Pause with memory, hard lifetimes | |
vercel() from /vercel |
OIDC, or VERCEL_TOKEN, VERCEL_TEAM_ID, VERCEL_PROJECT_ID |
Apps deployed on Vercel | |
daytona() from /daytona |
DAYTONA_API_KEY |
Custom sizes, idle auto-stop | |
upstash() from /upstash |
UPSTASH_BOX_API_KEY |
Durable state, filesystem snapshots | |
railway() from /railway |
RAILWAY_API_TOKEN, RAILWAY_ENVIRONMENT_ID |
Ephemeral VMs, filesystem checkpoints | |
sandboxer() from /sandboxer |
SANDBOXER_API_KEY |
Ubuntu microVMs, memory pause, named disk snapshots | |
boat() from /boat |
BOAT_API_KEY |
Persistent VMs for long-running agents | |
tenki() from /tenki |
TENKI_API_KEY or TENKI_AUTH_TOKEN |
Full VMs, disk and memory snapshots | |
superserve() from /superserve |
SUPERSERVE_API_KEY |
Firecracker microVMs, pause, snapshots | |
boxd() from /boxd |
BOXD_API_KEY |
Persistent isolated VMs, memory pause | |
freestyle() from /freestyle |
FREESTYLE_API_KEY |
Persistent VMs, default-deny firewall, memory snapshots | |
memory() from /memory |
None | Unit tests |
What each provider supports
Providers differ in key mode, pause, snapshots, size, network policy, idle and lifetime limits, declared ports, and preview URLs. The capability matrix puts all of them side by side, with a note on each limit that matters. A script checks it against the adapters’ source on every CI run.
Key mode in one sentence
Exact providers guarantee that concurrent createSandbox calls with the same key land on one sandbox. Best-effort providers find sandboxes by searching, so two requests at the same moment can create two. Read Exact and best-effort keys for the fix.
Provider pages
Local
Docker for real Linux or agentOS for a small runtime without Docker. No cloud account.
E2B
MicroVMs that pause with memory, network allow lists, and a lifetime a reconnect can’t extend.
Vercel Sandbox
Named sandboxes with exact keys, OIDC inside Vercel, and up to 15 declared ports.
Daytona
Exact machine sizes, idle auto-stop, and previews protected by a token header.
Upstash Box
Durable cloud containers with filesystem snapshots and protected previews.
Railway
Ephemeral Linux VMs with filesystem checkpoints and declared public preview ports.
Boat
Persistent cloud VMs with size presets and token-protected previews.
Sandboxer
Ubuntu microVMs in two regions with memory pause, named snapshots, and cookie-authenticated previews.
Tenki
Full Linux VMs with disk and memory snapshots, pause, and exact machine sizes.
Superserve
Firecracker microVMs with pause, snapshots, and authenticated HTTPS previews.
boxd
Persistent isolated Linux machines with pause and HTTPS proxies.
Freestyle
Persistent VMs with default-deny networking and memory snapshots.
Memory
An in-process fake with files, scripted commands, and fake preview URLs.
Community providers
Adapters their authors publish on npm, such as Raft for Incus containers on your own hosts.
Write a provider
Implement a small set of primitives and get the whole API on top.