E2B vs Fly.io Machines

Both run your code in Firecracker microVMs. E2B is built as a sandbox for agent jobs, with SDKs, memory pause and forks. Fly.io Machines are the building block of an app hosting platform, and you turn one into a sandbox yourself. Fly sells Sprites separately for agent sandboxes.

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.

Fly.io Machines

Fly.io is an app hosting platform, and Machines are the microVMs underneath it that you can also start and stop through a REST API.

A Fly Machine boots your Docker image as a Firecracker microVM on Fly's own servers, in one of 17 regions. You pick a shared or performance CPU preset and mount one Volume at a time for data that must last. Fly Proxy can stop, suspend and wake Machines as traffic comes and goes. Machines themselves are an app-hosting building block; for agent sandboxes Fly also sells Sprites (see boat vs Sprites), so this page compares only the Machines product.

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 rankFly.io Machines: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
E2B pauses and resumes past its 24-hour run cap. On Fly you set it up: install Docker and a desktop in your image, and keep files on a Volume or turn on persist_rootfs. boat has Docker, /dev/kvm and a desktop on every machine.
20th cheapest of 365
$4,143 a month
123rd of 365, with limits
$836 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
One E2B run stops at 24 hours on Pro, so your code pauses and resumes it; memory survives. A Fly Machine has no documented maximum runtime, and keeps lasting files on a Volume or with opt-in persist_rootfs. On boat, turn auto-stop off on a paid plan.
82nd of 361, with limits
$5,348 a month
186th of 361, with limits
$816 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
E2B is built for this, with fast starts and memory pause. Fly costs less on shared CPU with no plan fee, but you package the interpreter yourself. On boat each start counts against the plan's start cap.
43rd cheapest of 336
$421 a month
83rd of 336, with limits
$94 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
E2B wakes a paused sandbox on the next request. Fly Proxy also wakes idle Machines on traffic, but its API creates about one Machine per second per app. boat gives each user a full VM with HTTPS URLs, and each start counts against the plan's start cap.
33rd cheapest of 349
$2,354 a month
75th of 349, with limits
$600 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 suits many short rollouts that branch from one state, thanks to memory forks and a high start rate. A Fly clone copies no memory, and its Volume starts empty unless restored from a snapshot or forked.
5th cheapest of 349
$9,384 a month
52nd of 349, with limits
$2,838 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
124th of 359, with limits
$457 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
CI keeps the CPU busy, which drains a shared Fly vCPU's burst balance; performance CPUs avoid that at a higher rate. Android or VM builds need /dev/kvm: boat has it, E2B's docs list it as not supported, and Fly does not document it.
338th of 374, with limits
$1,429 a month
154th of 374, with limits
$288 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
208th of 371, with limits
$358 a month
160th of 371, with limits
$35 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 Fly you set it up: add a desktop, a browser and a VNC stream to your image. boat streams a built-in desktop and Chrome at 1920x1080 and 60 fps.
34th cheapest of 367
$1,342 a month
140th of 367, with limits
$173 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
229th of 356, with limits
$90 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
233rd of 343, with limits
$67 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
Fly's bill is lower than E2B's here, and it can spread scrapers across 17 regions and pay only for the seconds they run.
226th of 327, with limits
$9,223 a month
47th of 327, with limits
$1,232 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
168th of 351, with limits
$63 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

