Automate now

Open source, MIT license

Install wp2cf and migrate a WordPress site with your own AI agent

wp2cf is the Agent Skill behind our AI static website builder. Give your agent a URL and it surveys the site, builds a static Astro site on Cloudflare Workers, checks that every old URL still works and compares screenshots of the old and new site. Going live waits for your OK.

Install in Claude Code

/plugin marketplace add beehexacorp/wp2cf
/plugin install wp2cf@wp2cf

Install in any agent that supports Agent Skills

Copy the skill folder into your skills folder, for example for Claude Code:

git clone https://github.com/beehexacorp/wp2cf
cp -r wp2cf/skills/wp2cf ~/.claude/skills/wp2cf

Run the scripts without an agent

bash skills/wp2cf/scripts/run.sh https://your-wordpress-site.com

Run a migration

Every run starts as a sample: the homepage, one content page and one listing page are migrated and deployed to a preview URL, in about two minutes. Links to pages that were not migrated go to the live site. Run the full migration when you are happy with the sample.

/wp2cf https://your-wordpress-site.com          # sample: 3 pages + preview
/wp2cf https://your-wordpress-site.com --full   # the whole site

You do not need a WordPress admin login, SSH or a database dump, only the public site. The preview is noindex, and the agent reports URL coverage, broken links and pixel differences per page.

Requirements

  • Node.js 22.12 or newer, npm, bash and curl.
  • Playwright and Chromium, installed on first use for the screenshots (skip them withWP2CF_NO_COMPARE=1).
  • A Cloudflare account to deploy: run npx wrangler login, or setCLOUDFLARE_API_TOKEN (and CLOUDFLARE_ACCOUNT_ID if the token can see several accounts).

What a static site cannot do

wp2cf flags these and never drops them silently: forms, site search, new comments, WooCommerce checkout, memberships and logins, and files over 25 MB. TheREADME lists each one and what to use instead.

Use it only on sites you may migrate

Only migrate sites you own or are authorised to migrate. The crawler identifies itself aswp2cf-migrator; use --concurrency 2 on small hosts.

Rather not do it yourself?

Our team runs the same skill for you, with a free 3-page sample first. See theAI static website builder service or thetest results. A PHP edition that needs no npm packages is on GitHub asphp_wp2cf. Source and issues for this version: github.com/beehexacorp/wp2cf.

Adapt to what you know, customize every flow, extend as you grow. Start with HexaSync