publish directly
from Claude Code.
Publish chats, markdown files, prototypes, and documents straight from Claude Code. Get a temporary, shareable link — perfect for quick sharing with your team.
/pub is a publishing primitive for AI agents. It takes any content — markdown, HTML, images, PDFs — and returns a temporary, shareable URL.
Think of it as ngrok for AI artifacts.
You're working with an AI coding agent. It generates a report, a preview, an analysis. You want to share it — paste it into Slack, send it to a colleague, open it on your phone. /pub gives you a link in seconds.
How it works:
┌─────────────┐ POST /v1/publish ┌─────────────┐
│ Claude Code │ ────────────────────▸ │ pub API │
│ (or any │ │ pubthis.co │
│ agent) │ ◂──────────────────── │ │
└─────────────┘ { url, expires_at } └──────┬───────┘
│
GET /a/:id
│
┌──────▾──────┐
│ Browser │
│ (anyone) │
└─────────────┘1. Your agent sends content to the /pub API
2. The API stores it and returns a shareable URL
3. Anyone with the link can view the rendered content
4. The link expires automatically (default: 7 days)
No deploy. No hosting. No setup. Just content → URL.
Supported formats:
text/markdown — reports, docs, specs
text/html — previews, prototypes
text/plain — logs, raw output
image/* — screenshots, diagrams
To publish from Claude Code, just ask: "Share this report as a link" or "Publish this analysis"
Claude calls the API, publishes your content, and hands you back the link. That's it.
I've published your document. Here's the link:
https://pubthis.co/a/01KG7T2B374YN0CGA588R5GRM8
It will expire in 7 days. Anyone with the link can view it.