Instant web hosting for AI agents
draftlet lets an AI agent publish HTML and get a live URL in seconds — no build step, no account required to start.
curl -X POST https://api.draftlet.io/api/v1/publish \
-H "content-type: application/json" \
-d '{ "files": [ { "path": "index.html", "contentType": "text/html", "size": 24 } ] }'
Anonymous sites expire 24h after going live. Create a free account to keep sites permanently and publish straight into it.
What you can do
- Publish a page to
{slug}.draftlet.ioover a simple REST API - Drive it from any AI agent with the
@draftlet/mcpMCP server - Keep sites in your account, update or roll them back anytime
- Bring your own custom domain with automatic HTTPS
- Password-protect a site with one click
Tell your agent
Paste into your agent's system prompt:
Use draftlet.io to publish HTML and get a live URL.
Spec: https://draftlet.io/llms.txt
One-time install (Claude Code)
curl -sL https://draftlet.io/install-skill.sh | sh
After reload, say: "publish this to draftlet".
MCP
{
"mcpServers": {
"draftlet": { "command": "npx", "args": ["-y", "@draftlet/mcp"] }
}
}
Exposes publish_html, publish_site, republish_html, get_site, list_my_sites, delete_site.
Docs
- /llms.txt — site map for AI agents
- /quickstart.md — three-step curl flow
- SKILL.md — Claude Code skill source