Vercel Sandbox vs Fly.io Machines

Both run your code in Firecracker microVMs with their own kernel. Vercel Sandbox is a ready sandbox for runs of untrusted code, with 24-hour sessions that resume from a snapshot. Fly.io Machines are the app-hosting VMs under Fly.io, with no session cap; files last on a Volume, or on the root file system with opt-in persist_rootfs.

The companies and products

Vercel Sandbox

Vercel is a cloud platform for web apps and agents, and Vercel Sandbox is its product for running untrusted or agent-written code in isolated Linux microVMs.

Each sandbox is a Firecracker microVM with its own kernel, started from a Vercel image, your own OCI image, or a saved snapshot. You drive it with the JavaScript or Python SDK or the sandbox CLI: run commands, move files, open ports, fork sandboxes, mount Drives and set network rules. Sandboxes are persistent by default: each stop saves the filesystem, and the next session resumes from it. Vercel aims it at code interpreters, app builders, test runs, developer environments and agent workspaces. Its docs suggest a VM for 24/7 hosting.

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. “27th cheapest of 336” means 26 of the other 335 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 workloadVercel Sandbox: 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
Both are a compromise for a software factory. Vercel ends each session at 24 hours and has no nested virtualization. On Fly you build an image with Docker and a desktop, and keep files on a Volume or with persist_rootfs. boat fits with Docker, /dev/kvm and a built-in desktop.
259th of 365, with limits
$3,351 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
Both are a compromise for an assistant that runs for weeks. Vercel resumes across 24-hour sessions, but processes start again. Fly has no session cap, but its lowest rate uses shared vCPUs that guarantee 6.25% of each core.
75th of 361, with limits
$3,657 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
Vercel fits short code bursts fully, since it bills CPU only while code uses it. Fly costs less here ($94 against $216 a month), but it is a compromise: shared vCPUs and an app-hosting product you set up yourself.
27th cheapest of 336
$216 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
Vercel fits sandboxes for your users fully. Fly's API takes about one create request per second per app, so sign-up waves need pre-created Machines. boat fits at $209 a month in this preset, against $1,267 on Vercel.
25th cheapest of 349
$1,267 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
Vercel fits many short parallel rollouts, with high concurrency and fast starts. Fly and boat both fit only as a compromise.
7th cheapest of 349
$15,761 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
81st cheapest of 359
$1,508 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
Vercel fits CI fully. CI keeps the CPU busy, which drains a shared Fly vCPU's burst balance; Fly's performance vCPUs avoid that at a higher rate. boat fits at $86 a month in this preset.
112th cheapest of 374
$1,144 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
283rd of 371, with limits
$145 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
Neither has a built-in desktop. On Vercel you install a browser with root or connect a cloud browser; on Fly you add a desktop and VNC to your image. boat ships a 60 fps desktop with Chrome and computer tools.
263rd of 367, with limits
$952 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
100th of 356, with limits
$486 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
109th cheapest of 343
$468 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
All three are a compromise here. Fly's bill is lowest ($1,232 a month, against $1,800 on boat and $9,960 on Vercel), and it can spread scrapers across 17 regions.
234th of 327, with limits
$9,960 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
31st cheapest of 351
$554 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

