A link for what your agent made
Coding agents write a lot of HTML now: a weekly report, a chart, a design note, a diagram of a request flow. Most of it ends up as a file on one laptop. To show it to someone, you had to find a host, set up a deploy and decide who could see it.
Artifacts, now in beta, removes those steps. You publish a file or a small folder to AnyRouter and get a stable URL at https://anyrouter.dev/a/<id>. Publish again and you get a new numbered version at the same URL. Every artifact is private until you change it.
Quick start
Install the anyr CLI and sign in. The artifact command ships in the stable CLI.
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr loginPublish a page. The CLI prints the URL.
anyr artifact publish ./page.html --title "Sales board"The page is private, so only you can open the link. When you want to share it, make it unlisted:
anyr artifact visibility <id> unlistedThe same publish works over HTTP with any AnyRouter API key:
curl -sS https://anyrouter.dev/api/v1/artifacts \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Hello","files":{"index.html":{"content":"<h1>Hi</h1>"}}}'{
"id": "k3Vx9TqLm2Ab7Zcd",
"version": 1,
"url": "https://anyrouter.dev/a/k3Vx9TqLm2Ab7Zcd",
"visibility": "private"
}What you can publish
One file, or a folder with its styles, scripts and images. The entry file's extension decides how the page looks to a viewer.
| Entry | Viewers see |
|---|---|
.html | The page itself |
.md | Formatted text |
.svg | The image (scripts in it do not run) |
.mmd, .mermaid | A Mermaid diagram, drawn in the browser |
.py, .ts, .sql, .go, .rs and other source files | The code with syntax highlighting |
In a folder, index.html opens first. Files such as .js, .css, .json and .csv are never the entry, so a page plus its app.js still opens the page.
Three ways to use it
Let an agent publish its report. An agent that can run shell commands can publish with one call and read the URL from JSON. Ask it to build the page, then run:
anyr artifact publish report.html --jsonAgents that talk to the AnyRouter MCP server can call the publish_artifact tool instead. It takes text files up to 1 MB and needs a management key with the write:artifacts scope.
Share a diagram. A .mmd file becomes a rendered Mermaid diagram. Paste the link in a pull request or a chat thread.
curl -sS https://anyrouter.dev/api/v1/artifacts \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Flow","files":{"flow.mmd":{"content":"graph TD\n A[Request] --> B{Key valid?}\n B -->|yes| C[Route]\n B -->|no| D[401]"}}}'Keep one URL for a page that changes. Publish a folder, then send new versions to the same id. Each version gets a number and an optional label, so people who have the link always see the latest one.
anyr artifact publish ./report
anyr artifact publish ./report --id k3Vx9TqLm2Ab7Zcd --label "fix chart"The CLI skips dotfiles, node_modules and .git when it uploads a folder.
Limits
The limits are:
| Limit | Value |
|---|---|
| Artifacts per account | 100 |
| Stored size per account (current versions) | 200 MB |
| Publishes per hour | 20 |
| One page or source file | 5 MB |
| One image, font or script | 25 MB |
| One version | 200 files, 100 MB |
The CLI uploads up to 50 files and 20 MB in one publish. For larger folders, use the manifest upload in the API.
Try it
The Artifacts API docs cover the folder upload, version conflicts, every error code and the MCP tools. See what other people have published at anyrouter.dev/artifact, and manage your own in Dashboard, Artifacts.
Publish your first page in one command.
Open ArtifactsRelated posts
MCP servers for AI agents: what they are and how to connect one
An MCP server lets an AI agent call a workspace's tools — keys, credits, models, status — over one standard interface instead of custom glue code per service. Here's what MCP is and how to connect AnyRouter's managed MCP server to Claude Desktop, Claude Code, Cursor, or your own agent.
Run coding agents through one gateway
Point Claude Code, Codex, OpenCode, Cursor, or any OpenAI-compatible tool at AnyRouter and get one key for every model, unified billing, per-request audit logs, and app attribution. Two environment variables — or one npx command with the anyr CLI launcher.
CLI update: multiple accounts, terminal key management, and agents that delegate
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.
Route your first request in 2 minutes
Start free with your own keys, or top up and pay per token. Get $4/mo in credits and free models on Go — $2/mo, or free when you donate a provider key.
Start free