What is Dynamic Workers?
Cloudflare sandboxes that run AI-generated code on demand.
Who is Dynamic Workers best for?
Dynamic Workers is best for developers on Cloudflare who need to run untrusted or AI-generated code in a sandbox at runtime.
Agents that write code
An agent can write and run code against an API instead of making many tool calls, which Cloudflare says can cut inference tokens and cost by up to 80%.
Running AI-generated apps
Code from an AI app builder runs in an isolated Worker, and you decide which bindings it gets and whether it can reach the internet.
Platforms that host users' code
Code your users upload is loaded at runtime, with custom CPU and subrequest limits, instead of being deployed as a separate Worker each time.
Previews and playgrounds
Prototypes and previews start in milliseconds, a lighter option than spinning up a container for each one.
How much does Dynamic Workers cost?
Dynamic Workers needs Cloudflare's Workers Paid plan, which costs at least $5 a month per account and includes 1,000 Dynamic Workers, 10 million requests and 30 million CPU milliseconds a month before usage charges.
- 1,000 Dynamic Workers a month, then $0.002 per Dynamic Worker per day
- 10 million requests a month, then $0.30 per million
- 30 million CPU milliseconds a month, then $0.02 per million
Dynamic Workers does not run on the Workers Free plan. Requests and CPU time are charged at Workers Standard rates and share the allowance with your other Workers on the same bill. Cloudflare counts each unique pairing of Worker ID and code created in a day, so reusing a stable ID with .get() counts once, while .load() without an ID counts on every call. CPU time also covers starting the isolate and parsing the code, not only running it. Enterprise accounts are billed on contract terms. Full pricing on developers.cloudflare.com. We checked these prices on .
How do readers rate Dynamic Workers?
No one has rated Dynamic Workers yet. Be the first.
Sign in to rate. One rating per account.
What are the best Dynamic Workers alternatives?
One tool on Recaply does Dynamic Workers's job. It is open source, so you can run it on your own server.
Questions about Dynamic Workers
What is Dynamic Workers?
Cloudflare sandboxes that run AI-generated code on demand.
Who is Dynamic Workers for?
Dynamic Workers is best for developers on Cloudflare who need to run untrusted or AI-generated code in a sandbox at runtime.
Is Dynamic Workers free?
No. Dynamic Workers is a paid tool, from $5 per account per month, minimum.
How much does Dynamic Workers cost?
Dynamic Workers's paid plans are Workers Paid at $5 per account per month, minimum.
Is there an open source alternative to Dynamic Workers?
Yes. E2B is an open source tool that does the same job, so you can run your own.
What are the best Dynamic Workers alternatives?
The closest alternatives on Recaply are E2B.
Where can I try Dynamic Workers?
On its official website, developers.cloudflare.com.
How does Cloudflare count Dynamic Workers for billing?
Dynamic Workers bills each unique Dynamic Worker created in a day, identified by its Worker ID and its code. Reusing the same ID and code counts once, while a new ID, a new code version or a .load() call without an ID counts again. The count resets every day.
Does Dynamic Workers charge for startup time?
Yes. Unlike standard Workers, which bill only execution time, Dynamic Workers also bills the CPU time spent starting the isolate and parsing your code. Both are charged at $0.02 per million CPU milliseconds after the 30 million included each month.







