Publish a Claude artifact as a real website
Claude can build a web page right in the chat, as an artifact. Publishing it from Claude gives you a link on claude.ai, which is handy for showing someone. For a website at its own address, with your own domain and a contact form that reaches you, the page needs a host. Here are two ways: let Claude put it there, or do it by hand.
The quickest way: let Claude publish it
Pagehaus is in Claude's connector directory. Connect it once (it asks you to log in to Pagehaus, or make a free account), then say:
Put this page on my Pagehaus site and give me the link.
Claude saves the page to your site and tells you the address. From then on, ask for changes in the same way ("add our new phone number to the site") and they're live as soon as Claude saves them. You choose whether Claude may use all your sites or just one, and every change is kept in version history. More in connect an AI assistant.
By hand: download it and upload it
- Get the file. In the artifact's panel, use the download or copy option (its exact name
changes between versions of Claude). If you copied the code, paste it into a plain text editor, such as
Notepad on Windows or TextEdit after Format → Make Plain Text on a Mac, and save it as
index.html. - Check it. Open
index.htmlin your browser. It should look like the artifact. - Put it online. Create a free Pagehaus site, open its
Files tab and drag
index.htmlin. Your page is live athttps://yoursite.pagehaus.site/.
Artifacts that need a change first
- A React component (the code starts with
importlines and hasexport default): browsers can't open it as a page. Ask Claude: "turn this into a single plain HTML file that works on its own, with no build step". - An artifact that uses Claude itself, or remembers things between visits: those features come from claude.ai and don't work anywhere else. Ask Claude to take them out, or to save what visitors send with a form instead.
- A contact form: ask Claude to "make the form post to /_form/contact with method post", and messages are emailed to you.
- Several pages: ask for each page as its own complete file with the menu linking them by name, or ask Claude to publish them all to your site through the connector.
Something broken once it's online? See why an AI-made website works on your computer but not online.
Your own domain
On a Personal or Pro plan, connect an address like yourstudio.com under the
Domains tab; HTTPS is set up for you. With the connector, Claude can even tell you which DNS
records to add where you bought the domain. See custom domains.