# Publish a ChatGPT-built website with AnyRouter Artifacts

> ChatGPT writes the HTML; AnyRouter Artifacts hosts it at a stable URL. Publish from chat with MCP or from a terminal with anyr. Start private, share when ready.

- Date: November 22, 2026
- Category: guides
- HTML: https://anyrouter.dev/blog/publish-chatgpt-website-artifacts

## From a prompt to a URL

Ask ChatGPT to write one self-contained `index.html`. Save that file in a folder, publish the folder with the anyr CLI, and copy the URL it prints. The page is private until you change its visibility.

- The link has the shape `https://anyrouter.dev/a/<id>`. It stays the same across versions.
- Every artifact starts `private`. Use `unlisted` for a link you send to one person, and `public` only when you want the gallery and search engines to see it.
- An account can hold 100 artifacts and 200 MB in current versions, with 20 publishes per hour.
- A folder publish accepts up to 50 files and 20 MB in the CLI. A single inline REST publish accepts 10 MB. The MCP `publish_artifact` tool takes 1 MB of text.
- An account can make artifacts public 24 hours after sign-up, up to 5 a day. These limits and the file types are in the [Artifacts API reference](https://anyrouter.dev/docs/api-reference/artifacts), read on 22 November 2026.

## Ask for a file that can actually render

An artifact page runs in a sandboxed frame. It can load the other files in its own version, but it cannot call other URLs. A page that depends on a CDN script or a remote font will look broken.

```text
Write a single self-contained index.html for a small project dashboard.
Put all CSS in a style tag and all JavaScript in a script tag.
Use inline SVG for icons. Do not load fonts, images or scripts from other URLs.
Use system fonts. Return only the file contents.
```

_A prompt that produces one publishable file._

If the answer includes several files, save each one in the same folder. An `index.html` entry opens first. If the folder has two candidate entries, set `entry_path` to the file you want.

## Publish from the terminal

Install the CLI, sign in, and publish the folder. The CLI prints the URL and the version number.

```bash
curl -fsSL https://anyr.dev/cli.sh | bash
anyr auth login
anyr artifact publish ./my-site --title "Weekend build" --visibility unlisted --json
```

```json
{
  "id": "k3Vx9TqLm2Ab7Zcd",
  "version": 1,
  "url": "https://anyrouter.dev/a/k3Vx9TqLm2Ab7Zcd",
  "visibility": "unlisted"
}
```

_The reply carries the stable id._

To replace the page later, send the new folder to the same id. Readers who already have the link see the newest version.

```bash
anyr artifact publish ./my-site --id k3Vx9TqLm2Ab7Zcd --label "fix hero"
```

The CLI skips dotfiles and `node_modules` in a folder publish. A single file is uploaded as UTF-8 text, so put binary images in a folder.

## Publish from ChatGPT with MCP

If ChatGPT has the AnyRouter plugin installed with the Standard bundle, it can call `publish_artifact` without a terminal. The tool takes a map of paths to text content, so it suits one HTML file or a small CSS pair.

Start with the [ChatGPT connector guide](https://anyrouter.dev/blog/anyrouter-chatgpt). Then ask for the publish in plain language.

```text
@AnyRouter Use publish_artifact with title "Weekend build" and visibility unlisted.
Files: index.html set to the complete HTML you just wrote.
Return the URL from the reply.
```

_Name the tool so the chat does not reach for another app._

The tool has a 1 MB text limit and cannot carry images. For a site with binary assets, use the REST folder flow. It sends a manifest with sizes and SHA-256 hashes, then uploads the missing files and commits.



## Share, check and clean up

Visibility is a PATCH away. The dashboard has the same controls under Artifacts.

| Visibility | Who can open it | Gallery | Search engines |
| --- | --- | --- | --- |
| `private` | Only you | No | No |
| `unlisted` | Anyone with the URL | No | No |
| `public` | Anyone with the URL | Yes | Yes |

- Your name stays off the page unless you set `show_author`. Email is never shown.
- The owner view reports daily views and visitors without storing an IP address.
- A private id answers 404 to everyone else, so the id is not a discovery path.
- Deleting an artifact stops its URL immediately. Do it only when you mean to.

A failed publish is usually one of four cases. `entry_ambiguous` means set `entry_path`. `413` means the inline body is too large, so use a folder. `403 account_too_new` means use `unlisted` for now. A blank page usually means the HTML called an external URL that the sandbox blocks.

## What to do next

Publish one page, send the link to one person, then publish a second version to the same id. That is the whole loop. The [Artifacts announcement](https://anyrouter.dev/blog/introducing-anyrouter-artifacts) covers the other kinds, including Markdown, Mermaid diagrams, sheets and React components.

Manage your pages in the dashboard.

[Open Artifacts](https://anyrouter.dev/dashboard/artifacts)
