E2B vs Modal

E2B gives each agent a Firecracker microVM that can pause with its memory and wake on the next request. Modal gives you serverless sandboxes inside a bigger AI cloud, with GPUs from T4 to B300. Modal sandboxes run on gVisor by default or on a VM runtime, and your code keeps their files with filesystem snapshots.

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.

Modal

Modal is a serverless cloud for AI work: inference, training, batch jobs and sandboxed code, all driven from Python, TypeScript or Go code.

Modal Sandboxes are containers you create from code, run commands in, and then terminate. By default they run under gVisor, a user-space kernel from Google. Since October 2026 you can also pick a VM runtime with its own Linux kernel for Docker and FUSE (Battleships tracks that as a separate card, Modal VM Sandboxes). Your code can save a sandbox's disk as a filesystem snapshot and start new sandboxes from it. It suits teams that already run models on Modal and want scalable code execution next to their GPUs.

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 rankModal: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
20th cheapest of 365
$4,143 a month
106th of 365, with limits
$633 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
Both stop one run at 24 hours. E2B pauses and resumes with memory kept. On Modal your code snapshots the filesystem and starts a new sandbox each day. On boat, turn auto-stop off on a paid plan (default 1 hour).
82nd of 361, with limits
$5,348 a month
61st of 361, with limits
$1,574 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 fit short code runs. Modal publishes no start-rate cap and runs up to 5,000 containers on Team; this preset costs $140 a month on Modal against $421 on E2B. E2B adds memory pause and wake on request. On boat each start counts against the plan's start cap.
43rd cheapest of 336
$421 a month
15th cheapest of 336
$140 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 fit sandboxes for your users. E2B wakes a paused sandbox on the next request. On Modal your code saves and restores each user's filesystem snapshot. A stopped boat sandbox keeps its disk for at least 14 days with no code.
33rd cheapest of 349
$2,354 a month
18th cheapest of 349
$671 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
Both are built for many short rollouts. E2B forks a running sandbox with its memory, up to 20 copies per call. Modal boots many sandboxes from one filesystem snapshot, and its memory snapshots are alpha. A boat fork copies the disk only and counts as a start.
5th cheapest of 349
$9,384 a month
6th cheapest of 349
$11,982 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
62nd cheapest of 359
$889 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
E2B runs Docker in every sandbox; Modal runs Docker with runtime="vm". Android or VM builds need nested virtualization: boat has /dev/kvm, Modal offers it on the Enterprise plan only as an experimental option, and E2B's docs list it as not supported.
338th of 374, with limits
$1,429 a month
110th cheapest of 374
$1,112 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box that runs all month needs a pause on E2B or a daily filesystem snapshot on Modal. boat runs with no cap once auto-stop is off, and saves its disk every minute with no code.
208th of 371, with limits
$358 a month
129th of 371, with limits
$9.07 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. On Modal you set it up: its official example installs Xvfb, Chromium and noVNC in a VM sandbox. With that setup, this preset costs $153 a month on Modal against $1,342 on E2B and $200 on boat.
34th cheapest of 367
$1,342 a month
45th cheapest of 367
$153 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
126th of 356, with limits
$746 a month
57th of 356, with limits
$121 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
98th cheapest of 343
$252 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
171st of 327, with limits
$5,957 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
289th of 351, with limits
$464 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
Modal has GPUs from T4 to B300. Neither E2B nor boat has a GPU, so Modal is the pick here.
Not ranked: misses a requirement18th cheapest of 102
$1,116 a month
Not 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

