Capabilities
Which sandbox providers support pause and resume, snapshots, network policies, sizes, timeouts and previews from TypeScript, with exact limits.
Sandbox SDK never drops an option it can’t enforce. If you ask a provider for something it can’t do, createSandbox throws SandboxError with code unsupported before anything runs. This page lists what each provider accepts. Compare providers lists each provider’s factory, credentials, and what it is best for.
For example, pause and resume from TypeScript (box.pause() and box.resume() in @opencoredev/sandbox-sdk) work on Local (Docker), E2B, Sandboxer, Luxor, Superserve, boxd, Freestyle, Instabox, Archil, Maritime, Styne, Buddy and Agent 37. Vercel Sandbox, Upstash Box and Buddy pause partly: they keep the disk but end running processes. agentOS, Baseten, Daytona, Railway, Boat and Memory have no pause, so calling box.pause() on them is a type error. Baseten puts an idle sandbox on standby by itself instead. The notes say what each provider keeps.
Matrix
Each row is an option or method. “No network” means network: "none", and “Allow list” means a network policy with an allow array. “Partial” means a limit that matters, and the notes under the table explain each one. The table scrolls sideways.
| Local | agentOS | E2B | Vercel | Modal | Baseten | Daytona | Upstash | Railway | Boat | Sandboxer | Luxor | Superserve | boxd | Freestyle | Instabox | Archil | Maritime | Buddy | Styne | Microsandbox | Agent 37 | Memory | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pause() |
Yes | No | Yes | Partial | No | No | No | Partial | No | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Partial | Yes | No | Yes | No |
snapshot() |
Yes | No | Yes | Yes | Files only | No | Yes | Yes | Files only | No | Yes | Yes | Yes | Yes | Yes | Yes | No | Yes | Yes | Yes | Yes | Yes | No |
deleteSnapshot() |
No | No | Yes | No | Yes | No | No | No | No | No | No | No | No | No | No | Yes | No | Yes | Yes | Yes | Yes | Yes | No |
buildTemplate() |
No | No | Yes | No | Yes | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No |
terminal() |
No | No | Yes | No | No | No | No | No | No | No | No | No | No | No | No | No | Yes | No | No | No | No | No | No |
| No network | Yes | Yes | Yes | Yes | Yes | No | Yes | Yes | No | No | No | Yes | Yes | No | Yes | No | Yes | Yes | No | Yes | Yes | Yes | Recorded |
| Allow list | No | Literal hosts | Yes | Yes | Yes | No | Yes | Yes | No | No | No | Yes | Yes | Yes | Empty only | No | Yes | Empty only | No | Empty only | Yes | Yes | Recorded |
| Size presets | Yes | No | No | Yes | Yes | Yes | Yes | Yes | No | Yes | Yes | Yes | No | Yes | No | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No |
| Exact size | No disk | No | No | vCPUs only | No disk | vCPUs only | Yes | No | No | No | No | Yes | No | Fixed steps | No | No disk | No disk | Yes | vCPUs only | Four sizes | Yes | Fixed tiers | No |
idleTimeoutMs |
Partial | No | No | No | Seconds | Yes | Minutes | No | Minutes | No | Minutes | No | No | Seconds | Seconds | Minutes | Seconds | Seconds | Seconds | Seconds | Seconds | Seconds | Yes |
timeoutMs |
Partial | No | Yes | Per session | Seconds | Yes | Minutes | No | No | No | No | Yes | No | Seconds | Seconds | Seconds | Seconds | Seconds | No | Seconds | Seconds | No | Yes |
ports |
Yes | No | No | Up to 15 | Yes | No | No | No | Up to 10 | No | No | No | No | No | No | No | No | No | No | No | No | No | No |
labels |
Yes | Yes | Yes | Up to 4 | Up to 7 | Yes | Yes | Yes | Yes | 120 chars | 120 chars | Yes | Yes | Yes | About 2.9 KB | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Key mode | exact | exact | best-effort | exact | exact | exact | best-effort | best-effort | best-effort | best-effort | best-effort | best-effort | best-effort | best-effort | best-effort | best-effort | exact | best-effort | exact | best-effort | best-effort | best-effort | exact |
| Preview URL | Localhost | No | Public | Public | Public | Public | Token header | Bearer header | Public | Cookie header | Cookie header | Public | Token header | Public | Public | Public | Public | Query token | Basic header | Token header | Public | Query token | Fake |
timeoutMs is the hard lifetime and idleTimeoutMs the idle timeout. “Minutes” and “Seconds” mean the provider enforces the limit in whole units of that size. In the ports row, an entry other than No means a preview port must be listed in ports when the sandbox is created. In the Preview URL row, “Public” means an https:// URL anyone can open, a header entry means preview.headers must go with every request, and “Query token” means the URL itself carries the credential, so keep it private.
scripts/check-capabilities.ts in the docs app checks this table against the adapters’ source on every CI run.
Notes
- Pause. Local uses
docker pause, so processes freeze and continue on resume. E2B, Luxor, boxd, Freestyle, Instabox, Archil, and Styne pause the VM with its memory. An Archil sandbox that paused itself (its lifetime or idle timeout ran out) stays asleep untilbox.resume(): a command on it fails withunavailable, and the SDK never wakes one by itself. Maritime pauses the VM too, has no resume call, and wakes it on the next command; an idle Maritime sandbox pauses by itself afteridleTimeoutMs(120 seconds by default). Luxor clears/tmp; the adapter keeps SDK process records in durable storage and restores their/tmp/.sandbox-sdklink on resume. Vercel Sandbox, Upstash Box and Buddy keep the disk and end running processes, which the SDK marks failed with exit code 137 on resume. Buddy’s pause stops the machine and its resume starts it again (a few seconds); traffic to one of its preview endpoints also starts a stopped Buddy sandbox. Callbox.process(name).restart()to start them again. A Vercel sandbox created withpersistent: false, or an Upstash Box created withephemeral: true, has no"pause"capability. Sandboxer usually restores memory and processes too. Daytona has no pause; its idle timeout stops the sandbox instead. Baseten has no pause call: a sandbox goes on standby about 15 seconds after its last request, keeps its memory, files, and processes, and resumes on the next request. Agent 37 sleeps the instance with its memory, so processes carry on after a resume; when Agent 37 cannot save the memory, the instance boots fresh with its files kept. - Snapshots. Microsandbox takes disk snapshots, which need the sandbox stopped: a running sandbox is stopped for the capture and started again, so its processes end. A snapshot keeps the disk, not memory, and is kept until deleted. Railway and Modal checkpoint the file system only. Modal keeps a snapshot for 30 days unless
expiresInMssays otherwise. Sandboxer snapshots are named disk snapshots that never expire. Agent 37 snapshots are forks of the instance kept stopped: restoring one forks it again, which took about 24 seconds, and each snapshot bills its disk until deleted. - Size. Local takes presets or
{ cpu, memoryMb }, because Docker can’t enforce a disk size. Vercel Sandbox derives memory from the vCPU count, 2048 MiB each, and has no disk setting. boxd sizes come in fixed steps of 1, 2, 4, or 8 vCPU with 4 GiB per vCPU and a 100 GB disk. Modal sets CPU and memory as both the request and the limit, so a sized sandbox gets exactly that much and can’t burst, and it has no disk setting. Baseten sets CPU from memory, 2 GiB per vCPU, and takes only 1, 2, or 4 vCPUs with no disk setting. Instabox takes the sizes your plan offers (2/4, 4/8, or 8/16 vCPU/GiB on Pro), and its 20 GiB disk comes with the size, sodiskGbfails. Archil takes 1 to 32 whole vCPUs and 256 to 65536 MiB; its root disk is fixed at about 1 TB, sodiskGbfails. Microsandbox takes presets (small 1/1, medium 2/4, large 4/8 vCPU/GiB) or any whole vCPU count with at least 128 MiB, anddiskGbsets the writable root disk of a fresh sandbox; a restore from a snapshot keeps the snapshot’s disk, sodiskGbwithfromfails. Maritime takes its presets (small 2/4, medium 4/8, large 8/16 vCPU/GiB) or any exact size from 1 to 16 vCPU, 1 to 64 GiB in whole GiB, and 5 to 500 GiB of disk; an exact size that is a preset with nodiskGbgets that preset’s disk (medium: 50 GiB). Styne has four sizes, 2/4, 4/8, 8/16, and 16/32 vCPU/GiB with 51, 51, 111, and 251 GiB disks: the presets map to the first three, an exact size must be one of the four, anddiskGbmust be that size’s disk. Buddy has twelve fixed sizes, 1x2 to 12x24 (vCPU x GB), so memory follows the vCPU count at 2 GB each (memoryMbof 2048 or 2000 per vCPU), and its 50 GB disk is fixed, so any otherdiskGbfails; its GB are decimal, so a 2x4 guest sees about 3.7 GiB. E2B fixes CPU, memory, and disk in the template, so anysizefails. Each provider page lists its preset mapping, and Machine size and network compares them. Agent 37 has four fixed sizes, 2x4, 4x8, 4x16 and 4x32 (vCPU x GB), each with its own disk range (2 to 12, 20, 40 or 80 GB), so any other size or disk fails. - Network. Local, Freestyle, and Styne enforce
"none"but have no per-host filter, so a nonempty{ allow }fails there. Styne’s ownallowOutopens nothing once all traffic is denied, checked live on 2026-11-23. boxd is the reverse: it takes allow lists but can’t express"none", because an empty boxd list means unrestricted. Luxor, Superserve, boxd, and Modal allow lists also take*.wildcards, and Superserve, boxd, and Modal take IPv4 addresses and CIDRs. Memory records the policy and has no network to enforce it on. Baseten takes no policy at all, and its outbound network is IPv6-only, so hostnames work and raw IPv4 addresses don’t. Instabox takes no policy either, and blocks outbound HTTPS to public DNS resolvers such as1.1.1.1:443. Archil’s free plan denies all outbound traffic whatever the policy says, and a policy on the free plan fails withunsupported; paid plans enforce the policy you set. Microsandbox turns{ allow }into deny-by-default egress rules: a host name,*.domain(the domain and its subdomains), an IPv4 address or a CIDR, and each allowed name also resolves. Maritime enforces"none", but its allowlist egress blocked an allowed host in a live test, so a nonempty{ allow }fails there. Agent 37 takes"none"and allow lists of up to 100 entries. - Timeouts. Railway’s idle timeout destroys the VM. Sandboxer’s pauses it. Daytona’s stops it and keeps the disk. Daytona works in minutes:
idleTimeoutMsrounds up to the next minute andtimeoutMsrounds down, so the hard limit is never longer than you asked.timeoutMsbelow one minute fails. Freestyle rounds the same way in seconds. boxd and Modal round both up to whole seconds. Modal capstimeoutMsat 24 hours, and without it stops a sandbox after 5 minutes. Vercel Sandbox appliestimeoutMsto each session, and each resume starts a new one. Baseten turns both into lifecycle policies that delete the sandbox. Instabox’s idle timeout pauses the machine and takes 5 to 30 whole minutes (default 30); itstimeoutMsdeletes the machine and takes 1 minute to 24 hours. Archil roundstimeoutMsdown and the idle timeout up, both to whole seconds, and pauses the sandbox when either fires;timeoutMstakes 60 seconds to 24 hours and can’t be combined with ports or previews, because traffic to a public port resumes a paused sandbox, and the idle timeout defaults to 30 minutes. Maritime’s idle timeout pauses the sandbox and takes 60 seconds to 24 hours; itstimeoutMsis a time limit counted from the create or the last resume, 1 second to 24 hours, and one command runs for at most an hour. Styne countstimeoutMsin running time, up to 24 hours: its clock stops while a sandbox sleeps or is paused. Styne’sidleTimeoutMs(up to an hour) puts the sandbox to sleep, and the next call wakes it. Microsandbox rounds both up to whole seconds;timeoutMsis the sandbox’s maximum lifetime (1 hour by default), after which it stops. Buddy has no hard lifetime, sotimeoutMsfails; its idle timeout stops the sandbox after that many seconds without activity, and one command runs for at most 90 minutes. Luxor supports a hard lifetime but rejects idle timeouts, which its current API no longer enforces. Memory runs its timers in your process. Local stores both deadlines on the container and enforces them when a client reconnects orreapSandboxesruns, so schedule a reaper if nothing reconnects. Agent 37 has no hard lifetime, sotimeoutMsfails; its idle timeout sleeps the instance, from 5 minutes to 1 day. - Provider timers. Some providers reject
timeoutMsbut have a timer of their own on the factory. Boat and Sandboxer takettlSeconds, an auto-stop that restarts while Boat’s agent works, so it is not a hard lifetime. Upstash Box takesttlSecondswithephemeral: trueas a leak backstop. Superserve takesautoPauseMsandautoDeleteMs. The provider pages explain each one. - Labels. Vercel allows five tags per sandbox. The SDK uses one, and a second for a keyed sandbox, so you get four labels, or three with a
key. Boat and Sandboxer store the key and labels in a compressed display name of at most 120 characters. Freestyle stores them in native VM metadata, which holds about 2.9 KB once encoded. Modal allows ten tags and 1024 bytes per sandbox; the SDK uses two, keeps a third free for the tagdestroy()adds, and uses a fourth for a keyed sandbox, so you get seven labels, or six with akey. Railway, boxd, and Archil keep them in a marker file inside each VM. A paused or stopped Archil sandbox is left out oflistSandboxes()andreapSandboxes(), because its marker can’t be read until it runs;connectSandboxby ID still reaches it. - Key mode. agentOS keys are exact within one application process.
- Previews. Local returns
http://127.0.0.1on the Docker host, so the URL works only on that machine. boxd gives one public route per machine, and previewing a new port moves it. Baseten previews are public, anddestroy()deletes them, because Baseten keeps a preview after its sandbox is gone. Instabox previews are public and take ports 1024 and up. Archil previews are public exposed ports, opened on the firstbox.preview(port). Maritime previews are private: the URL carries the sandbox’s?token=, and apathkeeps it;maritime({ public: true })makes previewed ports public instead. Styne previews need the sandbox’s traffic token inpreview.headers, unless the factory setspublic: true. Microsandbox previews are public Services (https://<slug>.<domain>) that the adapter creates on the firstbox.preview(port)and deletes with the sandbox. Buddy previews are private by HTTP Basic auth:box.preview(port)returns the URL and anAuthorizationheader to send, and a second client reads the same credentials back from the sandbox;buddy({ public: true })makes previewed ports public instead. Daytona, Upstash Box, and Superserve can make previews public with a factory option, and E2B can make them private. agentOS has no preview URLs, and Memory returns fake ones. Agent 37 previews are signed URLs with ana37_tokenquery parameter that expire afterpreviewTtlMs(one hour by default);public: truegives a permanent public URL instead. - Terminal. E2B and Archil have a PTY. Each terminal is a login shell running as root, with
TERM=xterm-256color. - Snapshot deletion and templates.
deleteSnapshot()andbuildTemplate()are root functions that take the provider, because neither needs a running sandbox. E2B stores snapshots as templates, so deleting a snapshot deletes that template. Modal stores both as images, sodeleteSnapshot()also deletes a template built withbuildTemplate(). - Upstash Box. Listing SDK boxes reads metadata from inside each box and may wake idle boxes.
- Railway. Rejects all common sizes because Railway can’t set a disk size; set CPU and memory with the factory’s
resourcesoption. Its idle timeout destroys the VM. See Railway. - agentOS. Supports only the
"network-policy"optional capability. It runs locally in V8 and WebAssembly, with in-process identity. SDK process handles and previews are unsupported; native process and HTTP APIs remain available. See Local (agentOS). - boxd. A restored snapshot keeps the source’s size, image, and env. See boxd.
Peer packages
E2B, Daytona, Freestyle, Superserve, Instabox, Maritime, Styne, Buddy, Agent 37, Boat, and Sandboxer call their provider’s HTTP API directly and need no peer. Microsandbox calls its REST API for everything but commands and files, which need its peer. The other cloud providers load their company’s own SDK the first time they do anything. These are optional peers, so your package manager won’t install them for you: add the one for each provider you use next to @opencoredev/sandbox-sdk. Version is the range the SDK accepts.
| Provider | Import | Peer package | Version |
|---|---|---|---|
| Local | @opencoredev/sandbox-sdk/local |
None | None |
| agentOS | @opencoredev/sandbox-sdk/agentos |
@rivet-dev/agentos-core |
0.4.1 |
| E2B | @opencoredev/sandbox-sdk/e2b |
None | None |
| Vercel | @opencoredev/sandbox-sdk/vercel |
@vercel/sandbox |
^3.8.0 |
| Modal | @opencoredev/sandbox-sdk/modal |
modal |
^0.11.1 |
| Baseten | @opencoredev/sandbox-sdk/baseten |
@basetenlabs/sandbox |
^0.5.0 |
| Daytona | @opencoredev/sandbox-sdk/daytona |
None | None |
| Upstash | @opencoredev/sandbox-sdk/upstash |
@upstash/box |
^0.7.9 |
| Railway | @opencoredev/sandbox-sdk/railway |
railway |
^3.16.0 |
| Boat | @opencoredev/sandbox-sdk/boat |
None | None |
| Sandboxer | @opencoredev/sandbox-sdk/sandboxer |
None | None |
| Luxor | @opencoredev/sandbox-sdk/tenki |
@tenkicloud/sandbox |
^1.4.1 |
| Superserve | @opencoredev/sandbox-sdk/superserve |
None | None |
| boxd | @opencoredev/sandbox-sdk/boxd |
@boxd-sh/sdk |
>=0.2.17 <0.4.0 |
| Freestyle | @opencoredev/sandbox-sdk/freestyle |
None | None |
| Instabox | @opencoredev/sandbox-sdk/instabox |
None | None |
| Archil | @opencoredev/sandbox-sdk/archil |
disk |
^1.12.1 |
| Maritime | @opencoredev/sandbox-sdk/maritime |
None | None |
| Styne | @opencoredev/sandbox-sdk/styne |
None | None |
| Microsandbox | @opencoredev/sandbox-sdk/microsandbox |
microsandbox |
^0.8.1 |
| Buddy | @opencoredev/sandbox-sdk/buddy |
None | None |
| Agent 37 | @opencoredev/sandbox-sdk/agent37 |
None | None |
| Memory | @opencoredev/sandbox-sdk/memory |
None | None |
Local needs a running Docker Engine instead. agentOS also needs its platform sidecar package; see Local (agentOS).
Capability names
box.capabilities is a ReadonlySet of these names:
| Capability | Means |
|---|---|
"pause" |
pause() and resume() exist |
"snapshot" |
snapshot() exists and createSandbox accepts from |
"snapshot-delete" |
deleteSnapshot(provider, id) works |
"templates" |
buildTemplate(provider, spec) works |
"terminal" |
terminal() exists |
"network-policy" |
network accepts "none", and maybe { allow } |
"size" |
size accepts presets, and maybe exact numbers |
A capability means the provider supports the feature in general. The matrix has the finer limits: for example, Local declares "network-policy" but only accepts "none".
Checked by TypeScript
Methods for optional capabilities exist on the sandbox type only when the provider declares them. Calling box.pause() on Memory is a type error, not a runtime surprise. The same goes for the provider-level functions: deleteSnapshot(memory(), id) does not compile.
import { createSandbox } from "@opencoredev/sandbox-sdk";
import { e2b } from "@opencoredev/sandbox-sdk/e2b";
await using box = await createSandbox(e2b(), { key: "project:42" });
await box.run("npm install");
await box.pause();
Check at runtime
When the provider is chosen at runtime, read box.capabilities:
import { createSandbox } from "@opencoredev/sandbox-sdk";
import { e2b } from "@opencoredev/sandbox-sdk/e2b";
await using box = await createSandbox(e2b());
console.log([...box.capabilities]);
This prints [ "pause", "snapshot", "snapshot-delete", "templates", "terminal", "network-policy" ].
A provider typed as plain Provider still compiles with deleteSnapshot and buildTemplate. They then throw unsupported before any request when the provider lacks the capability.
What fails, and when
Each of these makes createSandbox throw unsupported before the provider is called, or right after creation when only the provider can tell:
sizeon a provider without"size", or a size it can’t honor. The message names what the provider allows.networkother than"all"on a provider without"network-policy", or a policy it can’t enforce. E2B reads the settings back after creation and destroys the sandbox if they don’t match.fromon a provider without"snapshot".idleTimeoutMsortimeoutMson a provider that can’t enforce it.keyMode: "exact"on a best-effort provider withoutlocator.withLock.
Error codes are listed in Errors.