How to Publish a Claude Artifact on Your Own Domain with xCloud

Updated November 29, 2026 · 6 min read

Summarize with:
Share:

Claude can build a working web page for you in a chat: a calculator, a landing page, a small game or a dashboard. That page is called an artifact. This guide shows how to put an HTML artifact on a real website with your own domain and free SSL on xCloud, without a database or WordPress. For what you can host and what it costs, see static site hosting.

There are two ways to do it:

  • Upload it yourself (Steps 1 to 6): save the artifact as a ZIP and upload it in the xCloud dashboard.
  • Let Claude publish it (last section): connect Claude to xCloud MCP and ask it to create the site and write the file.

Before you start

  • An xCloud server with Nginx or OpenLiteSpeed.
  • The artifact saved as a file named index.html. In Claude, download the artifact, or copy its code into a file called index.html. In a Claude Code project, use the project folder.
  • If the artifact is a React or TSX component, ask Claude: “Give me this as one self-contained HTML file.” Upload that file. A project you build with npm needs npm run build first; upload the files from its build folder (often dist).
  • Put index.html at the top of the ZIP, not inside a folder. xCloud unpacks the ZIP into the site’s folder exactly as it is, so a folder inside the ZIP becomes a folder on the site.

On a Mac or Linux computer you can make the ZIP from the folder that holds the file:

cd my-artifact
zip -r ../my-artifact.zip .

On Windows, select the files inside the folder (not the folder itself), right-click, and choose Send to → Compressed (zipped) folder.

Step 1: Open Upload Website on your server

In the xCloud dashboard, open your server and click New Site. On the Add Your New Site Into page, click the Upload Website tab.

Click the ‘Upload Website’ tab on the ‘Add Your New Site Into’ page

Step 2: Choose Manually Upload Website

Click Manually Upload Website (“Upload a zipped file of your existing website (max size: 500 MB)”). xCloud opens the upload steps: Destination, Domains, Settings, Files and Confirm.

Click ‘Manually Upload Website’ under the ‘Upload Website’ tab

Step 3: Pick a demo domain or your own domain

On Domains, choose one of the two options:

  • Demo Site: xCloud gives the site a free test domain, so you can check the artifact before you go live. Keep or change the name under Demo Site Setup → Domain Name.
  • Setup into a New Domain: use your own domain now. Point the domain’s DNS to your server’s IP address first.

Click Next.

Select ‘Demo Site’ on the Domains step to start on a free test domain

Step 4: Choose No Database in Settings

An artifact is a static page, so it needs no database. On Settings:

  • Leave Web Root empty when index.html is at the top of your ZIP.
  • Under Database Management, select No Database.
  • Keep the PHP Version and Site User xCloud filled in.

Click Next.

Select ‘No Database’ under ‘Database Management’ on the Settings step

Step 5: Upload the ZIP file

On Files, keep Upload From Browser selected. Drag your ZIP onto Upload/Drop Your Zipped/Tar File, or click it to pick the file. The upload accepts .zip and .tar.gz files up to 500 MB. When the upload finishes, click Next, check the summary on Confirm, and create the site.

Drop the ZIP on ‘Upload/Drop Your Zipped/Tar File’ under ‘Upload From Browser’

Prefer an SFTP app such as FileZilla? Choose Upload Using SFTP/SSH instead. xCloud shows the server address, username, password, port and upload path. Upload the ZIP there, tick I have uploaded the migration file, and click Verify Upload. See how to configure SFTP access for the app side.

When xCloud finishes, click Visit Site on the site’s page. You should see your artifact.

If you see a blank page or the default page: the ZIP most likely held a folder with index.html inside it. Either upload a new ZIP with index.html at the top, or set the site’s web root to that folder name.

Step 6: Move to your own domain and turn on SSL

If you started on a demo domain, open the site and go to Domain. Click Change next to Primary Domain, enter your domain, and save. Then issue a free certificate on SSL/HTTPS.

Click ‘Change’ next to ‘Primary Domain’ on the site’s Domain page

These guides cover each part in detail: go live from a staging domain, change the primary domain of a site and enable HTTPS with SSL certificates.

Let Claude publish it with xCloud MCP

If Claude is connected to xCloud, you can skip the ZIP. Claude creates an empty site on your server and writes the artifact into it.

  1. Connect Claude to xCloud MCP. For Claude Code, Claude Desktop and claude.ai, follow connect xCloud MCP to your AI agent. For Claude Cowork, see connect Claude Cowork to xCloud MCP.
  2. Ask Claude, for example: “Create a blank site called focus-timer on a demo domain on my server docs-demo, then save this artifact as index.html on that site.”
  3. Unless you set Claude to allow these actions, it asks before each one runs. Approve the new site, then the file write.
  4. Open the site’s demo domain to check the page. Change the domain and turn on SSL as in Step 6.

To change the page later, ask Claude to edit index.html on that site. It writes the new version over the old one.

For developers

The same two actions exist in the Public API and xCloud MCP:

  • Create the empty site: POST /servers/{server}/sites/blank (MCP operation servers.sites.blank.create). It accepts a demo or live domain and dry_run to preview first. Your token needs write access to servers.
  • Write the file: PUT /sites/{site}/files/content with path and content (MCP operation sites.files.content.update). Your token needs write access to sites. The file is written as the site’s own user, inside the site’s folder.

What works and what does not

Artifact Works on xCloud?
Plain HTML, CSS and JavaScript in one file Yes, upload as it is
Several files (HTML, images, CSS) Yes, ZIP them with index.html at the top
React or TSX component Yes, after Claude makes it one HTML file, or after npm run build
Artifact that asks Claude for answers while it runs No, those calls only work inside Claude
Artifact that saves data in Claude’s own storage No, ask Claude to keep data in the browser instead

Frequently asked questions

Can I host a Claude artifact on my own domain?

Yes. Save the artifact as an index.html file, put it in a ZIP, and upload it with Upload Website → Manually Upload Website in xCloud. Start on a free demo domain, then change the site to your own domain and turn on free SSL.

My artifact is a React component, not HTML. What do I do?

Ask Claude to turn it into one self-contained HTML file with the scripts and styles inside, then upload that file. If you built it as a project with npm, run npm run build and upload the files in the build folder (often dist) instead.

Why does my artifact work in Claude but not on my site?

An artifact that asks Claude for answers or saves data in Claude’s own storage only works inside Claude. On your site those parts have nothing to talk to. Ask Claude for a version that works on its own, for example one that keeps data in the browser.

How do I update the site later?

Upload a new ZIP to a new site, replace index.html over SFTP, or, if Claude is connected to xCloud MCP, ask Claude to change the file on the site for you.

If you run into any issues while publishing your artifact, feel free to reach out to our support team.