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. Useunlistedfor a link you send to one person, andpubliconly 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_artifacttool 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.
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.
curl -fsSL https://anyr.dev/cli.sh | bash
anyr auth login
anyr artifact publish ./my-site --title "Weekend build" --visibility unlisted --json{
"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.
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.
@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.
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 ArtifactsFAQ
Related posts
- AnyRouter + ChatGPT: connect it with an MCP pluginGuidesNovember 22, 2026 · ChatGPT cannot switch its own model provider. Add AnyRouter as a custom MCP plugin instead, then browse models, check credits and publish pages from the chat.
- Introducing AnyRouter Artifacts: publish a page, get a linkProductOctober 26, 2026 · Artifacts turn an HTML page, a Markdown note, a Mermaid diagram or a small folder into a URL at anyrouter.dev/a/<id>. Publish from the anyr CLI, the API or an agent. Every artifact starts private, and you choose when to share it.
- CLI update: multiple accounts, terminal key management, and agents that delegateProductAugust 16, 2026 · The AnyRouter CLI now handles several accounts side by side, manages API keys without the dashboard, runs plan-then-implement pipelines across two models, and lets coding agents hand tasks to each other. One hop, one key.
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.