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.
- Isolation
- Firecracker microVM per sandbox
- Open source and self-hosting
- Runtime under Apache-2.0; E2B Embed runs it with Docker Compose, Terraform or Kubernetes
- Bring your own cloud
- Enterprise data plane in your AWS, GCP or Azure account
- Compliance
- SOC 2 Type II; HIPAA BAA on request
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 workload | E2B: price rank | Modal: price rank | boat: 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 requirement | 18th 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | E2B | Modal | boat |
|---|---|---|---|
| Isolation | Firecracker microVM with its own kernel; shared vCPUs | gVisor 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=4 | 28.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 inside | Yes | Yes with the VM runtime (runtime="vm"); not documented on the default gVisor runtime | Yes, in every sandbox |
| Nested virtualization | Docs list nested-virtualization runtimes as not supported | VM runtime only, Enterprise plan, as an experimental option | Yes, /dev/kvm on every sandbox for Android emulators and VMs |
| Longest session | One run: 1 hour on Hobby, 24 hours on Pro; pausing and resuming resets the clock | 24 hours (default 5 minutes); for longer work Modal recommends a filesystem snapshot and a new sandbox | No cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days |
| Pause and resume | Pause saves memory and disk, or the filesystem only; resumes in about a second with processes running | No 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 too | Stop saves the disk with no code; resume is like a reboot; disk kept at least 14 days, longer with a saved snapshot |
| Wake on request | Yes, when you turn it on: a paused sandbox resumes on the next HTTP request or SDK call | No paused state to wake; your code starts a new sandbox | No; you start a stopped sandbox by API, CLI or dashboard |
| Fork | Fork a running sandbox with its memory, up to 20 copies per call | One filesystem snapshot boots many identical sandboxes | Fork a running sandbox from its last 1-minute disk snapshot; writes from the last minute or so can be missing |
| GPUs | None | T4 to B300 on the gVisor runtime; 10 at once on Starter, 50 on Team | None |
| Desktop and computer use | E2B Desktop sandbox with VNC streaming | No built-in desktop; Modal's official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandbox and runs a Browser Use agent | Built-in desktop and Chrome at 1920x1080 and 60 fps, with computer tools for agents |
| Inbound access | HTTPS URL per port, public by default unless you turn on a token; no public IP per sandbox | Encrypted and raw TCP tunnels, connect tokens, inbound IP allowlist | Up 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 sandbox | Secrets injected into outbound HTTPS headers, in private beta | Secrets 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 |
| Regions | US by default; EU and APAC enabled by support | US, EU and Asia-Pacific plus narrower regions; pinning costs 1.15x to 1.75x | Germany, Finland and France; you cannot pick one; no US or Asia region |
| Self-hosting | Open-source runtime and E2B Embed; bring your own cloud on Enterprise | No | No |
Every feature Battleships tracks (43)
| Feature | E2B | Modal | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | No documented way | Yes |
| Docker inside | Yes | No documented way | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Yes | No documented way | Yes |
| Desktop GUI | Yes | With your own setup | Yes |
| Browser | Yes | With your own setup | Yes |
| Computer-use API | Yes | With your own setup | Yes |
| SSH | Yes | With your own setup | Yes |
| Persistent disk | Yes | With your own setup | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | Yes | No documented way | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Yes | Not published | Yes |
| Memory fork | Yes | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | Yes | No documented way | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | Yes | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | Yes | No documented way | Yes |
| Secret proxy for any API | Yes | No documented way | Yes |
| Preinstalled agents | Yes | With your own setup | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | Yes | No documented way | No documented way |
| GPU | No documented way | Yes | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | No documented way | No documented way |
| Self-hosting | Yes | No documented way | No documented way |
| BYOC | Yes | No documented way | No documented way |
| Open source | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Yes | Not published | Yes |
| Usage per sandbox (API) | No documented way | Not published | Yes |
| Audit logs | Not published | Yes | No documented way |
| SSO | No documented way | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | Yes | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
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.
| Scenario | E2B, a month | Modal, a month | boat, 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.
| Scenario | E2B | Modal | boat |
|---|---|---|---|
| One coding agent, workdays |
| None for this scenario | None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
|
| None for this scenario |
| Sandboxes for your users |
| None for this scenario | None for this scenario |
| 1,000 short jobs at once |
|
|
|
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