FeatureE2BFly.io Machinesboat
Kind of productAgent sandbox API with Python and JavaScript SDKsApp hosting platform; Machines are its VM building block with a REST API. Fly sells Sprites separately for agent sandboxesAgent sandbox: a full VM per agent, ready to use
IsolationFirecracker microVM with its own kernel; shared vCPUsFirecracker microVM with its own kernel, on Fly's own serversFull VM with its own kernel, on boat's own AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; shared vCPUs
Docker, systemd and nested virtualizationDocker and systemd inside; docs list nested-virtualization runtimes as not supportedRoot and Docker you install yourself; Fly's own init by default; /dev/kvm not documentedDocker, root, systemd and /dev/kvm on every machine
Session lengthOne run: up to 1 hour on Hobby, 24 hours on Pro; pausing and resuming resets the clockNo documented maximum runtime; a Machine runs until it is stoppedNo cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days
Files after a stopPause keeps disk and memory, or the filesystem only; a paused sandbox is kept indefinitely at no chargeRoot file system resets by default; opt-in persist_rootfs keeps it, but Fly staff say not to trust it with critical data. Lasting data goes on one Volume with daily snapshots, billed for its full size all monthWhole disk saved every minute and at each stop, with no code; kept at least 14 days, longer with a saved snapshot. Memory, /tmp and most caches are not saved
Pause with memoryResumes in about a second with processes runningSuspend keeps memory for Machines up to 2GB; the snapshot is dropped on deploy or host moveNo; a resume is like a reboot
ForkFork a running sandbox with its memory, up to 20 copies per callClone copies a Machine's config; its Volume starts empty unless you restore a volume snapshot (--from-snapshot) or fork the VolumeFork a running sandbox from its last 1-minute disk snapshot; writes from the last minute or so can be missing
Wake on requestYes, when you turn it on: a paused sandbox resumes on the next HTTP request or SDK callFly Proxy stops or suspends idle Machines and wakes them when a request arrivesNo; you start a stopped sandbox by API, CLI or dashboard
StartsHobby 1 create a second, Pro 5 a second; no per-start feeMachines API: about 1 create request per second per app (short burst of 3)$20 plan: 12 a minute, 60 an hour, 200 a day included; extra starts $0.03 to $0.07 each, up to 1,200 a day, then refused; never queued
Desktop and computer useE2B Desktop sandbox with VNC streamingNot built in; you set it up: add a desktop, a browser and a VNC stream to your own imageBuilt-in desktop and Chrome at 1920x1080 and 60 fps, with computer tools for agents
Coding agentsTemplates and guides for many agents; you run the agent CLI through the command APINot built in on Machines; you install agents in your image. Fly's Sprites product ships Claude Code, Codex and GeminiSeven harnesses installed, with a prompt, steer and events API
Keeping keys out of the sandboxSecrets injected into outbound HTTPS headers, in private betaSecrets arrive as environment variables; you can deploy Fly's open-source tokenizer proxy yourselfOptional proxy ($1 a day while on, plus $1 per 1,000 requests) for supported model providers and custom HTTPS APIs
Reaching the sandboxHTTPS URL per port, public by default unless you turn on a token; no public IP per sandboxPublic HTTPS and TCP through Fly Proxy, Anycast IPs, custom domains, private network between MachinesUp to 50 HTTPS URLs per sandbox, token-protected by default; SSH; raw ports over IPv6 on sandboxes with no IPv4 of their own
Outbound rulesAllow and deny lists by IP, CIDR or domainNetwork policies allow chosen ports and protocols and deny the restOpen internet; no provider-side allowlist
CPU11.08 runs/s on V8 Web Tooling at 4 vCPU / 8 GB (StarSling run of 3 October 2026)Not in the public benchmarks we use; shared vCPUs guarantee 6.25% of a core, performance vCPUs get the full core28.06 runs/s in the same run, on a Ryzen 9 9950X host; shared vCPUs with no burst balance
RegionsUS by default; EU and APAC enabled by support17 regions on six continentsGermany, Finland and France; you cannot pick one; no US or Asia region
Every feature Battleships tracks (43)
FeatureE2BFly.io Machinesboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNot publishedYes
RootYesYesYes
SystemdYesNot publishedYes
Desktop GUIYesNo documented wayYes
BrowserYesNo documented wayYes
Computer-use APIYesNo documented wayYes
SSHYesYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesYesYes
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 wayYesYes
Public IPv4No documented wayYesNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesNo documented wayYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsYesNo documented wayYes
Agent harness APINo documented wayNo documented wayYes
MCP serverYesYesNo documented way
GPUNo documented wayNo documented wayNo 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 sourceYesYesNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsYesNo documented wayYes
Usage per sandbox (API)No documented wayNo documented wayYes
Audit logsNot publishedNot publishedNo documented way
SSONo documented wayNo documented wayNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

E2B11.08 runs/s
Fly.io MachinesNot measured
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, and 11.08 on E2B, rank 7 (shared). That is about 2.5x. 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. Fly.io Machines are not in the public benchmarks we use, so we cannot say how they compare. Fly's result would depend on the CPU class you pick.

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. Fly.io Machines 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 monthFly.io Machines, 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$15 · Pay As You Go · with limits$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$368 · Pro · with limits$36 · Pay As You Go · 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$487 · 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)$110 · Pay As You Go · with limits$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)$232 · Pay As You Go · 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.

Fly.io Machines: Fly bills each Machine per second while it runs, by CPU preset and memory, with no plan fee. Volumes bill for their full size all month at $0.15 per GB. The scenario figures use Fly's lowest rate: shared vCPUs in 1-year reservation blocks for 40% off. Shared vCPUs guarantee 6.25% of each core. A performance-4x Machine with 8GB, which gets the full cores, is $0.1833 an hour on demand.

Fly.io Machines: 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

One E2B run stops at 24 hours on Pro, so E2B needs a daily pause for the always-on scenario and is marked as not fitting as-is. E2B Pro includes 20 GiB of disk. Fly is marked a compromise in every scenario: its lowest figures need a 1-year reservation and use shared vCPUs that guarantee 6.25% of each core, so long builds get throttled. Fly's API creates about one Machine per second per app, so 1,000 jobs at once need pre-created Machines or several apps. E2B Pro++ queues bursts above 300 starts a minute. boat's limits: auto-stop defaults to 1 hour, and each plan caps starts. For 1,000 short jobs at once, 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.

