Skip to content
Sandbox SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Compare providers

Compare Local with Docker or agentOS, E2B, Vercel Sandbox, Modal, Baseten, Daytona, Upstash Box, Railway, Boat, Sandboxer, Luxor, Superserve, boxd, Freestyle, Instabox, Archil, Maritime, Styne, Microsandbox, Buddy, 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, Instabox, Styne, 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 local() from /local None Development and CI
Local (agentOS) agentos() from /agentos None Local command and file tasks without Docker
E2B e2b() from /e2b E2B_API_KEY Pause with memory, hard lifetimes
Vercel Sandbox vercel() from /vercel OIDC, or VERCEL_TOKEN, VERCEL_TEAM_ID, VERCEL_PROJECT_ID Apps deployed on Vercel
Modal modal() from /modal MODAL_TOKEN_ID, MODAL_TOKEN_SECRET Exact keys, per-second CPU and memory sizing, image templates
Baseten baseten() from /baseten BASETEN_API_KEY Exact keys, automatic standby that keeps memory
Instabox instabox() from /instabox INSTABOX_API_KEY Firecracker machines, pause with memory, snapshots
Archil archil() from /archil ARCHIL_API_KEY Exact keys, pause with memory, a terminal, sizes up to 32 vCPUs
Maritime maritime() from /maritime MARITIME_API_KEY Per-second VMs, private previews by URL token, snapshots
Buddy buddy() from /buddy BUDDY_TOKEN, BUDDY_WORKSPACE Exact keys, persistent VMs, Basic-auth previews, snapshots
Agent 37 agent37() from /agent37 AGENT37_API_KEY Per-minute instances that sleep with memory, signed previews, forks
Styne styne() from /styne STYNE_API_KEY Fast microVM starts, memory pause, named snapshots
Microsandbox microsandbox() from /microsandbox MSB_API_KEY Standard or shared microVMs, root disk sizes, disk snapshots
Daytona daytona() from /daytona DAYTONA_API_KEY Custom sizes, idle auto-stop
Upstash Box upstash() from /upstash UPSTASH_BOX_API_KEY Durable state, filesystem snapshots
Railway railway() from /railway RAILWAY_API_TOKEN, RAILWAY_ENVIRONMENT_ID Ephemeral VMs, filesystem checkpoints
Sandboxer sandboxer() from /sandboxer SANDBOXER_API_KEY Ubuntu microVMs, memory pause, named disk snapshots
Boat boat() from /boat BOAT_API_KEY Persistent VMs for long-running agents
Luxor tenki() from /tenki TENKI_API_KEY or TENKI_AUTH_TOKEN Full VMs, disk and memory snapshots
Superserve superserve() from /superserve SUPERSERVE_API_KEY Firecracker microVMs, pause, snapshots
boxd boxd() from /boxd BOXD_API_KEY Persistent isolated VMs, memory pause
Freestyle freestyle() from /freestyle FREESTYLE_API_KEY Persistent VMs, default-deny firewall, memory snapshots
Memory 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.

Modal

gVisor sandboxes with exact keys, exact CPU and memory sizes, snapshots, and image templates.

Baseten

Sandboxes with exact keys that go on standby by themselves and keep memory, files, and processes.

Instabox

Firecracker machines with a persistent disk that pause with memory and take snapshots.

Archil

VMs with exact keys that pause with memory, open a terminal, and take network policies.

Maritime

Per-second virtual machines with exact sizes, private previews by URL token, pause, and named snapshots.

Styne

MicroVMs that start in a fraction of a second, pause with memory, and save named snapshots.

Microsandbox

MicroVMs on standard or shared compute, with root disk sizes, host allow lists, public preview URLs, and disk snapshots.

Buddy

Persistent Ubuntu VMs with exact keys, fixed sizes, previews behind Basic auth, stop and start, and snapshots.

Agent 37

Debian instances billed per minute that sleep with their memory, signed preview URLs, network policies, and forks as snapshots.

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.

Luxor

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.

Was this page helpful?