FeatureVercel SandboxFly.io Machinesboat
Kind of productSandbox product for running untrusted or agent-written codeApp 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 kernelFirecracker microVM with its own kernel, on Fly's own serversFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Longest session24 hours per session on Pro and Enterprise, 45 minutes on Hobby; a persistent sandbox then resumes from its snapshot, with no cap on total lifetimeNo documented cap; a Machine runs until you or autostop stop itNo session cap once you turn auto-stop off on a paid plan; auto-stop defaults to 1 hour and goes up to 30 days
Files after a stopFilesystem snapshot at every stop, on by default, $0.08/GB-month; expires 30 days after last use, or never if you set it. Plus Drives: mounted storage kept until you delete itRoot 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 (daily snapshots), billed for its full size all monthWhole disk saved every minute and at each stop, at no charge; a stopped disk is kept at least 14 days; saved snapshots never expire, each one above the plan's count costs $0.056 a day
Memory on pauseNot kept; a new session boots from the snapshotSuspend keeps memory for Machines up to 2GB; the snapshot is dropped on deploy or host moveNot kept; resume reboots from disk
Docker, systemd and nested virtualizationDocker with sudo; no /dev/kvmRoot and Docker you install yourself; Fly's own init by default; /dev/kvm not documentedDocker, root, real systemd and /dev/kvm on every sandbox
ImagesVercel image, your own OCI image from a Dockerfile, or a saved snapshotBoots your own Docker imageStart from boat's image or a saved snapshot (template), shareable by code; you cannot boot your own Docker or OCI image
Desktop, browser, computer useNo built-in desktop, browser or computer-use API; you install Chromium and agent-browser yourself (root access, Vercel guide) or connect an external cloud browserNot built in; you add a desktop, a browser and a VNC stream to your own imageBuilt in: 1920x1080, 60 fps desktop and Chrome, computer tools and a browser-control API, embeddable stream
Coding agentsClaude Code, Codex, OpenCode and pi preinstalled; you start them as commandsNot built in on Machines; you install agents in your image. Fly's separate Sprites product ships coding agentsSeven harnesses installed, including Claude Code, Codex and OpenCode, with an API to prompt, steer and stream events
Inbound accessPublic URLs for up to 15 ports, no built-in auth; no SSH server, raw TCP or public IPPublic HTTPS and TCP services through Fly Proxy, Anycast IPs, custom domains, private networkUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over IPv6 (some sandboxes have no IPv4 of their own); no static IP
Outbound rulesAllow-all, deny-all or a domain and CIDR allowlist, changeable while running, on every planNetwork policies allow chosen ports and protocols and deny the restNo provider-side allowlist; firewall inside the VM
Keeping keys out of the sandboxCredentials brokering injects headers for any HTTPS domain you allowSecrets arrive as environment variables; you can deploy Fly's open-source tokenizer proxy yourselfOptional AI credentials proxy ($1 per day while on, plus $1 per 1,000 requests) for model providers and any HTTPS API you add
CPUCPU billed only while code uses it; 12.66 V8 Web Tooling runs/s at 4 vCPU / 8 GB (StarSling, 3 October 2026)Shared vCPUs guarantee 6.25% of a core plus bursts; performance vCPUs get the full core; not in the public benchmarks we useShared vCPUs with no baseline quota or burst balance; 28.06 runs/s in the same run, on a Ryzen 9 9950X host
Regions19 regions, default iad1 (US East), with failover regions17 regions on six continentsGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureVercel SandboxFly.io Machinesboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNot publishedYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayNo documented wayYes
BrowserWith your own setupNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesYesYes
Fork/cloneYesYesYes
Live fork (no pause)YesYesYes
Memory forkNo documented wayNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopNo documented wayYesNo documented way
Wake on requestNo documented wayYesNo 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-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceNo documented wayYesNo 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
SSOYesNo documented wayNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Vercel Sandbox12.66 runs/s
Fly.io MachinesNot measured
boat28.06 runs/s

On the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, boat did 28.06 runs per second and Vercel Sandbox did 12.66 (about 2.2x), in StarSling's run of 3 October 2026 (run 37073680030). 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; results would also depend on shared or performance vCPUs.

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.

ScenarioVercel Sandbox, 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
$57 · 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
$236 · 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,884 · 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
$828 · Pro$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
$3,152 · Pro$232 · Pay As You Go · with limits$8,800 · $2000/mo · with limits

Vercel Sandbox: Vercel charges for CPU only while your code uses it ($0.128 per vCPU-hour in iad1), and for memory for the whole time the sandbox runs ($0.0212 per GB-hour). It adds $0.60 per million sandboxes created, $0.08 per GB-month of snapshots, and $0.05 per GB-month for Drives plus reads and writes. The $20 Pro credit is shared with your other Vercel usage.

Fly.io Machines: Fly bills each Machine per second while it runs, by CPU preset and memory, with no plan fee. Stopped Machines pay for their root file system, and Volumes are billed for their full size all month at $0.15 per GB. The figures here use Fly's lowest rate: shared vCPUs bought in 1-year reservation blocks for 40% off. A performance-4x Machine with 8GB is $0.1833 an hour on demand.

Fly.io Machines: boat charges a flat price per size, per second, while the sandbox runs, busy or idle: $0.036 an hour for 4 vCPU / 8 GB. Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A stopped sandbox has no compute charge, but saved snapshots above the plan's count and the optional AI credentials proxy still charge. Starts above the plan's included number cost $0.03 to $0.07 each.

Limits in those scenarios

For one agent that never stops, Vercel ends each session at 24 hours and running processes start again. Fly is a compromise in all five scenarios: its lowest figures need a 1-year reservation and use shared vCPUs that guarantee 6.25% of each core, so long builds get throttled, and its API takes about one create request per second per app. For 1,000 short jobs at once Vercel fits at $3,152 a month. boat does not fit it even on its $2,000 plan: it includes 90 starts a minute and 2,400 a day, starts above that are paid (about $8,800 a month here), and starts above 270 a minute fail with 429. Other boat limits: a stopped disk is kept at least 14 days unless you save a snapshot, no GPU, and no US or Asia region.

