# 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.
- Status: Active [1]
- Website: https://developers.cloudflare.com/sandbox/
- Categories: Agent sandboxes
- Checked: 31 Oct 2026

## Cloudflare Sandbox (Containers) (Agent sandboxes)

- Price: $0.072 /vCPU-h (+ $0.009 per GB-hour)
- 1-hour session: ≥ $0.18 (2 vCPU / 4 GB · rank 16 of 26)
- 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 billing: Only CPU in use is billed, so idle time costs less; the light-use column shows how much.
- $5/mo plan: This price only applies on a plan of at least $5 a month.

### Plans

- Workers Free: Free; Containers not available [2]
- Workers Paid: $5 /month; 375 vCPU-minutes, 25 GiB-hours memory and 200 GB-hours disk of Containers a month; Workers and Durable Objects allowances [5]

### Billing

- Payment: Metered: usage billed afterwards [2]
- Plan minimum: $5 a month [2]
- Billing increment: unknown (Billed 'for every 10ms' an instance runs; the field holds whole seconds) [2]
- Minimum charge: unknown (Not published) [2]
- Per-job fee: None [2]

### Runtime

- Billed on: Active CPU [2]
- Isolation: Firecracker microVM [2]
- Max session: unknown (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) [2]
- Concurrent sandboxes: unknown (No instance-count limit published; account limits are 1,500 concurrent vCPU, 6 TiB memory and 30 TB disk) [2]
- 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 (No default in minutes; without setInactivityTimeout() the instance stops 'shortly after' its Durable Object becomes inactive (timeout settable up to 6 hours)) [4]
- Start time (vendor claim): 3 s [4]

### Capabilities

- GPU: No [3]
- Desktop: None [3]
- Coding agents installed: None [3]
- Agent prompt API: No [3]
- SSH: No [3]
- Docker inside: Yes [3]
- SDKs: TypeScript [3]
- SOC 2: unknown (Cloudflare's SOC 2 FAQ lists Workers and Durable Objects in scope but not Containers or Sandbox) [3]

### Storage and network

- Disk included: None [2]
- Extra disk: unknown (Disk is billed at $0.00000007 per GB-second of provisioned disk while the instance runs; no per-month rate) [2]
- Snapshot storage: unknown (Container snapshots (public beta) have no published storage price) [2]
- Egress: $0.025 per GB [2]

### Platform

- Regions: unknown (Cloudflare picks the location from pre-initialized locations across its network; no region list or region choice published) [3]
- Your cloud (BYOC): No [3]
- Self-host: No [3]

### Free allowance

- Minutes a month: unknown (Workers Paid includes 375 vCPU-minutes of active CPU, 25 GiB-hours of memory and 200 GB-hours of disk a month, not wall-clock sandbox minutes) [2]
- Credit a month: None [2]
- One-time credit: None [2]

### 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.

## Sources

[1] https://developers.cloudflare.com/sandbox/ (checked 31 Oct 2026)
[2] https://developers.cloudflare.com/containers/platform/pricing/ (checked 31 Oct 2026)
[3] https://developers.cloudflare.com/containers/faq/ (checked 31 Oct 2026)
[4] https://developers.cloudflare.com/sandbox/concepts/lifetime/ (checked 31 Oct 2026)
[5] https://developers.cloudflare.com/workers/platform/pricing/ (checked 31 Oct 2026)
