flockvm vs Cloudflare Sandbox

Both run untrusted code in Firecracker microVMs with their own kernel. flockvm is a whole Linux VM you SSH into, that pauses with its memory on a host in France; Cloudflare Sandbox starts from your Worker by the hundred, close to your users, and wins the burst and eval rows.

Last updated Prices checked on

A pause on flockvm, a stop on Cloudflare

flockvm: pause

1 / 3

Pause

A paused flockvm VM writes its memory and device state to the host's disk and stops billing.

2 / 3

Paused

Nothing expires: a VM runs until you pause, stop or delete it. Paused and stopped VMs are not billed for now.

3 / 3

Resume

On resume it carries on with the same processes and PIDs, the same files, the same IP and SSH port.

Read that part

Cloudflare: stop

1 / 3

Stop

When an instance stops, its processes and the files on its disk end with it.

2 / 3

Snapshot

A container snapshot saves the writable root filesystem but not its memory or running processes. It expires 30 days after creation or the last restore.

3 / 3

Next start

The next start gets a fresh disk from the image. Your Durable Object passes the snapshot to it, and processes start again from the entrypoint.

Read that part

flockvm pauses a VM with its memory; Cloudflare Sandbox has no pause, an instance stops. Cloudflare's docs, read on 1 November 2026. Cloudflare wins as many of the workload rows as flockvm does.
an hour on small, against $0.076 to $0.22 on Cloudflare standard-3
flockvm
$0.016
a month for one agent always on, against $60.23 to $164.90
flockvm
$18
vCPU at once per Cloudflare account, by default
Cloudflare Sandbox
1,500
a month for 100 one-minute runs a day, on lite
Cloudflare Sandbox
$5

At a glance

flockvm and Cloudflare Sandbox at a glance

flockvm and Cloudflare Sandbox at a glance
IsolationStrength: Firecracker microVM, the whole VM is yoursStrength: Firecracker microVM, your container inside
PauseStrength: Keeps memory and processesGap: None: a stop ends processes and disk
Saved stateStrength: Disk kept across stop and pausePartial: File snapshots, 30 days, beta
Session lengthStrength: No capGap: Durable Object activity plus at most 6 h of inactivity; no guaranteed runtime
At onceGap: 15 small, 7 default, 3 large or 1 xlarge in FranceStrength: 1,500 vCPU per account by default
SizesPartial: 2 to 16 vCPU, 4 to 32 GBPartial: 1/16 vCPU up to 4 vCPU / 12 GiB
WherePartial: FranceStrength: Cloudflare's network; eu jurisdiction
AccessStrength: Plain SSHPartial: wrangler containers ssh, HTTP via Worker
CredentialsGap: Written into the VMStrength: Added outside the sandbox
API and SDKPartial: REST API, CLI, MCP server; no SDKStrength: Container API and a Sandbox SDK
Coding agentsStrength: Preinstalled in the Agent imagePartial: Guides; you build the image
StartStrength: About 1 s to SSHPartial: Cold starts often 1 to 3 s

flockvm and Cloudflare Sandbox both run untrusted code in Firecracker microVMs with their own kernel, billed for the time they run. Pick flockvm if you want a whole Linux VM you SSH into, that keeps its disk and pauses with its memory and processes, on a host in France; pick Cloudflare Sandbox if your application already runs on Workers, you want to start sandboxes from code by the hundred, close to your users, and you can rebuild state from file snapshots.

flockvm wrote this page. Every Cloudflare fact below comes from Cloudflare's own docs, changelog or terms, read on 1 November 2026, and Cloudflare wins as many of the workload rows as flockvm does.

Where flockvm stands out

A pause keeps memory, processes and the disk

A paused flockvm VM writes its memory and device state to the host's disk and stops billing. On resume it carries on with the same processes and PIDs, the same files, the same IP and SSH port; on our former Paris host, retired on 10 November 2026, a small VM was back to running in about 0.22 s (measured on 31 October 2026, see how it works). A stopped VM keeps its disk. Nothing expires: a VM runs until you pause, stop or delete it. How it works: /learn/firecracker-snapshot-restore.