FeatureE2BModalboat
IsolationFirecracker microVM with its own kernel; shared vCPUsgVisor user-space kernel by default; VM runtime with its own kernel (runtime="vm")Full VM with its own kernel, on boat's own AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; 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)VM runtime 15.48 runs/s, gVisor 12.60, both rank 7 of 15 (shared); measured with cpu=428.06 runs/s, rank 2 of 15 (shared), on a Ryzen 9 9950X host
List price, 4 vCPU / 8 GB running$0.33 an hour; $0 while paused; Pro ($150 a month) buys limits, not usage$0.476 an hour at 2 cores (Modal's unit: 1 core = 2 vCPU) + 8 GiB, billed on max(request, use); Starter is $0 with $30 of credit a month$0.036 an hour, from a $20 monthly plan (all of it VM time for that month)
Docker insideYesYes with the VM runtime (runtime="vm"); not documented on the default gVisor runtimeYes, in every sandbox
Nested virtualizationDocs list nested-virtualization runtimes as not supportedVM runtime only, Enterprise plan, as an experimental optionYes, /dev/kvm on every sandbox for Android emulators and VMs
Longest sessionOne run: 1 hour on Hobby, 24 hours on Pro; pausing and resuming resets the clock24 hours (default 5 minutes); for longer work Modal recommends a filesystem snapshot and a new sandboxNo cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days
Pause and resumePause saves memory and disk, or the filesystem only; resumes in about a second with processes runningNo paused state. Filesystem snapshots (kept 30 days by default, or with no expiry) and memory snapshots (alpha, 7 days) restore into a new sandbox; Volumes keep files tooStop saves the disk with no code; resume is like a reboot; disk kept at least 14 days, longer with a saved snapshot
Wake on requestYes, when you turn it on: a paused sandbox resumes on the next HTTP request or SDK callNo paused state to wake; your code starts a new sandboxNo; you start a stopped sandbox by API, CLI or dashboard
ForkFork a running sandbox with its memory, up to 20 copies per callOne filesystem snapshot boots many identical sandboxesFork a running sandbox from its last 1-minute disk snapshot; writes from the last minute or so can be missing
GPUsNoneT4 to B300 on the gVisor runtime; 10 at once on Starter, 50 on TeamNone
Desktop and computer useE2B Desktop sandbox with VNC streamingNo built-in desktop; Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandbox and runs a Browser Use agentBuilt-in desktop and Chrome at 1920x1080 and 60 fps, with computer tools for agents
Inbound accessHTTPS URL per port, public by default unless you turn on a token; no public IP per sandboxEncrypted and raw TCP tunnels, connect tokens, inbound IP allowlistUp to 50 HTTPS URLs per sandbox, token-protected by default; raw ports over IPv6 on sandboxes with no IPv4 of their own
Keeping API keys out of the sandboxSecrets injected into outbound HTTPS headers, in private betaSecrets are environment variables, or you run your own proxy in a sidecar (official example)Optional proxy ($1 a day while on, plus $1 per 1,000 requests) for supported model providers and custom HTTPS APIs
RegionsUS by default; EU and APAC enabled by supportUS, EU and Asia-Pacific plus narrower regions; pinning costs 1.15x to 1.75xGermany, Finland and France; you cannot pick one; no US or Asia region
Self-hostingOpen-source runtime and E2B Embed; bring your own cloud on EnterpriseNoNo
Every feature Battleships tracks (43)
FeatureE2BModalboat
Full VM (own kernel)YesNo documented wayYes
Docker insideYesNo documented wayYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdYesNo documented wayYes
Desktop GUIYesWith your own setupYes
BrowserYesWith your own setupYes
Computer-use APIYesWith your own setupYes
SSHYesWith your own setupYes
Persistent diskYesWith your own setupYes
Pause/resumeYesNo documented wayYes
Automatic snapshotsYesNo documented wayYes
Fork/cloneYesYesYes
Live fork (no pause)YesNot publishedYes
Memory forkYesYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesYesNo documented way
Wake on requestYesNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayYesYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesNo documented wayYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsYesWith your own setupYes
Agent harness APINo documented wayNo documented wayYes
MCP serverYesNo documented wayNo documented way
GPUNo documented wayYesNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo 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 wayNot publishedYes
Audit logsNot publishedYesNo documented way
SSONo documented wayYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

E2B11.08 runs/s
Modal12.60 runs/s
boat28.06 runs/s

In StarSling's run of 3 October 2026 (run 37073680030), the V8 Web Tooling Benchmark at 4 vCPU / 8 GB did 28.06 runs/s on boat (second of 15), 15.48 on Modal's VM runtime, 12.60 on Modal's default gVisor runtime and 11.08 on E2B. Modal and E2B share rank 7, so the run cannot separate them on this test. On the Better-Auth repo in the same run, boat took 135.8 s, Modal VM 180.8 s, E2B 295.4 s and Modal gVisor 326.9 s. StarSling ran Modal with cpu=4, and the sandbox saw 4 CPUs (PR #121); sized that way, Modal bills 4 cores, $0.76/h. 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. Providers ran on different hardware in different regions. For start time with 100 at once (ComputeSDK, 2026-11-06), Modal gVisor's median was 796 ms and E2B's 1.1 s, at each provider's default size; boat is not in ComputeSDK.

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. Modal measured on: Sandbox (gVisor), request = size, any region. 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.

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 monthModal, 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$0 · Starter$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$368 · Pro · with limits$109 · Starter · with limits$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$1,480 · Starter · 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)$579 · Team$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,911 · Team · with limits$8,800 · $2000/mo · with limits