ScenarioVercel SandboxFly.io Machinesboat
One coding agent, workdaysNone for this scenario
  • 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
  • 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 parallelNone for this scenario
  • 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 usersNone for this scenario
  • 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 onceNone for this scenario
  • 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 Vercel Sandbox when

you run many short bursts of untrusted code, want a sandbox SDK ready today, or need a firewall you can change while code runs.

  • A sandbox that is ready to use. Useful if you want a sandbox today: agents come preinstalled and the SDK runs commands, moves files and opens ports.
  • A firewall you can change live. A running sandbox can be switched to deny-all, or to a list of allowed domains, without a restart.
  • Built for large short bursts. Useful for many short jobs at once: CPU is billed only while code runs, and it fits 1,000 parallel jobs.

Use Fly.io Machines when

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

  • No session cap. Useful for long-running work: a Machine runs until you or autostop stop it, with no 24-hour limit.
  • Wake on request and memory suspend. Useful for services that sleep between requests: Fly Proxy wakes a Machine on traffic, and small Machines resume with memory kept.
  • A full app platform and low light-use bills. Raw TCP, Anycast IPs, custom domains and a private network come with every Machine, with no plan fee.

Where boat fits

If you run coding agents that work for hours, Vercel resumes them across 24-hour sessions, and on Fly you build the sandbox image and storage yourself. boat gives each agent a full VM with its disk saved every minute, Docker, /dev/kvm, a built-in desktop and agents ready to drive from outside. boat runs only in Europe and caps starts per plan.

Long work that keeps its disk

On Vercel a session ends at 24 hours; files resume from the snapshot, and processes start again. On Fly, tools and caches go on one Volume billed for its full size, or on the root file system with persist_rootfs. On boat, turn auto-stop off (default 1 hour); memory is not saved, and a machine failure loses writes after the last good snapshot.

A desktop, a browser and /dev/kvm

Neither Vercel nor Fly has a built-in desktop. You install a browser or a desktop and stream it yourself. Neither documents /dev/kvm, so emulators and nested VMs are not a documented path.

Agents you drive from outside

Vercel installs agents, but you run them as plain commands. Fly Machines ship none, so you write the code that prompts, steers and watches each one. boat gives one API to prompt, steer and stream events from seven agents.

Use boat when your agents work for hours on one machine: builds, tests, Docker and emulators on a full VM with its disk saved every minute, a built-in desktop and agents you drive from outside. Check the start limits of your plan first. Compare it one to one: boat vs Vercel Sandbox 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 Vercel Sandbox cheaper than Fly.io Machines?

On paper Fly is lower in all five of our scenarios, at its lowest rate: shared vCPUs on a 1-year reservation. One workday agent is $57 a month on Vercel and $15 on Fly, and 50 parallel agents are $2,884 and $487. Those Fly figures assume work that stays near a shared vCPU's 6.25% baseline. boat is $20 and $317 for the same two.

Which is faster, Vercel Sandbox or Fly.io Machines?

We cannot say, because Fly is not in the public benchmarks we use. Vercel Sandbox did 12.66 V8 Web Tooling runs per second at 4 vCPU / 8 GB, and boat did 28.06, in StarSling's run of 3 October 2026. That boat sandbox ran on a Ryzen 9 9950X host. Fly's speed depends on shared or performance vCPUs.

Can Vercel Sandbox or Fly.io Machines run 24/7?

Fly Machines have no documented session cap and run until you stop them. Vercel sessions last up to 24 hours on Pro and Enterprise; a persistent sandbox then resumes from its snapshot, and processes start again. boat has no session cap once auto-stop is off on a paid plan (default 1 hour).

Can they run Docker?

Yes. Vercel Sandbox runs Docker with sudo, and on Fly you install Docker yourself inside the microVM. Neither documents /dev/kvm, so nested VMs and Android emulators are not a documented path. boat has Docker, systemd and /dev/kvm on every sandbox.

Do they keep my files when they stop?

Vercel takes a filesystem snapshot at every stop, kept 30 days after last use by default or never expiring if you set it, and Drives keep files until you delete them. On Fly, files last on the Machine's one Volume, or on the root file system with opt-in persist_rootfs, which Fly says not to trust with critical data. boat saves the whole disk every minute and at each stop, and keeps a stopped disk at least 14 days, or longer with a saved snapshot.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons