E2B vs Upstash Box

E2B gives each agent a Firecracker microVM that runs Docker and can pause with its memory. One E2B run stops after 24 hours on Pro, and a pause and resume resets the clock. Upstash Box gives each agent a light container that bills only the CPU it uses and can stay on all month. Upstash does not document Docker inside a box.

The companies and products

E2B

E2B calls itself the AI agent cloud: an API that gives each agent session its own isolated Linux machine.

Every E2B sandbox is a Firecracker microVM that boots from a snapshot, so it starts fast and can be paused and resumed with its memory. You build custom sandboxes from templates based on a Docker image, and drive them from Python or JavaScript SDKs. It is built for teams that run many short code, data or agent jobs. Its runtime is open source, and E2B Embed runs it on your own infrastructure.

Upstash Box

Upstash Box is a cloud computer for AI agents from Upstash, the company known for serverless Redis, Vector and QStash.

Each box is a Docker container with its own filesystem, shell, git and an optional coding agent such as Claude Code, Codex, OpenCode or Cursor, which you drive from TypeScript or Python SDKs. A box pauses when it sits idle, keeps its files, and you pay for the CPU it actually uses. Upstash built it to run its own Context7 service and opened it to everyone in March 2026.

Which use cases each one fits

For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “20th cheapest of 365” means 19 of the other 364 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.

