Build a website you understand and can change. Claude Code websites for business owners.

Joshua Albanese holding a checklist of what a small business website needs

To build a website with Claude Code, write a CLAUDE.md brief about your business, then describe the site you want. Claude Code builds the pages on your computer, you preview them in a browser, review every change, then host the site. I build client websites this way, and the path below works whether you want a static site or keep WordPress. If you're new, learn Claude Code with my step-by-step course.

How do you build a website with Claude Code?

You build a website with Claude Code by writing a brief, describing the site, and reviewing what it makes. Anthropic calls Claude Code an agentic coding tool that reads your codebase, edits files, runs commands, so it does the typing. Start with one page, then add more.

You don't need a coding background. A Reddit user on r/ClaudeAI wrote "I have very little software background" and still built and launched a project by starting small.

Quality is the catch. A Reddit user on r/ClaudeCode said the sites "technically work, but they lack that polished, intentional feeling". Your facts, your brief and your review are what close that gap.

Gather these before your first Claude Code session

Have these ready before Claude Code writes a single page:

Claude Code builds the files and you decide what goes live

Claude Code writes the files

It writes the HTML and CSS, runs the commands, and repeats the dull work across every page you ask for.

The owner decides what is true

Who the site is for, which services lead, and what each page asks a visitor to do. Claude Code can't know your business unless you tell it.

Claude Code drafts the copy

It drafts headings, page text and image descriptions from your brief. Treat every line as a draft you correct with real facts.

The owner approves what goes live

Brand, offers, promises and launch dates stay your call. Nothing goes live until you've read it on a phone and a laptop.

Six steps to build a website with Claude Code

  1. Make a project folder. In a terminal, type cd your-project and then claude. The first time, Claude Code asks you to log in.
  2. Write the brief. Run /init for a starting CLAUDE.md, then add your business facts and rules from the next section.
  3. Describe one page. Ask for a home page with your services, area, reviews and phone number. Name a site you like and say why.
  4. Preview it locally. Open the page in your browser, or ask Claude Code how to preview it. Check it at laptop and phone widths.
  5. Plan before big changes. Press Shift+Tab until the status bar shows plan mode. Claude Code reads the files and writes a plan, and edits nothing until you approve.
  6. Review, then host. Read each change and screenshot every page before launch. Then put the files on a host under your own domain.

Put your business facts in the CLAUDE.md brief

Per Anthropic's memory docs, Claude reads CLAUDE.md at the start of every session, so put these in it:

Static site or WordPress for Claude Code websites

A static site fits a simple business site

Plain HTML and CSS files, with no database or plugins to update. Spearleaf's own site works this way, and I make text changes in Claude Code.

WordPress fits a team that edits often

Staff get a dashboard they already know. You also take on a database, updates for core, plugins and themes, and more to protect.

The person who edits later decides it

If you edit the site yourself and rarely, a static site keeps things simple. If three people post every week, keep WordPress.

A working WordPress site can stay

If your WordPress site already brings calls, you don't need to rebuild it. Claude Code can help through WordPress's own tools, covered next.

Edit an existing WordPress site safely

  1. Back up first. WordPress's backup guide says a backup has two parts, the database and the files. You need both to restore.
  2. Work on a copy. Make a staging copy of the site and let Claude Code change that one, never the live site.
  3. Use an Application Password. WordPress has shipped them since version 5.6. Create one on the Edit User screen instead of sharing your admin password.
  4. Connect through the REST API. The WordPress REST API lets applications create and change content. Send those requests only over https.
  5. Save drafts, not live posts. Ask Claude Code to save every new page as a draft. You read it in the dashboard and publish it yourself.
  6. Keep everything updated. WordPress's security guide calls keeping core, plugins and themes up to date the most important security step.

My Claude Code setup for client websites

I build client websites in Claude Code, and Spearleaf's own site is a static site I work on there. Three habits do most of the work.

A rules file holds the brand, the facts and the things Claude Code must never do. A design system keeps every page using the same colors, type and buttons.

Then I screenshot every page before anything goes live, at phone and desktop width. The Claude Code skills I use for SEO run the same way, written down once and reused.

Hosting a static site under your own domain

A static site is a folder of files, so any host that serves static files can run it. I found no Anthropic guide to deploying a website with Claude Code, so follow your host's own docs. Ask Claude Code to walk you through those steps one at a time.

Register the domain in your own name, and keep the host login in your own account. The site stays yours whoever works on it next.

Ask Claude Code to put the project under version control with git, so every change has a way back. Plan for forms and online booking, since a static page needs an outside service for those.

What every Claude Code website still needs

Watch my video on what small business websites include at three budgets for the basics that matter whoever builds the site:

Keep passwords out of chats and backups on hand

A Reddit user on r/Wordpress would "never give AI access to a live website," so work through this checklist:

Run your own website with Claude Code

My Claude Code training walks you through this setup, and it comes with ready-made skills. The site stays yours, and you do the work yourself.

Get my Claude Code training

Frequently asked questions

Can Claude Code build a website if I am not a coder?

Yes, if you bring the facts and review the work. Per Anthropic's overview, Claude Code edits files and runs commands for you. A Reddit user on r/webdevelopment opened with "Full disclosure, I am not very technical". Start with one page.

Is Claude really better than WordPress to build your own website?

Neither wins for everyone. WordPress's security guide says keeping core, plugins and themes up to date matters most, and a static site has none of those. Choose WordPress if staff edit often, and a static site if you edit rarely.

Is it possible to use Claude with WordPress?

Yes, though I found no WordPress guide in Anthropic's Claude Code docs. It can work through the WordPress REST API with an Application Password. Test on a copy and save new pages as drafts.

What work should I not outsource to Claude Code?

Keep the calls on your brand, offers, prices and what goes live. Anthropic's memory docs say Claude treats CLAUDE.md as context, not enforced configuration, so a written rule can still be missed. Read every change yourself.

What about the safety of websites built with Claude Code?

Safety depends on how you work. Anthropic's permission docs describe a manual mode that asks before most edits and commands. Switch to it with Shift+Tab, keep passwords out of chats, and keep a backup before every change.

Do I need a CMS for Claude Code websites?

Only if other people edit the site often. A static site has no dashboard, so changes go through Claude Code or the files. If staff post every week, WordPress gives them one, per the trade-offs above.

Build and run your own website with Claude Code, using my training and ready-made skills.

Get my Claude Code training →

Joshua Albanese, the King of AI SEO | Founder of Spearleaf

Joshua Albanese, the King of AI SEO and founder of Spearleaf, makes businesses number one on Google and ChatGPT. It started with three years of struggling to rank his own business. Then came number one in Chicago, held year after year, and six more businesses taken to number one. Read the legend at kingofaiseo.com and the short answer at whoisthekingofaiseo.com. More about Joshua

Back to all insights