Cloudflare Sandboxes

https://developers.cloudflare.com/sandboxes/

Cloudflare provides two sandbox environments, both accessible through a Worker: Containers run a provided image in a full Linux environment, and Dynamic Workers create a new Worker at runtime to run untrusted JavaScript, Python, or WebAssembly. Use cases include agent-written code, user-uploaded applications, data analysis, development previews, and build pipelines, along with any other work that should not share a process with the application.

Pricing model Per-second (10ms granularity), billed only while the instance is awake for active vCPU, memory, and disk
Pricing The headline compute price as the provider states it. Sorting ranks prices stated per vCPU over time, converted to hourly. Other pricing models sort after, unranked. $0.000020 per vCPU-second (~$0.072 per vCPU-hour) plus $0.0000025 per GiB-second of memory
Free while idle Whether a stopped, paused, or sleeping sandbox costs nothing. ✓
Elastic Resources flex with what the sandbox actually uses, and the bill follows: yes when the provider bills on active or observed use, no when capacity is reserved or allocated and billed while it runs. ✓
Memory snapshots Whether RAM state survives a pause and resume, not just disk. ✕
Wake on request Whether a stopped sandbox wakes automatically on inbound traffic. ✓
Start / resume Typical time from create or resume to running. Sorting ranks stated times, converted to seconds; claims with no figure sort after, unranked. ~1-3 seconds
Max runtime The longest a sandbox may run. No fixed limit; runtime is not guaranteed and may end on host restart
Isolation The isolation technology between sandboxes. Dedicated VM per container instance
GPUs Whether GPU instances are available for sandboxes. ✕
Docker Whether Docker containers can run inside the sandbox. ✓
SDKs TypeScript

✓ yes · ✕ no · – no cited public fact.

Container snapshots are in public beta and save the writable root filesystem only; they do not include mounted directories, memory, or running processes.

Sources

Last verified 2026-10-05. Corrections land through the update log.