Skip to main content
Cloudflare Sandbox

Cloudflare Sandbox: Pricing, Features & Alternatives (2026)

Founded 2009|San Francisco, California|Usage-based, on the Workers Paid plan

Respan Gateway: up to 40% off tokens on Gemini, GPT, Claude and 1,000+ more models. One API key, 0% fee.

What is Cloudflare Sandbox?

Key features

Core capabilities this platform advertises.

  • Container microVMs with their own kernel and network
  • Dynamic Workers for JavaScript, Python, and WebAssembly
  • @cloudflare/sandbox SDK for commands, files, and terminals
  • Preview URLs for web servers running in a sandbox
  • Workspace backups and mounts through R2
  • Billing in 10 ms increments that stops when a container sleeps

Strengths and tradeoffs

What this tool does well, and the limitations to keep in mind.

Pros

  • Low entry cost on the $5 Workers Paid plan
  • Billing stops when a container goes to sleep
  • Two environment types for different workloads
  • Fits teams already using Workers and R2

Cons

  • Requires building on Cloudflare Workers
  • Workspace save and restore is still in beta
  • Workers, Durable Objects, and egress bill separately
  • Largest instance type tops out at 4 vCPUs and 12 GiB of memory

Plans & pricing

What's included in each plan, and how the tiers compare.

Workers Paid

$5

Per month

  • 25 GiB-hours memory included
  • 375 vCPU-minutes included
  • 200 GB-hours disk included

Container usage

$0.000020/vCPU-second

Per 10 ms while running

  • $0.0000025/GiB-second memory
  • $0.00000007/GB-second disk
  • Stops when the instance sleeps
View official pricing page

Common use cases

Teams building AI apps on Cloudflare Workers that need to run untrusted or generated code

  • Running agent-generated code from a Worker
  • Code interpreters inside AI apps built on Cloudflare
  • Previewing agent-built web apps
  • Lightweight JavaScript or Python execution through Dynamic Workers

Trace the agent code your Workers run

Up to 40%Off tokens
1,000+Models
0%Fee

Respan routes your agent's model calls across 1,000+ models at up to 55% off tokens and traces each sandbox step beside the call that triggered it. Book a demo to see it on your own traffic.

Best Cloudflare Sandbox alternatives & competitors

Top companies in Agent Sandboxes you can use instead of Cloudflare Sandbox.

Compare Cloudflare Sandbox

Side-by-side comparisons with other tools in this category.