KrexelBlogHome

Krexel vs Cloudflare Pages — which is better for AI-built sites?

Both run on Cloudflare's edge. But Pages is tied to git; Krexel is built for AI agents with patch deploys. Here's how they differ and which fits your workflow.

Krexel vs Cloudflare Pages: both run on Cloudflare's edge network, but Pages is tied to git (30-60 second rebuilds per change) and Krexel is built for the AI workflow (8-second patch deploys via MCP). Cloudflare Pages + Workers is the right choice if you need edge functions alongside a static site. Krexel is the right choice if the AI is shipping and iterating on the site from the chat.

The interesting thing about this comparison is that Krexel is itself built on Cloudflare's edge. Same network, same global reach, same DDoS protection, same cert provisioning. The difference is the deploy loop.

The headline difference

Cloudflare Pages is built for the git workflow. Krexel is built for the AI workflow.

On Cloudflare Pages:

  1. AI reads the file
  2. AI makes the edit locally
  3. AI commits to git
  4. AI pushes to GitHub
  5. Cloudflare Pages detects the push
  6. Cloudflare Pages runs the build (30-60s for static SSGs)
  7. Cloudflare Pages deploys the result
  8. User sees the change

On Krexel:

  1. AI reads the live file via get_current_site
  2. AI calls patch <file> with the change
  3. Live in 8 seconds

The git flow adds 5 steps and 30-50 seconds. The patch flow is direct.

What you actually get

FeatureKrexelCloudflare Pages
Deploy from Claude Code, Cursor, WindsurfBuilt-in MCP server (15 tools)Wrangler CLI (wrangler pages deploy)
Edit live site from the AI8-second patch deploysFull rebuild via git push
Cost per small edit0.1 deploy1 build minute (Workers paid plan only)
Time from AI edit to live8 seconds30-60 seconds
AI agent tools (deploy/patch/rollback)9 MCP toolsCLI exists, no MCP server
Open source CLIMIT-licensedWrangler is open source (MIT)
Git-based deploysAvailable (clone + deploy)Native
Custom domainsFree on all tiersFree on all tiers
Global CDNCloudflare (300+ PoPs)Cloudflare (300+ PoPs)
Free tier100 deploys/mo, yourname.krexel.com subdomainUnlimited requests, 500 builds/mo
Serverless / Edge FunctionsNot supportedWorkers (Native, generous free tier)
KV / D1 / R2Not supportedAll native (KV, D1, R2)
Durable ObjectsNot supportedNative
Build minutesN/A (Krexel builds are part of deploy)500 build min/mo (free)

The cost model

Cloudflare Pages (free tier):

  • Unlimited requests
  • 500 build minutes/mo
  • Unlimited bandwidth
  • For AI iteration: 30 edits/day = 900 build min/mo (over the free tier, paid plan needed)

Krexel (free tier):

  • 100 deploys/mo
  • 1000 patch deploys equivalent
  • For AI iteration: 30 edits/day = 90 deploys/mo (under the free tier)

Krexel (Builder, $10/mo):

  • 1000 deploys/mo
  • 10,000 patch deploys equivalent
  • For AI iteration: 30 edits/day = 90 deploys/mo (well under the limit)

For sites the AI ships once and rarely updates, Cloudflare Pages is essentially free. For sites the AI iterates on heavily, Krexel's per-deploy model with 0.1 cost per patch is more cost-efficient.

When to pick Cloudflare Pages

Pick Cloudflare Pages when:

  • You need edge functions or serverless. Cloudflare Workers is industry-leading — fast cold start, generous free tier, native integration with KV, D1, R2, Durable Objects. If your site has API routes, auth flows, or edge-computed responses, Pages + Workers is the right choice.
  • You want unlimited bandwidth. Pages is free for unlimited requests and bandwidth on the free tier. For high-traffic sites, this is a real cost win.
  • You're already in the Cloudflare ecosystem. If you're using Cloudflare DNS, Cloudflare Access, or Cloudflare R2 for storage, Pages integrates natively.
  • The build is the source of truth. If your team thinks in terms of "PRs that get built and deployed," Pages' flow matches your mental model.

When to pick Krexel

Pick Krexel when:

  • The AI is iterating on the live site. The 8-second patch deploy is an order of magnitude faster than Pages' 30-60 second full rebuild. If the AI is making 10+ edits per day, this difference compounds.
  • You want MCP-native AI tools. Cloudflare has Wrangler but no MCP server for Pages. With Krexel, the AI gets structured tools with typed inputs and outputs from day one.
  • You ship fast and don't need git ceremony. The Krexel flow is npm install -g krexel, krexel login, krexel ship ./dist <slug>. No GitHub, no PR, no review.
  • You don't need Workers. If your site is purely static, Krexel's simpler model is the right fit.

The setup story

