local binary · mcp · $0 runtime

Markdown in.
File out.

PDF, Word, Excel — in milliseconds, on your machine. Stop renting a frontier model to write reportlab.

without

            
TOKENS 0
with docgen

            
0.0ms

Same prompt. Left is still pip-installing. Right already wrote the file.

the loop

Your agent is not a PDF library.

Ask Claude, Codex, Cursor, or Grok for a report and they do not reach for a compiler. They write a “small” Python script, miss a dependency, retry, and bill you for the whole show. That is not a feature. That is a tax.

0tokens on a “quick PDF”
0until the first crash
0tokens if they just call docgen
$0to run the binary. keep the quota.
Split visual: tokens burning on the left, a single docgen command on the right
Left: tokens on fire. Right: one command.

receipt

Same file. Different invoice.

What happens

Writes Python. Installs the universe. Debugs A4.

Writes Markdown. One call. File exists.

Time

Thirty seconds to several minutes.

Milliseconds to convert. Seconds for the whole turn.

Where it runs

A notebook, a cloud converter, “please upload.”

Your disk. This site never sees the file.

Deps

Python, pip, Chrome, fonts, luck.

One static binary. docgen init-ai wires the agents.

Numbers are typical, not a contract. Fine print.

the compiler

Markdown to PDF. Markdown to Word. JSON to Excel.

A free local document converter for the command line. No upload, no Python, no Chrome. One static binary on your PATH — or an MCP tool the agent can call instead of writing reportlab.

pdf

Markdown to PDF

Skip WeasyPrint, reportlab, and headless Chrome. Write the report in Markdown; the compiler writes a themed PDF on disk.

docgen convert report.md -o report.pdf --theme modern-executive
Markdown → PDF guide

word

Markdown to Word

Headings, lists, tables, and code become a real .docx. No Microsoft Word install required to generate the file.

docgen convert spec.md -o spec.docx --theme tech-spec
Markdown → Word guide

excel

JSON / CSV to Excel

Dump an API response or a metrics CSV into a spreadsheet without standing up pandas and openpyxl.

docgen convert sales.json -o sales.xlsx
JSON → Excel guide

field notes

Things we keep seeing.

“I’ll just write a small script.”It is never small.
Your $20 of fast requests should not die so a table can have the wrong page size.
No upload. This page is a poster. The compiler lives on your PATH.

one shot

Install it. Point the agent at it. Keep the money.

Works as docgen, doc, or docgen-cli. MCP for Claude Code, Codex, Cursor, Grok, OpenCode.

curl -fsSL https://raw.githubusercontent.com/0xkaizoku/docgen-cli/main/install.sh | sh

then docgen init-ai · docgen convert notes.md -o notes.pdf · questions