Cloudflare Sandbox
Linux sandboxes on Cloudflare Containers, started from a Worker and billed per 10 ms for active CPU plus provisioned memory and disk, on the $5 Workers Paid plan.
Operated by Cloudflare, Inc. developers.cloudflare.com/sandbox/ Status: active[1] Checked 31 Oct 2026
Agent sandboxes
Cloudflare Sandbox (Containers)
- Price
- $0.072 /vCPU-h
- + $0.009 per GB-hour
- Fleet month
- ≥ $1,589
- 50 × 8 h × 22 days
- Billed on
- Active CPU
- increment unknown
- Isolation
- Firecracker microVM
- max session unknown
What to know
- Active-CPU billingOnly CPU in use is billed, so idle time costs less; the light-use column shows how much.
- $5/mo planThis price only applies on a plan of at least $5 a month.
Plans
Prices
| Resource | Price | Per hour |
|---|---|---|
| per vCPU | $0.00002 /s[2] | $0.072 |
| per GB of memory | $0.0000025 /s[2] | $0.009 |
- CPU is billed on active usage only; memory and disk are billed on the provisioned instance size for as long as the instance runs, idle or not. Stopped instances are not billed.
- Memory is priced per GiB-second; the largest custom instance has 12 GiB.
- Workers requests, Durable Objects and Workers Logs are billed on top of Containers usage.
- Egress is $0.025/GB in North America and Europe (1 TB a month included), $0.05/GB in Oceania, Korea and Taiwan and $0.04/GB elsewhere (500 GB included each).
- Disk is ephemeral; snapshotContainer() (public beta) saves the root filesystem, not memory or processes, and expires 30 days after creation or last restore.
- Instance types: lite 1/16 vCPU, 256 MiB, 2 GB disk; basic 1/4 vCPU, 1 GiB, 4 GB; standard-1 1/2 vCPU, 4 GiB, 8 GB; standard-2 1 vCPU, 6 GiB, 12 GB; standard-3 2 vCPU, 8 GiB, 16 GB; standard-4 4 vCPU, 12 GiB, 20 GB. Custom types: 1-4 vCPU, at least 3 GiB per vCPU, up to 12 GiB and 20 GB disk.
- Coding agents (Claude Code, Codex, OpenCode, Pi) are installed into your own image following Cloudflare's guides; no agents are preinstalled.
Terms
Billing
Runtime
- Billed on
- Active CPU[2]
- Isolation
- Firecracker microVM[2]
- Max session
- unknown[2]No maximum published; an instance runs while its Durable Object is active plus an inactivity timeout of up to 6 hours, and Cloudflare does not guarantee a run time
- Concurrent sandboxes
- unknown[2]No instance-count limit published; account limits are 1,500 concurrent vCPU, 6 TiB memory and 30 TB disk
- Largest vCPU
- 4[2]
- Largest memory
- 12 GB[2]
Lifecycle
- Survives a stop
- Nothing (ephemeral)[4]
- Snapshots
- Yes[4]
- Pause and resume
- No[4]
- Fork
- Disk copy[4]
- Compute billed while stopped
- No[4]
- Auto-stop
- unknown[4]No default in minutes; without setInactivityTimeout() the instance stops 'shortly after' its Durable Object becomes inactive (timeout settable up to 6 hours)
- Start time (vendor claim)
- 3 s[4]
Capabilities
Storage and network
Platform
Sources
- 1 developers.cloudflare.com/sandbox · 31 Oct 2026
- 2 developers.cloudflare.com/containers/platform/pricing · 31 Oct 2026
- 3 developers.cloudflare.com/containers/faq · 31 Oct 2026
- 4 developers.cloudflare.com/sandbox/concepts/lifetime · 31 Oct 2026
- 5 developers.cloudflare.com/workers/platform/pricing · 31 Oct 2026
Raw data: JSON