Cloudflare Launches Dynamic Workers for Sandboxing AI-Generated Code

CloudflareCloudflare

· Updated

Cloudflare's Dynamic Workers, now in open beta for paid Workers users, runs AI-generated code in V8 isolate sandboxes that start in milliseconds — roughly 100x faster than containers. This makes per-request, per-user agent sandboxing practical at scale without concurrency limits.

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
@Cloudflare
X

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

311retweets
View on X

Every HeadsUpAI update is written based on its original source and reviewed before it's published. Read our editorial standards →

Share this update