Cloudflare Sandboxes
Cloudflare Sandboxes: Cloud execution for untrusted code with persistence, streaming and network controls. Ranked #5 of 26 in AI Agent Sandboxes by our editors (9.0/10); pricing: Paid; best for cloud code-execution sandboxes with persistence.
At a glance
- Editor score9.0 / 10
- PricingPaid
- Best forCloud code-execution sandboxes with persistence
- Free planNo
- Paid from$0.03/GB usage-based
- Browser sandboxNo
- Facts checked16 Nov 2026
Where it wins
- Isolated containers support custom Linux images and dependencies
- Snapshots and mounted storage provide persistent working state
- Streaming, interpreters and network interception support agent workflows
Where it doesn't
- Usage-based charges span memory, CPU, disk and network egress
- Availability is tied to the Cloudflare Workers Paid plan
- Integrations center on Workers SDK, with documentation as the support channel
Our verdict on Cloudflare Sandboxes
Cloudflare Sandboxes provides isolated environments for running untrusted or AI-generated code, aimed at AI agents and developer tools that need controlled execution. Sandboxes run as Cloudflare Containers with configurable Linux images, runtimes, filesystems and processes. Workers manage container lifecycles through the @cloudflare/sandbox SDK, while repository cloning, shell commands, file operations and directory management support practical development workflows. Python and JavaScript interpreters can return rich outputs, and real-time stdout and stderr streaming exposes execution progress.
Pricing is usage-based through the underlying Cloudflare Containers platform. The published meters are Memory usage for container memory, CPU usage for container CPU, Disk usage for container disk, and Network egress for outbound transfer. Network egress is listed at $0.025 per GB for NA/EU traffic. The product page describes free usage allowances and rates after those allowances, while the documentation states that Sandboxes are available on the Workers Paid plan. This model suits workloads that can track resource consumption, but it requires budgeting across several independent usage dimensions rather than selecting a single flat package.
The strongest technical fit is for agents that need persistence and controlled connectivity: snapshots and mounted storage preserve state, while Workers control outbound access and integrations through network controls and interception. Containers run in Firecracker microVMs with separate kernels and networks, adding isolation for untrusted workloads. Choose Cloudflare Sandboxes when your stack already centers on Workers and you need multi-language execution, streaming output and filesystem persistence in the cloud. Consider another option if you need a browser sandbox, broader integrations beyond the Workers SDK, or support channels beyond documentation.
Your product? Our editors can test Cloudflare Sandboxes in depth and publish a review, labelled as paid · from $149/mo →
Cloudflare Sandboxes pricing
All 4 Cloudflare Sandboxes plans and prices →
Cloudflare Sandboxes fact sheet
| Free plan | No |
|---|---|
| Paid from | $0.03/GB usage-based |
| Browser sandbox | No |
| Network isolation | Yes |
| Persistent storage | Yes |
| Max runtime | Not verified |
| Runtime languages | Multi-language |
| Deployment model | Cloud |
| GPU support | Not verified |
| Deployment | Cloud |
| Platforms | Web |
| Support | Docs |
| Built for | Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Paid (source) |
| Website | cloudflare.com |
| Facts checked | 16 Nov 2026 |
Alternatives to Cloudflare Sandboxes
- Alibaba Cloud Agent SandboxA broad cloud sandbox for agents needing VM isolation, browser access and controlled networks.9.4
- Docker SandboxesA free, cross-platform sandbox for controlled AI coding-agent execution.9.3
- Akamai Agent SandboxIsolated JavaScript and Python execution for enterprise agent workloads.9.2
See all Cloudflare Sandboxes alternatives →
Cloudflare Sandboxes vs the competition
- Cloudflare Sandboxes vs Alibaba Cloud Agent Sandbox
- Cloudflare Sandboxes vs Docker Sandboxes
- Cloudflare Sandboxes vs Akamai Agent Sandbox
- Cloudflare Sandboxes vs NVIDIA OpenShell
- Cloudflare Sandboxes vs Deno Sandbox
- Cloudflare Sandboxes vs CodeSandbox
Compare Cloudflare Sandboxes with any tool side by side →
Used Cloudflare Sandboxes? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Cloudflare Sandboxes for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
Cloudflare Sandboxes is listed in our AI Agent Sandboxes directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/cloudflare-sandboxes/"><img src="https://www.itechguides.com/best/badge/cloudflare-sandboxes.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update

