The Unified
WordPress-to-Astro
Migration Tool

Convert your WordPress site into a blazing-fast Astro project with one command.
Powered by AI agents. Free and open source.

Run locally or ask Claude Code to convert your site. Zero config.

$ npx -y @wp2astro/convert convert --url https://myblog.com --scaffold

 Probing WordPress REST API… 
 Fetching 247 posts… 
 Fetching 12 pages… 
 Discovering custom post types…  3 found
 Transforming content… 
 Analyzing site design… 

 Conversion complete!
 Scaffold prompt printed — paste into Claude Code with /elite-style

Zero JavaScript by default

Astro ships pure HTML. Pages load instantly — no hydration overhead, no bundle bloat.

Astro Static HTML

AI-powered analysis

AI agents scan your content, themes, and plugins — then generate clean, optimized Astro code.

Claude Code Codex

Deploy anywhere

Push to Vercel, Netlify, Cloudflare Pages, or any static host. Redirects and sitemaps configured automatically.

Vercel Netlify Cloudflare

Why builders are leaving WordPress

Astro delivers what WordPress can't — speed, security, and simplicity. No PHP, no database, no plugin vulnerabilities.

0kb JS by default
98+ Lighthouse score
100% SEO preserved
$0 hosting possible

Built for modern migration

Six AI-powered capabilities make WordPress-to-Astro migration effortless. Content, themes, plugins — all handled automatically.

6 AI capabilities
1 command to run
4 step process
0 config required

Focus on content, not tooling

  • Bulletproof security — no PHP, no database attack surface
  • Modern developer experience with TypeScript and hot reload
  • Use any framework — React, Vue, Svelte, Solid in one project

SEO & performance preserved

  • All URLs, meta tags, structured data preserved automatically
  • Images and media optimized and converted to WebP and AVIF
  • Perfect Lighthouse scores out of the box — no plugins required

From WordPress to Astro
in 4 steps

Our AI agents handle the heavy lifting. You stay in control.

Run the CLI

Run npx -y @wp2astro/convert convert with your WordPress URL. Works locally, in Claude Code, or in Codex. Zero setup required.

  • Point at any WordPress site URL
  • No API keys or authentication needed
  • Add --scaffold to extract design data for AI styling
$ npx -y @wp2astro/convert convert --url https://myblog.com --scaffold

Design analysis

The CLI scrapes your live site to extract colors, fonts, navigation, layout patterns, and page types — then generates a styling prompt.

  • Color palette extracted from CSS vars and stylesheets
  • Fonts detected with Fontsource install commands
  • Nav structure, sidebar, and hero sections mapped
## Color Palette
| primary | #7c3aed |
## Typography
- Inter → pnpm add @fontsource/inter

Style with AI

Paste the scaffold prompt into Claude Code and run /elite-style — it generates styled Astro components matching your original design.

  • Header, Footer, BaseLayout generated from design data
  • Tailwind @theme tokens from your color palette
  • Content collections with full type safety
src/layouts/BaseLayout.astro ✓
src/components/Header.astro ✓
src/styles/global.css ✓

Deploy and go live

Push to Vercel, Netlify, or Cloudflare Pages with one click. Redirects and sitemaps configured automatically.

  • One-click deploy to any static host
  • Redirects from old WordPress URLs preserved
  • Sitemap and robots.txt generated
✓ deployed to https://myblog.vercel.app
✓ 247 redirects configured
✓ sitemap.xml generated

Free & open source

wp2astro is free and open source, built by the community. Run it locally, in Claude Code, or in Codex. No accounts, no credit cards, no limits.

Contribute →
Powered by AI Agents

Take your WordPress site
to the next level with Astro

Get started