Cloudflare Sandboxes vs Fly.io Machines: prices, limits and features.
Their prices for 2 vCPU and 4 GB overlap: $0.036 to $0.18 / hour and $0.092 / hour, since CPU is billed only while busy. Here is where they differ, from each one's own pages, plus a third option if neither fits.
The short answer
Cloudflare's Sandbox SDK runs code in Cloudflare Containers, started from a Worker. Fly.io Machines are Firecracker microVMs you start through a REST API, in many regions. Fly also sells Sprites, a sandbox for agents.
Pick Cloudflare Sandboxes if you want
- a lower price while the CPU is idle: $0.036 against $0.092 an hour
- SDK languages: TypeScript, inside Workers (Fly.io Machines: None: a REST API and the flyctl CLI)
Pick Fly.io Machines if you want
- a lower price while the CPU is busy: $0.092 against $0.18 an hour
- pause keeps memory: Yes, for Machines with 2 GB or less (Cloudflare Sandboxes: No)
- largest size: 16 CPUs (Cloudflare Sandboxes: 4 vCPU and 12 GiB)
- security report: SOC 2 Type 2, which Cloudflare Sandboxes's pages do not state
Or Groundbox if you want
- pause keeps memory: yes, memory and disk
- CI runners too: yes, on the same key and bill
- fork and snapshots: fork a running sandbox; save points
- SDK languages: typeScript and Python
Where Cloudflare Sandboxes or Fly.io Machines is ahead of Groundbox: security report.
Side by side
a rust mark means that side is ahead · each value links to its source · checked 2026-11-20
Each against Groundbox: Groundbox vs Cloudflare Sandboxes and Groundbox vs Fly.io Machines. Every other comparison is on /compare.
Sources
Cloudflare Sandboxes
- Cloudflare Containers pricing, checked 2026-11-20
- Cloudflare Containers limits, checked 2026-11-19
- Cloudflare Sandbox SDK, checked 2026-11-19
- Cloudflare Sandbox: lifetime, checked 2026-11-19
- Cloudflare Sandbox: network, checked 2026-11-19
- Cloudflare Sandbox: get started, checked 2026-11-19
Fly.io Machines
- Fly.io pricing, checked 2026-11-20
- Fly.io docs: pricing, checked 2026-11-19
- Fly.io docs: Machine sizing, checked 2026-11-19
- Fly.io docs: Machines API, checked 2026-11-19
- Fly.io docs: suspend and resume, checked 2026-11-19
- Fly.io docs: Machines overview, checked 2026-11-19
- Fly.io docs: Machines, checked 2026-11-19
- Fly.io security questionnaire, checked 2026-11-19
- Fly.io Sprites
- Fly.io Sprites pricing, checked 2026-11-19