Use case and its workloadE2B: price rankUpstash Box: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory needs Docker for databases and test services. E2B runs Docker inside its microVM. Upstash does not document Docker inside a box, which is itself a container. boat runs Docker and adds /dev/kvm for emulators.
20th cheapest of 365
$4,143 a month
98th of 365, with limits
$464 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An Upstash keep-alive box stays on all month at a flat price. On E2B Pro one run stops at 24 hours, so your code pauses and resumes it, and memory survives the pause. boat runs a full VM with systemd and a desktop once auto-stop is off.
82nd of 361, with limits
$5,348 a month
170th of 361, with limits
$450 a month
6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
Both suit short code runs. An idle Upstash box costs no CPU, and its EphemeralBox deletes itself after at most 3 days. A paused E2B sandbox comes back in about a second with its processes running.
43rd cheapest of 336
$421 a month
13th cheapest of 336
$119 a month
189th of 336, with limits
$2,000 a month
Sandboxes for your users
300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month
Both wake a user's paused sandbox on the next request. boat gives each user a full VM with Docker and HTTPS URLs, and each create, fork or resume counts against the plan's start limits.
33rd cheapest of 349
$2,354 a month
4th cheapest of 349
$222 a month
3rd cheapest of 349
$209 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
E2B forks a running sandbox with its memory, up to 20 copies per call, which suits many short rollouts from one state. Upstash snapshots a running box and starts many new boxes from its files.
5th cheapest of 349
$9,384 a month
343rd of 349, with limits
$8,000 a month
39th of 349, with limits
$2,000 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
87th cheapest of 359
$1,975 a month
67th cheapest of 359
$1,011 a month
10th cheapest of 359
$200 a month
CI runners
40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month
338th of 374, with limits
$1,429 a month
122nd cheapest of 374
$1,480 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
An Upstash keep-alive box is a light dev box at a flat monthly price. On E2B you pause and resume once a day to pass the 24-hour cap. boat's dev box is a full VM with Docker and a 51 GB disk at the default size.
208th of 371, with limits
$358 a month
8th cheapest of 371
$19 a month
19th cheapest of 371
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
E2B has a Linux desktop for computer use, streamed over VNC. Upstash runs Chromium on a virtual display with a view-only live view, and its docs say it has no desktop or VNC. boat streams its desktop at 60fps.
34th cheapest of 367
$1,342 a month
123rd of 367, with limits
$76 a month
7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
Upstash ships a managed Chromium with AI page actions, CDP, recordings and a view-only live view. E2B and boat give the agent a desktop browser that it can see and click.
126th of 356, with limits
$746 a month
48th of 356, with limits
$38 a month
7th cheapest of 356
$200 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
62nd cheapest of 343
$554 a month
41st cheapest of 343
$400 a month
6th cheapest of 343
$90 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
226th of 327, with limits
$9,223 a month
201st of 327, with limits
$8,000 a month
73rd of 327, with limits
$1,800 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
17th cheapest of 351
$1,043 a month
255th of 351, with limits
$259 a month
3rd cheapest of 351
$200 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement
macOS agents
5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureE2BUpstash Boxboat
IsolationFirecracker microVM with its own kernelDocker container per box on AWSFull VM with its own kernel, on AMD Ryzen hosts dedicated to boat; shared vCPUs
CPU benchmark (V8 Web Tooling, 4 vCPU / 8 GB, StarSling run of 3 October 2026)11.08 runs/s, rank 7 of 15 (shared)Not in this benchmark28.06 runs/s, rank 2 of 15 (shared), on a Ryzen 9 9950X host
Start time (ComputeSDK, default size)1.1 s median with 100 at once (2026-11-06); 576 ms one at a time (2026-08-07)2.34 s median with 100 at once (2026-11-06); 445 ms one at a time (2026-08-07)Not in ComputeSDK
Docker insideYes, Docker runs inside the microVMNot documented; the box is itself a Docker container, and custom images are listed as coming soonYes, Docker and systemd run as on any Linux server
Nested virtualizationDocs list nested-virtualization runtimes such as Kata Containers or KubeVirt as not supportedNot documented; boxes are containersYes, /dev/kvm for Android emulators and VMs
Biggest machineUp to 8 vCPU / 8 GiB self-serve, more on requestLarge: 8 vCPU / 16 GB on self-serve plans; custom sizes on EnterpriseUp to 16 vCPU / 32 GB on the $100 plan and above
Disk10 GiB on Hobby, 20 GiB on Pro; more is not self-serve10, 20 or 30 GB by size, billed per GB-month; Medium is 30 GB in the pricing table51 GB at the default 4 vCPU / 8 GB size, 51 to 251 GB by size; fixed per size
Session lengthOne run: up to 1 hour on Hobby, 24 hours on Pro; pausing and resuming resets the clockNo cap documented; a keep-alive box stays on all monthNo cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days
Pause and wakeSaves memory and disk, or the filesystem only; resumes in about 1 second with processes running, also on the next HTTP request or SDK call; a paused sandbox costs nothingPauses itself after 6 hours idle on paid plans and keeps its files; a request to its public URL wakes it; storage keeps billing while pausedDisk saved every minute and at each stop; resume is like a reboot; no compute charge while stopped; disk kept at least 14 days, longer with a saved snapshot
ForkFork a running sandbox with its memory, up to 20 copies per callSnapshot a running box and start many new boxes from itFork a running sandbox from its last 1-minute disk snapshot
Desktop and browserE2B Desktop sandbox with VNC streaming for computer useManaged Chromium on a virtual display with AI page actions, CDP, recordings and a view-only live view; no desktop or VNCLinux desktop and Chrome streamed at 1920x1080 and 60fps, with computer-use tools
Inbound accessHTTPS URL per port, public by default unless you turn on a token; no public IP per sandboxHTTPS URL per port, public unless you add a token or basic auth; SSH through a gateway; no raw TCP documentedHTTPS URLs for up to 50 ports, token-protected by default; SSH; raw ports over public IPv6
Outbound rulesAllow and deny lists by IP, CIDR or domain; egress through your own SOCKS5 proxyAllow all, deny all, or allow and deny by domain and CIDR, changeable on a running boxOpen internet, no provider-side allowlist
Keeping API keys out of the sandboxSecrets injected into outbound HTTPS headers, in private betaHost proxy injects headers into outbound HTTPS on port 443 for any host; set when the box is createdOptional paid proxy ($1 a day plus $1 per 1,000 requests) for supported model providers and custom HTTPS APIs; switch a credential to another account when credits run out
Regions and self-hostingUS by default; EU and APAC enabled by support; open-source runtime, E2B Embed self-hosting, bring your own cloud on EnterpriseAWS us-east-1; custom regions on Enterprise; no self-hostingGermany, Finland and France; you cannot pick one; no US or Asia region; no self-hosting
Every feature Battleships tracks (43)
FeatureE2BUpstash Boxboat
Full VM (own kernel)YesNo documented wayYes
Docker insideYesNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesNot publishedYes
SystemdYesNot publishedYes
Desktop GUIYesNo documented wayYes
BrowserYesYesYes
Computer-use APIYesNo documented wayYes
SSHYesYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesNo documented wayYes
Fork/cloneYesYesYes
Live fork (no pause)YesYesYes
Memory forkYesNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesYesNo documented way
Wake on requestYesYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesYesYes
Secret proxy for any APIYesYesYes
Preinstalled agentsYesYesYes
Agent harness APINo documented wayYesYes
MCP serverYesYesNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo documented way
Self-hostingYesNo documented wayNo documented way
BYOCYesNo documented wayNo documented way
Open sourceYesNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsYesNot publishedYes
Usage per sandbox (API)No documented wayYesYes
Audit logsNot publishedNot publishedNo documented way
SSONo documented wayNo documented wayNo documented way
SOC 2YesYesNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesNo documented wayNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

E2B11.08 runs/s
Upstash BoxNot measured
boat28.06 runs/s

E2B and boat ran in StarSling's run of 3 October 2026 (run 37073680030), on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB. E2B did 11.08 runs/s, rank 7 (shared), and boat did 28.06, second of 15. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Upstash Box is not in that run, so we cannot compare its CPU. For start time at each provider's default size, ComputeSDK measured E2B at 1.1 s and Upstash Box at 2.34 s with 100 at once (2026-11-06), and 576 ms and 445 ms one at a time (2026-08-07). boat is not in ComputeSDK. Providers ran on different hardware in different regions.

V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Upstash Box is not in the public benchmarks we use, so we cannot say which is faster.

Pricing in five scenarios

Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.

ScenarioE2B, a monthUpstash Box, a monthboat, a month
One coding agent, workdays
4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days
$202 · Pro$21 · Pay as You Go$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$368 · Pro · with limits$21 · Pay as You Go$26 · $20/mo
50 agents in parallel
50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside
$2,773 · Pro$900 · Pay as You Go · with limits$317 · $20/mo × 3 seats
Sandboxes for your users
2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once
$1,395 · Pro+ (600 concurrent)$306 · Pay as You Go$200 · $100/mo × 2 seats
1,000 short jobs at once
2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month
$2,797 · Pro++ (1,100 concurrent)$1,822 · Pay as You Go$8,800 · $2000/mo · with limits

E2B: E2B bills per second for the vCPU and RAM you set, idle time included, until you pause or kill the sandbox: $0.33 an hour for 4 vCPU / 8 GiB. A paused sandbox costs nothing. Hobby costs $0 with a one-time $100 credit. Pro costs $150 a month for higher limits, with no usage credit. Pro+ ($650) and Pro++ ($1,150) raise concurrency to 600 and 1,100.

Upstash Box: A standard box is billed for the CPU it actually uses, at $0.10, $0.20 or $0.40 per active CPU hour for Small, Medium and Large, plus $0.10 per GB-month of storage, snapshots included. RAM is free, and Pay as You Go has no monthly fee. A keep-alive box costs a flat $8, $16 or $32 a month, busy or not.

Upstash Box: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A default 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge, and boat keeps its disk for at least 14 days. Extra saved snapshots and the optional AI credentials proxy still charge while sandboxes are stopped. The $20 plan includes 12 starts a minute and 200 a day; extra starts cost $0.03 to $0.07.

Limits in those scenarios

E2B Pro caps one run at 24 hours (Hobby: 1 hour), so this page's 24/7 agent needs a daily pause and resume there. E2B Pro includes 20 GiB of disk. Upstash does not document Docker inside a box, so the 50-agent scenario does not fit there, and its disks stop at 10, 20 or 30 GB by size. For 1,000 short jobs at once, E2B Pro++ queues bursts above 300 starts a minute, and Upstash starts them on Pay as You Go. boat's limits: even the $2,000 plan includes only 90 starts a minute and 2,400 a day, extra starts cost $0.03 to $0.07, and starts above 270 a minute fail with 429. boat has no US or Asia region and no GPU. A boat resume is like a reboot, and if a machine fails you lose what was written after the last good snapshot.

ScenarioE2BUpstash Boxboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenario
50 agents in parallel
  • egress price not published
  • not confirmed: Docker inside
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenario
Sandboxes for your users
  • egress price not published
  • egress price not published
None for this scenario
1,000 short jobs at once
  • egress price not published
  • bursts above 300 starts/min are queued (a burst of 333 takes ~2 min to start)
  • egress price not published
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use E2B when