Cloudflare's FAQ says: "All disk is ephemeral by default." When an instance stops, "its processes and the files on its disk end with it", and the next start gets a fresh disk from the image. Container snapshots, in public beta, save the writable root filesystem but "not its memory or running processes"; they expire 30 days after creation or the last restore, and Cloudflare "does not restore a snapshot on its own": your Durable Object saves it and passes it to the next start().

A long session does not need code to keep it alive

A flockvm VM keeps running while an agent works for hours, with nobody connected. A Cloudflare instance keeps running while its Durable Object is active, then for an inactivity timeout of at most 6 hours. Cloudflare's docs warn: "Code that runs inside the instance does not count as activity." So a build or an agent task can be stopped mid-run unless a Durable Object alarm keeps checking it. Cloudflare also "does not guarantee that an instance runs for a set time"; a host restart can stop it.

Plain SSH and a ready image

You reach a flockvm VM with your own ssh client, on a port of its region's host. The default Agent image is Ubuntu 26.04 with Claude Code, Codex, opencode, Gemini CLI and Cursor Agent installed (you sign them in), Docker, the usual toolchains and Playwright; Minimal is a bare Ubuntu 26.04 with Node.js 22, Python, Docker and git. See /integrations/claude-code.

Cloudflare supports SSH only through wrangler containers ssh, which authenticates against your Cloudflare account; there is no public port, and "an active SSH connection alone will not keep a Container alive". Your image provides every tool: the base image in Cloudflare's examples, cloudflare/debian-trixie, includes neither Python nor Git.

Where Cloudflare Sandbox stands out

Scale, from code, on Cloudflare's network

The default account limits are 1,500 concurrent vCPU, 6 TiB of memory and 30 TB of disk, and Cloudflare says they can be raised. A new instance starts "in the location nearest to the incoming request with a pre-fetched image", across regions in North America, Europe, Asia Pacific, South America, the Middle East, Oceania and Africa; a placement constraint can hold Containers to the eu jurisdiction (Eastern and Western Europe). flockvm runs in one region, France, and its host there schedules 30 vCPU across all its VMs: 15 small VMs at once at most. Bursts and evals are Cloudflare's rows in the workload table.

Credentials stay outside the sandbox

A Cloudflare container starts with Internet access off. Your Worker can register an outbound handler per hostname that adds a token after the request leaves the sandbox, so code inside never sees it; Cloudflare's Claude Code guide uses this to let the sandbox reach only AI Gateway and github.com. flockvm has no secrets proxy: the variables and secret files of an environment are written into the VM, where any process can read them, so use keys you can revoke.

An exec API, small sizes and per-10 ms billing

Everything is driven from your Worker: start a sandbox by name, exec() a command, stream output, serve a preview on your own hostname, save a snapshot. Sizes go down to lite, 1/16 vCPU and 256 MiB, and a running instance is billed per 10 ms, with CPU counted only while active. For JavaScript that only calls methods you provide, a Dynamic Worker runs it without a container. flockvm has a REST API, a flockvm CLI and an MCP server to create, pause and delete VMs, but no SDK and no exec call: commands run over SSH.

What are flockvm and Cloudflare Sandbox?

flockvm

flockvm runs coding agents such as Claude Code and Codex in parallel, one Firecracker microVM per agent, and GitHub Actions jobs with runs-on: flockvm. Sign-up is with Google, GitHub or an email link, and a new organization starts with a 7-day free trial: card required, nothing charged for 7 days, cancel anytime.

  • Isolation: Firecracker microVM with its own kernel; root, systemd and Docker inside (Ubuntu 26.04).
  • Sizes: small 2 vCPU / 4 GB / 50 GB disk, default 4 / 8 / 50, large 8 / 16 / 110, xlarge 16 / 32 / 250.
  • Lifecycle: pause and resume with memory, stop and start with the disk, no lifetime cap. Environments with variables, secret files and GitHub repositories cloned at first boot; organizations with members and an audit log.
  • Regions: France, on one OVHcloud bare-metal server, live. Amsterdam, Ashburn, Chicago and San Jose are planned. The website runs on Vercel and DNS on Cloudflare, both US companies (/subprocessors).
  • Pricing: current rates (flockvm.com, 1 November 2026, which may change): $0.016 an hour for small, $0.032 for default, $0.064 for large, $0.18 for xlarge, per second. An $18 monthly plan per organization, paid upfront, comes back as VM and CI time that expires with the period; past it, a prepaid wallet. No free credits; a 7-day free trial, card required (25 hours of VM time, 2 VMs at once, small and default sizes). Paused and stopped VMs are not billed for now, nor is network traffic. See /pricing.
  • Open source, compliance: no public code, no certification such as SOC 2.
  • Limits: 30 vCPU on the host in France for all its VMs (15 small, 7 default, 3 large or 1 xlarge at once); no fork, no reusable snapshots, no secrets proxy, no /dev/kvm, no inbound port other than SSH. See /docs/vms/limits.