E2B: E2B bills $0.000014 per vCPU-second and $0.0000045 per GiB-second while a sandbox runs, idle included: $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 sandboxes.

Modal: Modal bills by the second for whichever is higher, the CPU and memory you request or what you use, until the sandbox is terminated. Modal prices CPU per physical core, and one core equals 2 vCPU, so 4 vCPU / 8 GiB is $0.476 an hour at a full request. Starter is free with $30 of monthly credit, and Team is $250 a month with $100 of credit. Egress above the free allowance costs $0.04 per GiB. The scenario bills use the cheapest Modal setup that Battleships prices, which for some workloads is a small request billed close to actual use, with no guaranteed CPU above the request.

Modal: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. Unused time does not carry over. A 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. Saved snapshots above the included count and the optional AI credentials proxy still charge while sandboxes are stopped. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; create, fork and resume each count as one start, and an extra start costs $0.03 to $0.07. A card is required, also for the 7-day trial.

Limits in those scenarios

E2B Pro and Modal both stop one run at 24 hours, so neither fits the always-on scenario as-is: E2B needs a daily pause, and Modal needs a filesystem snapshot and a new sandbox each day. On Modal, files outside a filesystem snapshot or a Volume end with the sandbox, so your code saves them between sessions. Docker needs Modal's VM runtime, so the 50-agent fleet does not fit the default gVisor sandbox. For 1,000 short jobs at once, E2B Pro++ fits and queues bursts above 300 starts a minute, while Modal's Team bill assumes shared burst CPU that is not guaranteed. boat's limits: auto-stop defaults to 1 hour, and each plan caps starts. For that burst, even the $2,000 plan needs paid extra starts and refuses starts above 270 a minute, so boat does not fit. boat has no US or Asia region and no GPU.

ScenarioE2BModalboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
None for this scenarioNone for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • Starter: sessions capped at 24 h
None for this scenario
50 agents in parallel
  • egress price not published
  • missing Docker inside
None for this scenario
Sandboxes for your users
  • egress price not published
None for this scenarioNone 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)
  • shared vCPUs on this tier (Modal sells dedicated cores separately as “Sandbox (gVisor), request = size, any region”): heavy, sustained CPU use can be slowed by other tenants
  • 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

your agents run short jobs that pause between requests, need Docker and a desktop in every sandbox, or you want a runtime you can host.

  • Memory pause and wake on request. For jobs that sleep between requests: a paused E2B sandbox comes back in about a second with its processes still running.
  • Docker and a desktop in the default sandbox. Every E2B sandbox runs Docker, and E2B ships a Linux desktop. On Modal, Docker needs the VM runtime and the desktop comes from an example you deploy.
  • Self-hosting and your own cloud. E2B Embed runs its Apache-2.0 runtime on your machines, and Enterprise customers can run it in their own AWS, GCP or Azure account.

Use Modal when

your sandboxes need GPUs, sit next to models you already run on Modal, or come in huge bursts across many regions.

  • GPUs on the same platform. If your agent trains or runs models, Modal rents GPUs from T4 to B300 next to its sandboxes.
  • More regions to pick from. Modal runs in the US, EU and Asia-Pacific and lets you pin a sandbox to a region, for a higher rate.
  • Very large bursts. Modal's Team plan runs up to 5,000 containers at once and publishes no start-rate cap, which suits huge waves of short jobs.

Where boat fits

E2B and Modal both do well at short jobs that start fast and end soon. If your agents work for hours or days, with installs, builds, Docker, emulators and a desktop, boat gives each one a full VM that saves its disk with no code. It has no session cap once auto-stop is off on a paid plan (default 1 hour).

Disk saved with no code

E2B Pro and Modal both end one run at 24 hours. On E2B your code pauses and resumes the sandbox. On Modal your code takes a filesystem snapshot, kept 30 days by default or with no expiry, and starts a new sandbox from it. boat saves the disk every minute and at each stop. A boat resume is like a reboot.

More CPU work in one public run

In StarSling's run of 3 October 2026, at 4 vCPU / 8 GB, boat did 28.06 V8 Web Tooling runs/s, Modal's VM runtime 15.48, Modal gVisor 12.60 and E2B 11.08. The boat sandboxes ran on Ryzen 9 9950X hosts; boat also places sandboxes on other hosts.

A full machine with agents built in

E2B's docs list nested virtualization as not supported, and Modal offers it on Enterprise only. On both you install the agent harness. boat ships /dev/kvm, seven agents with a prompt API, a 60 fps desktop and an optional paid proxy that keeps supported providers' keys out.

Use boat when your agents work for hours or days: installs, builds, tests, Docker, emulators and a desktop, on a full VM that saves its disk with no code. Turn auto-stop off on a paid plan for long work (default 1 hour). Compare it one to one: boat vs E2B and boat vs Modal.

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 Modal?

Usually not. One agent on workdays is $0 on Modal Starter (inside its $30 credit) against $202 on E2B. Sandboxes for your users cost $579 on Modal against $1,395, and 50 agents $1,480 on Modal's VM runtime against $2,773. For 1,000 short jobs at once, E2B Pro++ fits at $2,797, and Modal Team costs $1,911 on shared burst CPU. boat costs $20, $200 and $317 for the first three, and does not fit the 1,000-job burst because of its start limits.

Which is faster, E2B or Modal?

In StarSling's run of 3 October 2026, at 4 vCPU / 8 GB, Modal's VM runtime did 15.48 V8 Web Tooling runs/s, Modal gVisor 12.60 and E2B 11.08; the run ranks all three 7th (shared). boat did 28.06 on a Ryzen 9 9950X host, and boat does not promise a CPU model.

Can E2B and Modal run Docker?

E2B runs Docker inside its sandboxes. Modal runs Docker with its VM runtime (runtime="vm"); the default gVisor runtime does not document it. Every boat sandbox runs Docker and has /dev/kvm. E2B's docs list nested virtualization as not supported, and Modal offers it on Enterprise only.

How long can a sandbox run on E2B and Modal?

One E2B run lasts 1 hour on Hobby and 24 hours on Pro, and pausing and resuming resets the clock. Modal's default timeout is 5 minutes and its maximum is 24 hours; for longer work it recommends a filesystem snapshot and a new sandbox. boat has no session cap once auto-stop is off on a paid plan.

Does E2B or Modal have GPUs?

Modal does, from T4 up to B300, on its gVisor runtime. E2B has no GPU, and neither does boat.

Can I pause a sandbox and come back later?

E2B can pause a sandbox with its memory and resume it in about a second. Modal has no paused state, but filesystem snapshots (kept 30 days by default, or with no expiry) and memory snapshots (alpha, 7 days) restore into a new sandbox, and Volumes keep files too. boat saves the disk every minute and at each stop, and keeps a stopped disk at least 14 days; a boat resume is like a reboot.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons