Run WordPress on Cloudflare Workers
Free, faster, more secure.
One command moves your running site, plugins, theme and database included. No server, no rewrite.
npx hostlesswpDemo login demo / demo
Independent open-source project, not by Cloudflare.
Why it exists
WordPress without the server
Static exports and headless rewrites drop the checkout, the logins and half the plugins. HostlessWP keeps WordPress whole and takes the server away.
No server to patch
No OS, web server or PHP-FPM of yours to update.
Why serverless →Dynamic, not a static copy
Checkout, comments, search and logins keep working.
Static and headless →Your data stays put
MySQL stays on its host. Leave by pointing the domain back.
What stays yours →$0 at low traffic
Runs on Cloudflare's free tiers. $5 a month when you outgrow them.
Free tiers →Nothing to infect
Read-only code, no SSH, uploads never run as PHP.
How it is protected →No disk that can fail
Code kept per deploy, media in replicated object storage.
Where it lives →What the command does
Run it where wp-config.php lives. It explains each step first and never touches your current site.
- Checks your site and plugins
- Connects your database through Hyperdrive
- Deploys a copy to a test address
How it runs
PHP 8.3 compiled to WebAssembly, inside a Worker. WordPress core is not modified.
Placement makes it fast
hostlesswp finds your database and runs the Worker next to it. Core home page, PHP time per request, database in Virginia.
Works today
The 30 most-installed plugins load and work, including a real WooCommerce checkout tested end to end.
- WooCommerce checkout
- Elementor
- Yoast SEO
- Block editor
- Admin and logins
- REST API
- Comments and search
- Media uploads to R2 / S3
- Page cache
- WP-Cron
- Email over SMTP
- curl and sessions
Not yet Multisite · installing plugins from the admin · Imagick
Questions
Can WordPress really run on Cloudflare Workers?
Yes. Workers have no PHP of their own, so HostlessWP runs PHP 8.3 compiled to WebAssembly inside the Worker and connects it to your MySQL through Hyperdrive. WordPress core is not modified. The longer answer.
Is it a static export?
No. Real PHP runs for every request that is not answered from the page cache, so checkout, comments, search, forms and logins keep working. See static export vs dynamic WordPress.
Does it change my current site?
No. hostlesswp deploys a copy to a workers.dev test address. Your current host keeps serving your domain until you add the domain to the Worker yourself.
What do I need?
A Cloudflare account, MySQL with SSL, an S3-compatible bucket such as R2, and Node.js 20+. hostlesswp checks each one. Details.
What does it cost?
hostlesswp is free and open source (GPL-2.0-or-later). The Workers Free plan runs a site; Workers Paid ($5/month) raises the daily limits. What the free tiers cover.
How do I go back?
Point your domain back to your old host. Your database never moved, so nothing needs to be copied back.
Try it on a copy of your site
Nothing changes on your current host. Don't like it? Delete the Worker.