v0.1.0 — early preview

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.

claude code
> What is pub and how do I use it?

/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.

> Publish that as a shareable link

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.

agent-native.
Designed for AI coding agents. Add CLAUDE.md to your project and your agent can publish artifacts with zero setup.
ephemeral.
Links expire automatically. Default TTL is 7 days. No permanent hosting, no cleanup, no forgotten deployments.
any format.
Markdown, HTML, plain text, PDFs, PNG, JPEG, WebP. One endpoint handles all of them.