ScenarioE2BFly.io Machinesboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • different kind of product: app platform
  • files survive a stop only in one Fly Volume (root file system too with opt-in persist_rootfs): packages installed elsewhere reset
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
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
  • different kind of product: app platform
  • files survive a stop only in one Fly Volume (root file system too with opt-in persist_rootfs): packages installed elsewhere reset
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
None for this scenario
50 agents in parallel
  • egress price not published
  • different kind of product: app platform
  • files survive a stop only in one Fly Volume (root file system too with opt-in persist_rootfs): packages installed elsewhere reset
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
None for this scenario
Sandboxes for your users
  • egress price not published
  • different kind of product: app platform
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
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)
  • different kind of product: app platform
  • 1-year commitment
  • burstable CPU: 6.25% of each vCPU guaranteed, throttled above that
  • 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 agent or code jobs that pause, fork or wake on request, and you want a sandbox SDK rather than a bare VM.

  • Built as a sandbox. For teams that want agent sandboxes from an SDK, E2B ships templates, a desktop and a command API instead of a bare VM.
  • Memory pause and forks. For short jobs that branch or sleep, E2B resumes in about a second with processes running and forks a sandbox with its memory.
  • Domain-level outbound rules and self-hosting. E2B can limit a sandbox to chosen domains, and E2B Embed runs its Apache-2.0 runtime on your own machines.

Use Fly.io Machines when

you host apps or light services that must run near users worldwide, sleep between requests and wake on traffic.

  • 17 regions worldwide. For work that must sit near users outside Europe, Fly runs Machines in 17 regions, from the US to Sydney and Johannesburg.
  • No session cap, no plan fee. A Fly Machine has no documented maximum runtime, and Fly bills per second with no plan fee.
  • A full app platform. For teams that host a product next to their sandboxes, Fly adds Anycast IPs, custom domains, raw TCP and a private network.

Where boat fits

For long, heavy agent work, E2B needs a pause past 24 hours and has no nested virtualization, and Fly Machines are app VMs that you turn into a sandbox yourself. boat gives every agent a full VM that saves its disk with no code, with a desktop, coding agents and an optional keys proxy.

A full VM with /dev/kvm

E2B's docs list nested virtualization as not supported, and Fly does not document /dev/kvm, so Android emulators and VMs are not a supported setup on either. Fly also uses its own init by default. boat has Docker, systemd and /dev/kvm on every machine.

Disk saved with no code

On E2B your code pauses and resumes past 24 hours on Pro. On Fly, lasting files go on a Volume billed all month, or on the root file system with opt-in persist_rootfs. boat saves the whole disk every minute and at each stop, and keeps it at least 14 days. A boat resume is like a reboot.

Agents, desktop and keys built in

On Fly Machines you build the image with a desktop, browser and agents, then write the code that drives them. E2B's key injection is in private beta. boat ships seven coding agents you drive from outside, a 60 fps desktop and an optional paid credentials proxy.

Use boat when your agents do real work for hours: installs, builds, tests, Docker and emulators on a full VM whose disk is saved every minute and at each stop, with a desktop and coding agents ready. 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 Fly.io Machines.

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 Fly.io Machines?

No. Fly's figures are lower in all five scenarios on this page, for example $36 against $368 for one agent running all month, and $487 against $2,773 for 50 agents. Those Fly figures assume a 1-year reservation of shared vCPUs that guarantee 6.25% of each core, so busy agents get throttled. boat costs $26 for the always-on agent and $317 for 50 agents.

Which is faster, E2B or Fly.io Machines?

Fly.io Machines are not in the public benchmarks we use, so we cannot say. In StarSling's run of 3 October 2026, E2B did 11.08 V8 Web Tooling runs/s at 4 vCPU / 8 GB, and boat did 28.06 on a Ryzen 9 9950X host. boat does not promise a CPU model.

Can E2B and Fly.io Machines run Docker?

Yes. Both run Docker inside the microVM; on Fly you install it in your image. E2B's docs list nested virtualization as not supported, and Fly does not document /dev/kvm. boat has Docker, systemd and /dev/kvm on every machine.

Can a sandbox run for days on E2B or Fly?

Yes on both. One E2B run stops after 24 hours on Pro and 1 hour on Hobby; pausing and resuming resets the clock and keeps memory. A Fly Machine has no documented maximum runtime. Its root file system resets by default, so lasting files go on a Volume or use opt-in persist_rootfs.

Can I use Fly.io Machines as an AI agent sandbox?

Yes, but you build the sandbox yourself: package the tools, browser and agents into an image, add a Volume for files that must last, and write the code that drives the agents. Fly's own agent sandbox is Sprites. E2B and boat ship more of that ready to use.

Is boat SOC 2 compliant?

SOC 2 is in progress; there is no SOC 2 report today. We're open about where we stand: live status at status.ascii.dev and our data retention policy at docs.boat.dev/data-retention.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons