Guides / Get started

How to Build and Publish a New Website with Hettie

15 November 2026

Paste this page’s address into Claude or ChatGPT and say “follow this guide and build my website”. It is written so your AI has every detail it needs. If you are the AI: follow the steps in order, ask the person only for what you cannot work out, and never change their DNS yourself.

1. Account and connection

  1. Account. The person signs in at https://app.hettie.dev with Google or an email link. That creates the account; the first site is free.
  2. Connect Hettie. In Claude, the person adds a custom connector under Settings, then Connectors, with the URL https://app.hettie.dev/mcp, signs in with their Hettie login and presses Allow. In Claude Code, they run claude plugin marketplace add hettiedev/hettie-plugin and then claude plugin install hettie@hettie; the plugin includes the connector. ChatGPT takes the same URL under Settings, then Apps & Connectors, in developer mode (not tested yet). Full steps: How to Connect Hettie to Claude. Call whoami to confirm the account.
  3. In a terminal (Claude Code or Codex) the hettie command does the same. Sign in with npx hettie auth login. In a sandbox without a browser, the person creates a key under Account → Connect a Claude project and adds it as the environment variable HETTIE_KEY in their project or sandbox settings themselves. Never ask for the key in the chat.

2. The brief

Get these from the person in one message, or decide sensibly and say what you chose:

  • Business name and what it does, in one sentence.
  • Who the site is for, and the one action a visitor should take (order, book, call, sign up).
  • Pages. Default: Home, About, Contact. Add a menu, prices or blog only if asked.
  • Contact details to show, photos and logo if they have them, brand colors and tone.
  • A site name: lowercase letters, numbers and dashes. It becomes <name>.xtwelve.io.

Do not invent prices, reviews, numbers or client names. Leave a clearly marked placeholder and list it at the end.

3. Build the site

Build the site as plain HTML: index.html for the home page and <page>/index.html for each other page (/about is about/index.html), with one shared stylesheet.

  • Astro (terminal only): for a bigger site that shares one layout, run npx hettie new <name>. It creates an Astro project with a layout, home page, contact form and blog, and a CLAUDE.md with the rules. Read it and follow it.
  • Every page gets its own <title> and a <meta name="description"> of at most 160 characters.
  • Style: brand colors and fonts as CSS variables. One <h1> per page, alt text on every image, labels on every form field, readable on a 375px wide phone.
  • Forms: <form method="post" action="/forms/order"> (name: lowercase, numbers, dashes). Every field has a name. Add the hidden honeypot field: <input type="text" name="_hp" hidden tabindex="-1" autocomplete="off">. Optional <input type="hidden" name="_redirect" value="/thanks/">. The visitor returns with ?sent=1 (or ?error=check if the spam check failed); show a message for both. Each reply is saved as a lead and emailed to the owner.
  • Buttons as leads: add data-hettie-lead="call" (any name) to call, book or WhatsApp links so the clicks count as leads.
  • Images: send them with the site’s files to publish_site, or add one from a public address with upload_media_from_url and use /_hettie/media/<file>. Stock photos: search_unsplash, then unsplash:<id>; keep the credit Hettie adds.
  • Reserved paths: never create pages under /forms/ or /_hettie/.
  • Blog posts are not files. Create them with create_post (title, body in Markdown) as drafts; the person presses Publish in Hettie, or you call publish_post when they say so. They show at /blog. On an HTML site Hettie draws the blog in the site’s own header and footer.

4. Check and publish

  1. Show the person the pages before you publish. Check every link, every form and a phone width.
  2. Publish with publish_site: the site’s name, each page by its path with its content, and images as base64 or a public url. Send a big site in several calls of about twenty files. The site goes live at https://<name>.xtwelve.io; give the person the link. A new name makes a new site. In a terminal, run npx hettie publish --site <name> in the site’s folder instead.
  3. To change a page, send just that file again. Every publish is a version: list_versions shows them, undo puts the previous one back. Leads, posts and media are kept.

5. Own domain and hand-over

Call add_domain with the site and the bare domain, like example.com, then set_domain_www with on: true so www.example.com forwards to it. get_domains lists the records the person adds where they bought the domain: one CNAME per address, @ and www, pointing to <name>.xtwelve.io. If the domain’s DNS is on Cloudflare, both records are set to DNS only (grey cloud). Check with get_domains until both are active with HTTPS. Do not change DNS yourself. In a terminal: npx hettie domain add example.com, npx hettie domain www on example.com and npx hettie domain status.

Finish with a short message to the person: the live link, the placeholders you left and what you need to fill them, that leads arrive by email and in Hettie under Leads, and the domain records if they want their own domain.

Ready to try it?Your first site is free, on your own domain.
Start free

Back to all guides