Founding-member price: Pro for $4/month, locked in while you stay subscribed. Ends December 1.Founding-member price: Pro for $4/month, locked in. Ends December 1.Founding-member price: Pro $4/mo. Ends Dec 1.See pricing
For AI agents

AI agent Markdown to PDF

Your agent writes a report in Markdown. The user wants it as a PDF. One CLI command bridges the two. No Python script calling Pandoc, no LaTeX install, no headless Chrome dance.

Works with Claude Code, Codex, Cursor and any agent that can run a command.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Gemini CLI
  • Cline
  • Windsurf
  • Warp
  • GitHub Actions

Real PDF exports from Markdown, each with a different preset and logo.See the examples

Most agents are great at writing Markdown. It matches their training distribution and lets them think in structured prose. They're worse at delivering anything other than Markdown. The user asked for a PDF audit report and got a .md file dropped into their repo.

OpenDocs gives the agent a one-line shortcut. Run opendocs publish report.md --export pdf --json and the response is a JSON payload with a hosted URL, a PDF download URL, and metadata. The agent prints the URL, the user clicks, the PDF lands in their downloads folder.

The agent workflow

# Install once
npm install -g @opendocs.cc/cli

# Authenticate (one-time, opens browser)
opendocs login --browser

# Publish, get a shareable URL back
opendocs publish report.md --export pdf --json

With --json, the response is machine-parseable. The agent grabs data.exportUrls.pdf and returns it. No extra dependencies, no document-conversion libraries to install.

Why agents prefer this over Pandoc

Works with

Anything that runs shell commands. We have specific guides for the common ones:

Stop having your agent dump files into your repo.

Free plan publishes up to 50 docs with PDF export included.

Sign up in the browser

Free for up to 50 documents. No credit card.

AI Agent Markdown to PDF: One CLI Command · OpenDocs