Skip to content
All posts

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.

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, 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.

A prompt that produces one publishable file
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.

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.

terminal
curl -fsSL https://anyr.dev/cli.sh | bash
anyr auth login
anyr artifact publish ./my-site --title "Weekend build" --visibility unlisted --json
The reply carries the stable id
{
  "id": "k3Vx9TqLm2Ab7Zcd",
  "version": 1,
  "url": "https://anyrouter.dev/a/k3Vx9TqLm2Ab7Zcd",
  "visibility": "unlisted"
}

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

terminal
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. Then ask for the publish in plain language.

Name the tool so the chat does not reach for another app
@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.

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.

VisibilityWho can open itGallerySearch engines
privateOnly youNoNo
unlistedAnyone with the URLNoNo
publicAnyone with the URLYesYes
  • 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 covers the other kinds, including Markdown, Mermaid diagrams, sheets and React components.

Manage your pages in the dashboard.

Open Artifacts

FAQ

Does the link stay the same when I change the page?

Yes. A new publish to the same artifact id adds a numbered version at the same URL. Send `base_version` with the version you built on, or use `--id` with the anyr CLI. A conflict returns 409 so you can merge before retrying.

Do I need a domain or a hosting account?

No. The URL is on anyrouter.dev. You need an AnyRouter account and a key or a signed-in CLI. An unlisted artifact is reachable by anyone with the link and is not listed in the gallery or indexed by search engines.

Can I publish a React site instead of plain HTML?

Yes. A single `.tsx` or `.jsx` entry with a default export renders in the browser. The entry can be up to 256 KB and may import a fixed list of libraries. For a site with images or several files, publish a folder with the REST manifest flow.

Related posts

Pick a plan and start

Go is $2 a month for $4 in credits.

Pro is $10 a month for $20 in credits.

Pro+ is $45 a month for $100 in credits.

Max is $100 a month for $300 in credits.

Create an account, pay on the next screen, then call the model.