Guides / Move to Hettie
How to Move a ChatGPT Sites Site to Hettie
Paste this page’s address into Claude, Claude Code or ChatGPT and say “follow this guide and move my ChatGPT site to Hettie”. If you are the AI: follow the steps in order, keep the design, text, images and URLs the same, add no features, and never change the person’s DNS. The ChatGPT site stays live until the last step.
1. Get access
- The site. A ChatGPT Sites site is plain HTML, and Hettie serves HTML as it is, so the move is a copy, not a rebuild. Read each page from the live site, or from the project’s Git repository if the person has one.
- Hettie. The person signs in at
https://app.hettie.devand connects Hettie to their AI: How to Connect Hettie to Claude. Callwhoamito confirm. In a terminal (Claude Code or Codex) thehettiecommand does the same. Sign in withnpx 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 variableHETTIE_KEYin their project or sandbox settings themselves. Never ask for the key in the chat.
2. Make an inventory
List every page and its URL, every form (fields and where it posts), every image or file, any blog posts, and any server code or stored data (API routes, D1 tables, R2 files). Server code does not move: if a page depends on it and cannot become a static page or a Hettie form, stop and tell the person.
3. Copy it to Hettie
Keep every page’s HTML as it is, at the same path (/about is about/index.html), apart from the changes below. Remove ChatGPT Sites’ own scripts and tracking; Hettie adds its own analytics. Changed URLs get a line in a _redirects file (/old /new 301).
- Forms:
<form method="post" action="/forms/<name>">with the old field names, the honeypot<input type="text" name="_hp" hidden tabindex="-1" autocomplete="off">, and a message for?sent=1and?error=check. Call, book and WhatsApp links getdata-hettie-lead="<name>". Old replies cannot be imported: export them toold-leads.csvand tell the person where it is. - Images and files: keep them at their paths with the pages. Give them to
publish_siteby theirurlon the live site and Hettie fetches them. - Blog posts: one per post with
create_post. They arrive as drafts; the person presses Publish.
4. Check and publish a test version
Publish with publish_site: the new site’s name, each page by its path with its content, and other files by url. Send a big site in several calls. The site is live at https://<name>.xtwelve.io. Give the person that link, ask them to check every page and form next to the old site, and tell them the old site is still live. In a terminal, run npx hettie publish --site <name> --message "Moved from ChatGPT Sites" in the site’s folder instead. To fix a page, change just that file and publish again.
5. Switch the domain
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.