you run many short jobs that pause between requests and need Docker, memory forks, self-hosting, or regions in the US, EU and APAC.

  • Memory pause and memory forks. For short jobs that sleep between requests: a paused sandbox comes back in about a second with its processes still running.
  • Docker and a desktop in a microVM. Each sandbox has its own kernel, runs Docker and can run E2B's Linux desktop. Upstash documents neither Docker in a box nor a desktop.
  • More regions and open source. It runs in the US, EU and APAC, its runtime is open source, and E2B Embed runs it on your own machines.

Use Upstash Box when

your agents mostly wait, should cost no CPU while idle, must stay on all month at a flat price, and do not need Docker.

  • Idle costs no CPU. For agents that wait a lot: Upstash bills only the CPU a box actually uses, and RAM is not billed at all.
  • Stays on all month. A keep-alive box runs all month at a flat price. On E2B Pro one run stops at 24 hours unless your code pauses and resumes it.
  • Agents with webhooks and schedules. Claude Code, Codex, OpenCode and Cursor are built in, with run and stream APIs, webhooks and scheduled prompts.

Where boat fits

If your agents do hours of installs, builds, Docker, emulators and a browser, look at boat. It gives each agent a full VM with a 51 GB disk at the default size, and no session cap once auto-stop is off. It runs only in Germany, Finland and France, and it caps starts per plan.

Docker and emulators both work

Upstash does not document Docker inside a box, so the 50-agent scenario does not fit there. E2B runs Docker, but its docs list nested-virtualization runtimes as not supported, so Android emulators and VMs do not start. boat has Docker, systemd and /dev/kvm.

More CPU work in one public run

In StarSling's run of 3 October 2026, E2B did 11.08 V8 Web Tooling runs/s and boat did 28.06, about 2.5x. Every boat sandbox in that run was on a Ryzen 9 9950X host; boat also uses other hosts. Upstash Box is not in that run, and its disk stops at 30 GB.

Ports and keys

E2B and Upstash give one public-by-default HTTPS URL per port and no public IP per sandbox. boat protects up to 50 URLs with a token by default and opens raw ports over IPv6. Its optional paid proxy keeps model keys outside the sandbox and can switch accounts.

Use boat when your agents need a full VM for hours: Docker, emulators, a 60fps desktop, a 51 GB disk or more, with no session cap once auto-stop is off. Compare it one to one: boat vs E2B and boat vs Upstash Box.

boat's own limits
  • Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
  • Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
  • A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
  • Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
  • boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
  • Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
  • Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
  • Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source

Questions people ask

Is E2B cheaper than Upstash Box?

No. Upstash Box costs less in every scenario on this page: one coding agent on workdays is $202 on E2B against $21 on Upstash, and 1,000 short jobs at once is $2,797 against $1,822. Upstash's 50-agent price ($900 against $2,773) does not count as a fit, because Upstash does not document Docker inside a box. boat costs $20, $26, $317 and $200 in the first four scenarios, and $8,800 for the burst, where its start limits block the job.

Which is faster, E2B or Upstash Box?

We cannot compare CPU: E2B did 11.08 V8 Web Tooling runs/s in StarSling's run of 3 October 2026, and Upstash Box is not in that run. boat did 28.06 in the same run, on a Ryzen 9 9950X host. For start time at the default size, ComputeSDK measured E2B at 1.1 s and Upstash at 2.34 s with 100 at once (2026-11-06).

Can E2B and Upstash Box run Docker?

E2B runs Docker inside its microVM, but its docs list nested-virtualization runtimes as not supported. Upstash's docs do not mention Docker inside a box, which is itself a Docker container. boat runs Docker, systemd and /dev/kvm.

Can a sandbox run for days on E2B or Upstash Box?

Yes on both. On E2B one run stops after 24 hours on Pro, but a pause and resume resets the clock and keeps memory. Upstash documents no cap, and a keep-alive box stays on all month. boat has no session cap once auto-stop is off on a paid plan (default 1 hour).

Does either have a desktop for computer use?

E2B has a Linux desktop sandbox for computer-use agents, streamed over VNC. Upstash runs Chromium on a virtual display with a view-only live view, and its docs say it has no desktop or VNC. boat streams a full Linux desktop at 60fps.

Where do E2B and Upstash Box run?

E2B runs in the US by default, with EU and APAC enabled by support, and E2B Embed runs on your own machines. Upstash Box runs in AWS us-east-1, with custom regions on Enterprise. boat runs on machines in Germany, Finland and France; you cannot pick one, and snapshot copies can be stored outside the EU.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons