
Cloudflare Sandbox
Linux sandboxes that run untrusted or generated code, driven from a Worker.
Cloudflare Sandbox runs each sandbox in a Firecracker microVM. It costs $0.072 per vCPU-hour and $0.009 per GiB-hour, with CPU billed only while code uses it. It has no free tier.
- developers.cloudflare.com/sandbox
- developers.cloudflare.com/containers/platform/pricing
- github.com/cloudflare/sandbox-sdk
- cloudflarestatus.com
Updated
$0.072
vCPU per hour
$0.009
RAM per GiB-hour
Not listed
Max session
4 vCPU · 12 GiB
Largest sandbox
Cloudflare Sandbox specifications
List prices and limits for Cloudflare Sandbox
Pricing
developers- vCPU per hour
- $0.072
- RAM per GiB-hour
- $0.009
- Storage
- $0.000252 per GiB-hour
- Billing
- Active CPU time only
- Free tier
- None
- Paid plan from
- $5 / monthWorkers Paid plan
- Max session
- Not listed
- Idle stop
- Not listed
- Sandbox size
- 0.0625 to 4 vCPU, 0.25 to 12 GiBSix instance types or a custom size. Higher limits by request
- Default size
- Not listed
- Concurrent sandboxes
- Not listed
- Storage
- 2 GB (lite) to 20 GB (standard-4), by instance type
Platform
developers- Isolation
- Firecracker microVM
- GPU
- Not listed
- Snapshots
- Public beta. A snapshot expires 30 days after it is created or last restored
- Pause and resume
- Not listed
- Desktop
- Not listed
- Regions
- 9Placement by region or jurisdiction. Middle East, Oceania and Africa have limited capacity
Developer
developers- SDKs
- TypeScript
- Integrations
- Claude Code, OpenAI Agents SDK
Cloudflare Sandbox plans
Hourly cost
Cloudflare Sandbox next to other providers
One sandbox with 2 vCPU and 4 GiB of RAM for one hour, at list price.
Compute only. Storage and network are not included.
Open the calculatorCompare Cloudflare Sandbox

Cloudflare Sandbox vs Vercel Sandbox
Cloudflare Sandbox vs E2B
Cloudflare Sandbox vs Agent Sandbox
Cloudflare Sandbox vs Agent37 Cloud
Cloudflare Sandbox vs AgentBay
Cloudflare Sandbox vs Alibaba Cloud Agent Sandbox
Cloudflare Sandbox vs Amazon Bedrock AgentCore Code Interpreter
Cloudflare Sandbox vs Amazon Bedrock AgentCore Runtime
Alternatives to Cloudflare Sandbox
Agent37 Cloud
Persistent Linux sandboxes and VMs for code and agents.
$0.001 per vCPU-hour, no session limit
Hugging Face Sandboxes
Isolated cloud machines for running AI-generated code.
$0.005 per vCPU-hour, GPUs
Krova Cloud
Firecracker microVMs with root access, billed by the minute.
$0.001 per vCPU-hour, no session limit
Recent changes
Related
More pages that include Cloudflare Sandbox