Weβre introducing Dynamic Workers, which allow you to execute AI-generated code in secure, lightweight isolates. This approach is 100 times faster than traditional containers. https://t.co/c36Vkb7I0R
Cloudflare Launches Dynamic Workers for Sandboxing AI-Generated Code
Β· Updated
Cloudflare launched Dynamic Workers in open beta for all paid Workers users β a runtime API that lets a Worker spin up a fresh isolated sandbox, load AI-generated JavaScript on the fly, and execute it. Each sandbox starts in milliseconds and uses a few megabytes of memory, compared to hundreds of milliseconds and hundreds of megabytes for a container.
Container-based sandboxes break down at per-user agent scale: providers impose concurrency limits and warm-pool requirements, forcing container reuse across users and weakening isolation. Dynamic Workers has no such limits β it runs on the isolate infrastructure serving millions of Workers requests per second, with V8 security patches deployed within hours and a custom second-layer sandbox for defense-in-depth.
The main constraint is JavaScript β Python and WebAssembly are supported but JavaScript loads faster for short snippets. If you're building agents that generate and execute code, the $0.002-per-unique-Worker-per-day fee is waived during beta.
Cloudflare
@Cloudflare
311retweets
View on X


