publish.my / For AI agents
Publishing to publish.my — a guide for AI agents
publish.my is static-site hosting where the AI coding agent does the deploy.
There's no CLI to install and no SDK — just a couple of curl calls. This page is the
human-readable companion to the machine guide at llms.txt.
Is there a CLI or SDK to install?
You don't need one. An agent publishes a static site entirely over HTTP: fetch the guide at https://publish.my/llms.txt, pack a tarball, POST it to the deploy API, and read back a live URL. There is no CLI. If you'd like publish.my to be a tool your agent always has, add the optional MCP server.
How do I publish a static site to publish.my?
In your AI coding agent, say:
Paste to your agentPublish this project with https://publish.my
The URL is the trigger. Your agent fetches llms.txt and follows it. Under the hood that's two steps you can also run by hand:
1. Pack the site into a tarball
Pack the folder whose top level contains index.html (for a framework app, build/export
to static first and pack the output folder):
tar -czf /tmp/site.tar.gz -C <folder_with_index_html> .
2. Deploy it (no account needed)
curl -s -X POST https://api.publish.my/v1/deploy \
-F "site=@/tmp/site.tar.gz"
The response includes a project_id, a staged url, a
deploy_secret, and an agent_exchange_token. Show the user the URL and ask
them to open it and confirm their email; the same URL goes live once they click the link. The full
flow — saving breadcrumbs, polling for the API key, updating a live site, reconnecting a lost key —
is documented in llms.txt.
Which AI agents work?
Claude Code, Cursor, Gemini CLI, Codex, and any agent that can run shell
commands. Because deploying is just curl against the public API, nothing has to be
configured — if your assistant can run a terminal command, it can publish to publish.my. Chat apps
without a terminal (claude.ai, ChatGPT) publish through the
remote connector.
Add publish.my as a tool (MCP)
Optional. With the publish.my MCP server installed, "put this online" just works: your agent has
a publish_site tool and doesn't need to be told where to publish. Same service, same free
limits, same ~/.publishmy key and .publish-my.json breadcrumb as the curl
flow. Source: github.com/aizuikmal/publish-my-mcp.
Claude Code
claude mcp add publish-my -- npx -y publish-my
Cursor
Add to Cursor,
or put this in ~/.cursor/mcp.json:
{ "mcpServers": { "publish-my": { "command": "npx", "args": ["-y", "publish-my"] } } }
VS Code
code --add-mcp '{"name":"publish-my","command":"npx","args":["-y","publish-my"]}'
Codex
codex mcp add publish-my -- npx -y publish-my
Claude Desktop, Windsurf, and other MCP clients
Add a stdio server that runs npx -y publish-my (Node 20 or newer).
claude.ai and ChatGPT (remote connector)
Add a custom connector with this URL. You sign in to publish.my once and approve the app; after that, sites the chat publishes go live on your account immediately.
https://api.publish.my/mcp
To disconnect an app, delete its "OAuth: …" key in the console.
What can I publish?
Static sites only: HTML, CSS, JavaScript, images, video, audio, and PDFs. There's
no server-side rendering or backend code (no Next.js/Nuxt/SvelteKit SSR, no PHP, no databases, no API
servers at request time). Build a framework app to static HTML first and publish the output folder —
e.g. next build with output: 'export' → out/,
astro build → dist/, SvelteKit's static adapter → build/.
Limits (free)
500 MB total storage per account, unlimited sites, 50 MB per upload, 50 MB per file, 100k views/month. No account is needed to start; you only add an email to keep a site live.
Updating a site / "publish again"
After the first publish, your agent saves a key and writes a small .publish-my.json
breadcrumb into the project. A later "publish again" redeploys the same project to the same URL in one
step — no email needed. See "Updating a site" in llms.txt.
Machine-readable instructions for agents: https://publish.my/llms.txt. Human docs with examples: publish.my/docs.