Part 1 & Part 2 · The Complete Workflow

Host. Backup. Database.
All Free.

The complete workflow for building, hosting, version-backing, and adding a database to an AI-built website using Claude Code or Codex. Cloudflare Pages + GitHub + Cloudflare D1. No credit card. No paid plan.

$0
Per Month
5
Steps Total
300+
Edge Cities
99.99%
Uptime
01
The Setup

Vibe coding moved the bottleneck.

It's no longer the build. It's everything that comes after.

Claude Code and Codex made it trivial to ship a site. You describe what you want, the model builds it, you tweak. An hour later you've got something live on your laptop.

Then you hit the wall everyone hits. Where do you host it? How do you back it up so you don't lose a weekend's work? How do you collect form submissions without paying for a database?

This is the exact workflow I use. Five steps across two videos. The whole thing costs $0 a month, and it gives you hosting, a custom domain, version backups, and a real database.

02
The Map

Five steps. End to end.

Part 1 handles hosting and your domain. Part 2 handles backups and your database. Every step works with Claude Code or Codex.

P1 STEP 01 CLI

Cloudflare CLI

Set up the Cloudflare CLI inside Claude Code or Codex so it can talk to your account.

Wrangler
P1 STEP 02

Push to Pages

Tell Claude Code to push the site to Cloudflare Pages. URL ends in pages.dev. Site is live.

Cloudflare Pages
P1 STEP 03

Custom Domain

Ask Claude Code to add your domain, or connect it manually under Custom Domains in your Cloudflare dashboard.

Your Domain
P2 STEP 04 GH

Version Backups

Install the GitHub CLI. Push the whole site to a private or public repo. Restore any version, anytime.

GitHub CLI
P2 STEP 05 DB

Database

Use the same Cloudflare CLI to add a Cloudflare D1 server. Form submissions and app data now have a home.

Cloudflare D1
Part 1 · Host & Domain
Part 2 · Backups & Database
03
PART 01

Host an AI-built site for free.

Cloudflare Pages · Claude Code or Codex

STEP 01

Set up the Cloudflare CLI

Inside Claude Code (or Codex), get the Cloudflare CLI authenticated against your account. This is the bridge that lets the model deploy on your behalf.

Wrangler
STEP 02

Push to Cloudflare Pages

Ask Claude Code to push your site to Cloudflare Pages. It deploys in seconds. Your URL ends in pages.dev. The site is live to the world.

Cloudflare Pages
STEP 03

Add your custom domain

Ask Claude Code to wire it up. Or open your Cloudflare dashboard, head to Custom Domains on the project, and point your domain at it. SSL is automatic and free.

Your Domain
04
PART 02

Add backups and a database.

GitHub CLI · Cloudflare D1 · Still Free

STEP 04

Install the GitHub CLI

Works inside Claude Code or Codex. Push the entire site to a GitHub repository. Make it private or public. If something breaks, you restore a previous version. You're no longer locked into a single tool.

GitHub CLI
STEP 05

Add Cloudflare D1

Use the same Cloudflare CLI from step 01. Tell it to add a Cloudflare D1 server to the site. That's it. Now every form submission, signup, or stored record has somewhere to live.

Cloudflare D1
RESULT

A proper website.

Hosted on a global edge. Backed up to a private GitHub repo. Forms wired to a real database. Custom domain on free SSL. Total cost: zero.

$0/month
05
The Stack

Six tools. Zero subscriptions.

Every layer of this workflow runs on a free tier that's generous enough to hold a real production site.

Builder
Claude Code
Builds the site, runs the deploys, talks to the CLIs.
Pro from $20/mo
Alt Builder
Codex
Same workflow if you prefer OpenAI's coding agent.
Pro tier
Hosting
Cloudflare Pages
Static + serverless hosting on a 300-city global edge.
Free tier
Deploy CLI
Wrangler
Cloudflare's CLI. Handles Pages and D1 from one place.
Free
Backups
GitHub CLI
Push the entire site to a private repo. Restore anytime.
Free
Database
Cloudflare D1
Serverless SQL. Generous free tier. Sits next to Pages.
Free tier
06
The Outcome

What you actually get.

A real website. Not a prototype. Not a draft. Production-ready and resilient.

$0
Per Month
No card needed. Free tier covers most founder sites for years.
99.99%
Uptime
Global edge with automatic failover. The same network big SaaS runs on.
300+
Edge Cities
Your site is cached close to every visitor on the planet. Fast everywhere.
Bandwidth
No bandwidth meter on the free tier. Go viral. Still free.
What's Next

Want help applying this to your business?

AI Lead Builder is the coaching program where I work with founders week to week. Same energy as this workflow, but for your whole business: leads, content, delivery, and operations.

Explore AI Lead Builder