5.1K ·GitHub
What is this?
CLI Printing Press is a generator that researches an API (its docs, every competing CLI, MCP server, and skill, or even a website with no public API) and then prints a token-efficient Go CLI, a matching MCP server, and a Claude Code skill for it, built specifically for AI agents to call thousands of times a day.
Is this a single CLI tool or something that builds other CLIs?
It is a generator: each run produces two new binaries for the target API (a `-pp-cli` and a `-pp-mcp`), plus research documents, verification proofs, and a quality score, rather than one fixed tool.
How do I get it running?
The installer runs `go install` for the `cli-printing-press` generator binary, then installs the Printing Press skills into Claude Code via `skills@latest add`. Restart your agent session, then run `/printing-press ` inside Claude Code to start a printing session.
What do I need installed before this works?
You need Go 1.26.6 or newer, Node/npm (for npx), and a skills-supported agent — Claude Code is the tested default, with Codex also supported via `--agent codex`.
Does it require an official OpenAPI spec to work?
No — if an API has no public spec, the press launches a browser, captures traffic, and reverse-engineers the API itself, as it did for ESPN. Quality still hinges on a 'Non-Obvious Insight' step early in generation; if the model can't articulate what the API is secretly useful for, that phase cannot complete.
Who is this built for?
Developers who want agent-ready CLIs and MCP servers for APIs they use with Claude Code or Codex, rather than hand-writing wrappers around every endpoint.
Where does the data from generated CLIs live?
Generated CLIs sync API data into a local SQLite store (with FTS5 full-text search and incremental cursor-based sync), and queries run against that local store rather than hitting the API every time.
What is the 'Non-Obvious Insight' it keeps talking about?
It's a one-sentence reframe of what an API is secretly useful for beyond its stated purpose — e.g. treating Discord as a searchable institutional knowledge base instead of 'a chat app'. Every generated CLI's compound commands grow out of this insight.
What does Codex mode do?
Adding `codex` to a session delegates Phase 3 code-generation tasks to the Codex CLI while Claude still does research, planning, and scoring, cutting Opus token usage by about 60%. If Codex fails three times in a row, it falls back to doing the work locally.
Why does it build both a CLI and an MCP server?
So shell-based agents can call the Cobra CLI and IDE-based agents can call MCP, both sharing the exact same client, local store, and auth logic with zero code duplication.
Can I just use CLIs that are already printed, without generating my own?
Yes — printed CLIs like ESPN, flight-goat, and linear-pp-cli are already installable and listed in the Printing Press Library and at printingpress.dev, organized by category.
What are similar projects?
reverse-api-engineer, openapi-generator, oc, go-swagger, graphql-code-generator, bb-browser, posting, huashu-chrome
Which topics is it in?
code-generator, codegen, openapi3, cli-app, developer-experience, api-client, agent-tools, openapi, graphql, code-generation, offline-first, web-scraping