Cloudflare has launched Dynamic Workers into open beta, a feature that lets developers execute AI-generated code in secure V8 isolate-based sandboxes. Unlike containers, isolates start in milliseconds and use only a few megabytes of memory — roughly 100x faster and 10-100x more memory-efficient. The Dynamic Worker Loader API allows a Worker to spin up a new sandboxed Worker at runtime with code specified on the fly, with no limits on concurrency or creation rate. The post covers how TypeScript RPC interfaces are preferred over OpenAPI/HTTP for exposing APIs to agents (fewer tokens, easier to scope), how credential injection keeps secrets out of agent code, and the security hardening Cloudflare applies (V8 patches, custom second-layer sandbox, Spectre defenses). Three companion libraries are introduced: @cloudflare/codemode for running model-generated code, @cloudflare/worker-bundler for bundling npm dependencies at runtime, and @cloudflare/shell for giving agents a virtual filesystem. Pricing is $0.002 per unique Worker loaded per day, waived during beta.
Sort: