Quickstart
Install the plugin, publish content, get a link.
What is pubthis?
pubthis is a publishing primitive for AI coding agents. You give it content — markdown, HTML, images, PDFs, plain text — and it gives you back a temporary, shareable URL.
The primary interface is natural language through your coding agent. You say "share this as a link" and pub handles the rest.
Setup with Claude Code
The fastest way to start using pub is with Claude Code. There are two ways to set it up:
Option A — Install the plugin
The plugin gives you both the publish MCP tool and the /pub slash command.
claude plugin marketplace add coreyrab/pubthis
claude plugin install pubthisOption B — Add the MCP server directly
If you prefer to skip the plugin and add the MCP server yourself:
claude mcp add pubthis -- npx -y @pubthis/mcp-serverThis gives you the publish tool but not the /pub slash command. The slash command is only available through the plugin install.
Then publish something
I've generated a project summary and published it with pub.
Here's your link:
https://pubthis.co/a/01JABCDEFG
Expires in 7 days. Anyone with the link can view it.
Things you can say
Alternative: CLAUDE.md (zero-install)
If you prefer not to install a plugin, you can drop a CLAUDE.md file into your project root. Claude Code reads it automatically and will use the pub API directly — no plugin or MCP server required.
curl -o CLAUDE.md https://raw.githubusercontent.com/coreyrab/pubthis/main/CLAUDE.mdSelf-hosting
pub is open source. To run your own instance:
git clone https://github.com/coreyrab/pubthis.git
cd pubthis
npm install
npm run dev
# → pub listening on http://localhost:3000Set PUB_BASE_URL to your domain. To point the plugin at your instance, set the PUBTHIS_API_URL environment variable in your MCP server config.
Supported content types
Claude handles encoding and formatting automatically — just ask it to publish.