Cloudflare Sandbox

Cloudflare's Linux sandbox is "a Durable Object that starts and stops a container": your Worker reaches it by name, and the Durable Object starts a Container instance with an image, a size and network settings. Containers and Sandboxes became generally available on 13 April 2026, on the Workers Paid plan. Sandbox SDK 1.0 (30 September 2026) moved control into a Durable Object class you write; 0.x has its own docs and a migration guide.

  • Isolation: "Each container instance runs in a Firecracker microVM with its own kernel and network. [...] Your image runs as a Linux container inside the VM." Inside, every process has the capabilities of root. Docker runs in a docker:dind image with iptables off and --network=host.
  • Sizes: lite (1/16 vCPU, 256 MiB, 2 GB) to standard-4 (4 vCPU, 12 GiB, 20 GB); custom types from 1 to 4 vCPU, up to 12 GiB and 20 GB, with at least 3 GiB per vCPU. The default is lite. The basic type (1/4 vCPU, 1 GiB) is for Containers only: a sandbox's start() does not accept it.
  • State: ephemeral disk; filesystem snapshots up to 20 GB, kept 30 days, without memory or processes (public beta); R2 buckets can be mounted.
  • Regions: Cloudflare's network, nearest location with the image; region and jurisdiction constraints (eu, us, fedramp) are documented for Containers. The scheduling policy page for sandboxes, the Durable Object policy, does not mention them.
  • Pricing: Workers Paid ($5 a month minimum). Memory $0.0000025 per GiB-second and disk $0.00000007 per GB-second, both on provisioned size; CPU $0.000020 per vCPU-second of active use. Included each month: 25 GiB-hours, 375 vCPU-minutes, 200 GB-hours. Egress $0.025 per GB in North America and Europe after 1 TB. Workers and Durable Objects usage is billed on top. The pricing page lists no price for snapshot storage.
  • Open source: the @cloudflare/sandbox package is Apache-2.0 (cloudflare/sandbox-sdk, 1,155 GitHub stars on 1 November 2026); Containers is closed.
  • Compliance: Cloudflare, Inc., San Francisco, is the contracting party for self-serve plans. We did not check which certifications cover Containers.
  • Limits: the Durable Object scheduling policy that sandboxes use is in public beta; inactivity timeout of at most 6 hours; cold starts can "often be in the 1-3 second range" (Cloudflare's figure); inbound traffic is HTTP through your Worker only; no swap, and an out-of-memory instance is restarted.

Which workloads fit each one?

Prices: flockvm small (2 vCPU, 4 GB) at the current rate of $0.016 an hour. Cloudflare standard-3 (2 vCPU, 8 GiB, 16 GB), the predefined type with the same vCPU count: $0.072 an hour of memory plus $0.004032 of disk, and up to $0.144 of CPU when both vCPU are busy. Cloudflare bills only active CPU and publishes no typical share for agents, so each Cloudflare cell is a range: CPU idle the whole time, then CPU busy the whole time. A month is 22 weekdays or 730 hours.

Workload flockvm (calc.) Cloudflare (calc.) Who wins and why
5 Claude Code agents, 8 h a weekday $14.08 of usage, so $18 with the plan $71.63 to $197.90 flockvm on price: 5 small VMs fit on the host in France. Each Cloudflare agent needs a Durable Object that stays active, or an alarm, through the 8 hours.
A 1-hour burst of 20 agents, once a month Can't run it today: at most 15 small VMs at once on the host in France $6.25 to $8.68 Cloudflare, mostly inside the included usage.
One agent always on, 24/7 $11.68 of usage, so $18 with the plan $60.23 to $164.90 flockvm on price and on staying up: a Cloudflare instance can be stopped by a platform event, with its disk, so the agent must save snapshots.
100 code runs of 1 minute a day, 30 days $0.80 of usage, so $18 with the plan $8.53 to $15.28 on standard-3; $5.00 on lite, inside the included usage Cloudflare: smaller sizes, nothing billed between runs, an exec() API. flockvm's API creates the VM, but the run itself goes over SSH.
Evals: 50 parallel runs of 2 h, 4 times a month Can't run it today: at most 15 small VMs at once on the host in France $35.14 to $92.29 Cloudflare. 100 vCPU is far below the default 1,500.
One interactive session, 10 h a weekday, paused the rest $3.52 of usage, so $18 with the plan; memory and processes kept $21.45 to $52.68, stopped each night; files back from a snapshot, processes restarted flockvm, if you want the terminal, the dev server and the agent as you left them.

The arithmetic. Cloudflare per month: $5 + (GiB-hours − 25) × $0.009 + (GB-hours of disk − 200) × $0.000252, plus (vCPU-hours − 6.25) × $0.072 at the high end. 5 × 8 h × 22 = 880 h: 7,040 GiB-h gives $63.14, 14,080 GB-h $3.50, 1,760 vCPU-h $126.27, so $71.63 to $197.90; on flockvm, 880 h × $0.016 = $14.08. 20 × 1 h = 20 h: $1.22 + $0.03, then $2.43 of CPU, so $6.25 to $8.68. 730 h: $52.34 + $2.89, then $104.67, so $60.23 to $164.90, and 730 × $0.016 = $11.68. 100 × 1 min × 30 = 50 h: $3.38 + $0.15, then $6.75, so $8.53 to $15.28; on lite (1/16 vCPU, 256 MiB, 2 GB), 12.5 GiB-h, 100 GB-h and 3.1 vCPU-h all stay inside the included usage, so $5.00 (a sandbox cannot use basic: its start() does not accept that size); 50 × $0.016 = $0.80. 50 × 2 h × 4 = 400 h: $28.58 + $1.56, then $57.15, so $35.14 to $92.29. 10 h × 22 = 220 h: $15.62 + $0.84, then $31.23, so $21.45 to $52.68, and 220 × $0.016 = $3.52. The flockvm plan is $18 a month and every dollar comes back as VM time, so a month with less than $18 of usage costs $18; usage past it is paid from a prepaid wallet.

Left out: Workers and Durable Object charges, egress past 1 TB and snapshot storage (no published price) on Cloudflare. On flockvm, the host in France serves every organization, so its ceiling of 15 small VMs is shared, and the rates may change.

Monthly bill per workload

5 agents, 8 h a weekday
A burst of 20 agents for 1 h
1 agent always on, 24/7
100 one-minute runs a day · lite
Evals: 50 runs of 2 h, 4 times
1 interactive session, 10 h a weekday
Cloudflare standard-3 from CPU idle to CPU busy the whole time, with Workers Paid's $5; flockvm's $18 plan applied

Plans and rates

Plans and rates
flockvmCloudflare Sandbox
Monthly minimumPartial: $18, comes back as VM timeStrength: $5, Workers Paid; Workers and Durable Objects usage billed on top
IncludedPartial: The plan's $18 of VM timeStrength: 25 GiB-h, 375 vCPU-min, 200 GB-h
ComputeStrength: $0.016 an hour for smallPartial: $0.072 per active vCPU-hour
Memory and diskStrength: In the size's ratePartial: $0.009 per GiB-hour, disk extra
Billing stepPartial: Per secondStrength: Per 10 ms
Paused or stoppedStrength: Free, for nowPartial: Stopped is free; no pause
Network trafficStrength: Not metered, for nowPartial: $0.025 per GB in North America and Europe, after 1 TB
Cloudflare's pricing docs and flockvm's home page, 1 November 2026

How do the features compare?

Feature flockvm Cloudflare Sandbox
Isolation Firecracker microVM, own kernel, the whole VM is yours Firecracker microVM, own kernel; your image runs as a container inside
Start About 1 s to SSH Cold starts can "often be in the 1-3 second range"
Pause and resume With memory and processes, on request None; stop ends processes and the disk
Saved state Disk kept across stop and pause Filesystem snapshots, 30 days, public beta
Session length No cap Durable Object activity plus at most 6 h of inactivity; no guaranteed runtime
Sizes 2/4, 4/8, 8/16, 16/32 vCPU/GB; 50, 110 or 250 GB disk 1/16 vCPU / 256 MiB up to 4 vCPU / 12 GiB / 20 GB by default
Concurrency 30 vCPU on the host in France: 15 small at most, all customers together 1,500 vCPU per account by default
Regions France; others planned Cloudflare's network; eu jurisdiction documented for Containers
Access Plain SSH wrangler containers ssh, browser terminal, HTTP through your Worker
Credentials Written into the VM Outbound handlers add them outside the sandbox
API, SDK REST API, flockvm CLI and MCP server; no SDK Durable Object Container API, @cloudflare/sandbox
Coding agents Preinstalled in the Agent image Guides for Claude Code, Codex, OpenCode, Pi, Devin, Cursor, Claude Managed Agents, OpenAI Agents API
Open source No SDK package Apache-2.0; platform closed
Price Per second at current rates; $18 plan $5 Workers Paid; active CPU, provisioned memory and disk per 10 ms

For other options, /compare/e2b-alternatives ranks sandboxes by reason to choose, and /compare/flockvm-vs-vercel-sandbox covers the other platform-native sandbox that bills active CPU. Northflank publishes several of the top results for this search; flockvm vs Northflank compares it with flockvm.

FAQ

How much does Cloudflare Sandbox cost?

It needs Workers Paid, $5 a month minimum. Then $0.009 per GiB-hour of memory and $0.000252 per GB-hour of disk while the instance runs, and $0.072 per vCPU-hour of active CPU, after the included 25 GiB-hours, 200 GB-hours and 375 vCPU-minutes. A standard-3 instance (2 vCPU, 8 GiB) costs $0.076 an hour idle and $0.22 with both vCPU busy. Workers and Durable Objects are billed on top.

Price per hour, 2 vCPU

Against flockvm

CPU idle
Both vCPU busy

A busy standard-3 hour

  • CPU, both vCPU busy. When both vCPU are busy. Cloudflare bills only active CPU.$0.144
  • Memory, 8 GiB. 8 GiB, billed on provisioned size while the instance runs.$0.072
  • Disk, 16 GB. 16 GB, billed on provisioned size while the instance runs.$0.004032
flockvm small (4 GB) against Cloudflare standard-3 (8 GiB, 16 GB), which bills CPU only while active

Is Cloudflare Sandbox a microVM or a container?

Both. Each instance is a Firecracker microVM with its own kernel and network, and your image runs as a Linux container inside it. A flockvm VM boots Ubuntu itself, with systemd, and you work in it over SSH. On how the two kinds of isolation differ, see /firecracker-sandbox.

What happens to a Cloudflare sandbox when it sleeps?

Its processes, memory and disk end when the instance stops. The Durable Object keeps its own storage, so it can keep a snapshot handle and start a new instance with the saved files; processes start again from the entrypoint.

Cloudflare Sandbox vs E2B: what is the difference?

Cloudflare's sandbox is part of your Worker: you write the Durable Object that starts it, and it runs on Cloudflare's network. E2B is a separate service with JavaScript and Python SDKs, and its pause saves "both the sandbox's filesystem and memory state". For E2B against flockvm, see /compare/flockvm-vs-e2b; for E2B against Daytona, /compare/e2b-vs-daytona.

Can Cloudflare Sandbox run in the EU?

Containers document an eu jurisdiction (Eastern and Western Europe) as a placement constraint. Cloudflare, Inc. is a US company. flockvm VMs run in France; /eu-data-residency lists what stays there and what does not.

Can I run Claude Code in Cloudflare Sandbox?

Yes. Cloudflare's guide installs Claude Code in the image and routes model calls through AI Gateway, with the token added by your Worker. On flockvm, Claude Code is already in the Agent image; you sign it in over SSH.

Run your agents in their own microVMs

flockvm gives each coding agent a Firecracker microVM that pauses with its memory and resumes, billed per second. France is live, and you can start with a 7-day free trial.

Start your 7-day free trial

Card required. Nothing charged for 7 days.