Workers for Platforms is the Cloudflare product for running your customers' sites on your own Cloudflare account. For a web host, it is the closest thing Cloudflare has to a hosting platform you can sell under your own name.
This guide explains it in a host's terms. It links to Cloudflare's documentation for every part, and it does not quote Cloudflare's prices. Those are Cloudflare's to set, so the links go to Cloudflare's pricing pages.
Start with Workers
A Cloudflare Worker is code that runs on Cloudflare's network instead of on a server you rent. There is no machine to size, patch or reboot.
Workers run in V8 isolates. V8 is the JavaScript engine inside Chrome, and an isolate is the sandbox it uses to keep one piece of code apart from another. An isolate is far lighter than a container or a virtual machine, so one runtime can hold a great many of them, and each one starts quickly.
A Worker can also serve files. With Workers static assets, the HTML, CSS, JavaScript and images of a site are uploaded with the Worker and served from Cloudflare's network. A site that is only files, such as a static Astro site, needs nothing else.
What Workers for Platforms adds
You could deploy one Worker per customer by hand. It would not get you far: there is no model for tenants, and every domain would need its own route.
Workers for Platforms is the version built for that job. It has three parts.
- A dispatch namespace. The container that holds your customers' Workers. Cloudflare does not limit how many Workers a namespace holds.
- A dynamic dispatch Worker. Your router. Every request arrives here first, and your code decides which customer's Worker should answer it.
- User Workers. One per customer site. Each runs in its own isolate, with no access to another customer's code or data.
If you think in legacy panel terms, this table is close. None of the pairs is exact.
| On a shared server | On Workers for Platforms |
|---|---|
| The server | A dispatch namespace on your Cloudflare account |
| A hosting account | A user Worker |
| Virtual hosts | The dispatch Worker |
| The panel's automatic SSL | Cloudflare for SaaS custom hostnames |
| MySQL | D1 |
| The home directory | Static assets, and R2 for uploads |
| Per-account resource limits | Custom limits |
How a customer's domain reaches their site
Customers bring their own domains. The piece that makes this work is Cloudflare for SaaS, and the unit is the custom hostname.
- You keep one domain on Cloudflare for the platform itself. Cloudflare calls it the SaaS zone.
- Each customer domain is added to that zone as a custom hostname.
- The customer adds a CNAME record that points their domain at your platform.
- Cloudflare validates the domain, then issues and renews the SSL certificate.
- One wildcard route on your zone sends every request to the dispatch Worker, which looks up the hostname and hands the request to the right site.
That wildcard route is what lets one router serve any number of domains. You do not add a route per customer.
One thing to know before a customer asks: a CNAME cannot always sit on the root of a domain. A customer who wants example.com rather than www.example.com needs a DNS provider that supports it, or Cloudflare's apex proxying, which Cloudflare offers only on its Enterprise plan.
Isolation, in practice
On a shared server, isolation is something a host adds: separate users, jails, resource limits. On Workers for Platforms it is the starting point.
- Separate isolates. A user Worker cannot read another customer's memory, code or data.
- Untrusted by default. Cloudflare treats the code in a namespace as untrusted. In that default mode, a user Worker cannot use the shared default cache, and the Cloudflare-specific request properties are withheld from it.
- Only what you attach. A user Worker can reach a database or a bucket only if you bind that resource to it.
- A ceiling per request. With custom limits, the dispatch Worker can cap the CPU time and the number of subrequests a customer's Worker may use on each request.
- Control of outgoing traffic. An outbound Worker can sit in front of every request a customer's code makes to the outside.
Databases and storage
A brochure site is only files. A site with a CMS needs somewhere to keep content and uploads. On Cloudflare those are separate products, attached to a Worker as bindings.
- D1 is a SQL database.
- R2 is object storage, for media and uploads.
- KV is a key-value store, for things like sessions.
A platform can create one of each per customer and bind it to that customer's Worker alone. EmDash, the CMS built on Astro, uses all three on Cloudflare: D1 for its database, R2 for storage and KV for sessions.
Measuring what each site uses
You cannot bill what you cannot measure. Cloudflare reports usage for Workers for Platforms through its GraphQL Analytics API. You can query it by dispatch namespace, or by the name of a single customer's Worker, and get requests, errors and CPU time.
Logs are separate. They can be exported with Logpush, or read by a Tail Worker. And each user Worker can carry tags, such as a customer ID or a plan name, so you can find and group them.
What it will not run
This matters more than anything above, because it decides which customers can move.
- PHP. Workers is not a PHP runtime, so WordPress does not run on it. A WordPress site gets there by being rebuilt, not migrated.
- Email. There are no mailboxes. Email stays where it is.
- The legacy panel way of working. There is no file manager and no FTP. A site is built and deployed, not edited in place on a server.
So Workers for Platforms does not replace the servers you run today. It sits beside them. WordPress, PHP and email stay on your legacy panel, and the sites that are built for this kind of hosting, such as Astro and EmDash sites, go to the new tier.
What it costs
Workers for Platforms is a paid Cloudflare product. Cloudflare for SaaS has its own plan, with a charge per custom hostname beyond an included number. Both are billed to your Cloudflare account. We do not repeat the prices here. Read them at the source:
- Workers for Platforms pricing
- Cloudflare for SaaS plans
- Cloudflare's developer platform pricing, which covers D1, R2 and KV
The shape of the bill is the part worth understanding. There is a plan fee, and after that you pay for what the sites use: requests, CPU time and the number of sites. You do not pay for a server that sits there whether it is busy or not. That is why the cost of one more small site looks nothing like the cost of one more server.
What you would still have to build
Workers for Platforms is a set of APIs. It is not something a customer can log in to, and it is not something your billing system knows about. Between the API and a product you can sell, a host still needs:
- a panel, for your team and your customers
- a way to deploy a site from a repo or an upload
- domain onboarding, with the DNS instructions a customer can follow
- usage collected per site and kept in a form you can bill
- a connection to your billing system, including suspending a site that is not paid for
- an API of your own, so your order flow can do all of it without a person
Seapanel is that panel: today it covers the panel for your team, creating each EmDash site, domain onboarding, an API of your own, billing on your own Stripe account through Stripe Connect, and the connection your billing system drives, including suspending a site that is not paid for. Seapanel does not collect usage per site: Cloudflare's analytics for your account show it. It is in early access with select hosting partners. How it works goes through it step by step, and early access is how to apply.