Cloudflare Pages (6+ steps, 5-10 minutes):

  1. Create a Cloudflare account
  2. Create a GitHub repo
  3. Create a Pages project in Cloudflare
  4. Connect the GitHub repo
  5. Configure build command and output directory
  6. Wait for the initial build
  7. Get a URL
  8. (Optional) Install Wrangler CLI

Krexel (2 commands, 60 seconds):

npm install -g krexel
krexel login

That's it. No GitHub, no Cloudflare signup, no build config. The first deploy creates the project and gives you a URL.

What the AI can do from the chat

With Krexel, the AI's tools map directly to site operations:

  • "Ship me a portfolio site" → init + ship (60 seconds)
  • "Change the H1" → patch (8 seconds)
  • "Add a contact form" → write_file (8 seconds)
  • "Revert that" → rollback (4 seconds)
  • "Show me my deploys" → get_current_site

With Cloudflare Pages, the AI has to drive Wrangler:

  • "Ship me a portfolio site" → wrangler pages project create + wrangler pages deploy dist (5-10 min)
  • "Change the H1" → file edit + git add + git commit + git push (30-60s)
  • "Add a contact form" → file edit + git workflow (30-60s)
  • "Revert that" → wrangler pages deployment rollback (15-30s, recent deploys only)
  • "Show me my deploys" → Cloudflare dashboard (AI can't easily do this)

The Krexel toolset is purpose-built for the AI iteration loop. Wrangler works but assumes a human at a terminal with a Cloudflare account pre-configured.

The lock-in question

  • Cloudflare Pages lock-in: The build output is static files. You can host them anywhere. But the Pages-specific features (Workers, KV, D1, R2) are tightly coupled to Cloudflare's ecosystem.
  • Krexel lock-in: The deployed files are static files. You can host them anywhere. The Krexel-specific features (MCP tools, patch deploys, AI-aware rollback) wrap a documented HTTP API, so you can build your own MCP server for another host if needed.

For a pure static site, no lock-in either way. For sites using Workers, switching off Cloudflare means rewriting the Workers code.

Who uses which

Cloudflare Pages users: Teams already in the Cloudflare ecosystem, sites that need edge functions or KV storage, high-traffic sites that benefit from Cloudflare's free unlimited bandwidth, anyone using Workers as a primary backend.

Krexel users: Solo developers using AI to ship and iterate, founders who describe their site in a sentence and have it live in a minute, AI-first teams where the AI is the primary deployer, anyone who has ever said "I just want to change one line, not rebuild the whole site."

Try it

npm install -g krexel
krexel login

Or with AI:

claude mcp add --transport stdio krexel -- krexel-mcp

Then in your AI:

"Ship me a one-page site for a band called Northern Pines with a tour dates section and a mailing list signup. Use a krexel.com subdomain."

60 seconds later you have a live URL. Edit it from the chat in 8 seconds.

Read more

Frequently asked questions

What is the main difference between Krexel and Cloudflare Pages?

Both run on Cloudflare's global edge network (300+ PoPs). The difference is the deploy flow: Cloudflare Pages is tied to git and rebuilds the whole site on every push (30-60s); Krexel is built for AI agents with 8-second patch deploys and 9 MCP tools. Cloudflare Pages is right for git-based static + Workers workflows; Krexel is right for AI-first iteration.

Can I use Cloudflare Pages with Claude Code or Cursor?

Yes, via the Wrangler CLI (wrangler pages deploy). But every deploy is a full rebuild — Cloudflare Pages has no first-class patch deploy support. You can also use the Cloudflare API directly, but this requires custom integration code. Krexel ships an MCP server with 15 tools out of the box.

Does Cloudflare Pages support patch deploys?

No first-party support. Cloudflare R2 (the storage layer behind Pages) supports single-object upload, but Pages itself is git-driven. Krexel's `patch` tool is purpose-built for this — a single MCP call that updates one file in production.

Is Krexel cheaper than Cloudflare Pages for AI-built sites?

Cloudflare Pages is free for unlimited requests and bandwidth. Krexel is free for 100 deploys/mo. For sites the AI iterates on heavily (30+ edits/day), the deploy quota on Krexel matters more than the bandwidth on Cloudflare Pages. For sites the AI ships once, Cloudflare Pages is essentially free.

Can I use Cloudflare Workers on Krexel?

No. Krexel is a static host. Cloudflare Pages integrates with Cloudflare Workers (serverless edge functions) and Durable Objects. If you need edge functions, Cloudflare Pages + Workers is the right choice. Krexel is static-only.

Which is faster to set up for an AI-built site?

Krexel: 2 commands and 60 seconds (npm install -g krexel; krexel login). Cloudflare Pages: 6+ steps and 5-10 minutes (Cloudflare account, GitHub repo, Pages project, build config, first deploy). For sites the AI is shipping from the chat, Krexel is meaningfully faster.