Command line¶
Installing the package adds a readanydoc command.
readanydoc parse¶
readanydoc parse FILE [--mode engine|model-only] [--model M] [--effort E] [--model-options JSON]
[--handwriting-model M|none] [--pages 1,2,5] [--citations] [--markdown]
Prints the Reducto-shaped JSON, or the document as Markdown with
--markdown.
readanydoc parse invoice.pdf --markdown
readanydoc parse scan.pdf --mode model-only --model claude-sonnet-5-5
readanydoc parse long.pdf --model-options '{"max_tokens": 32000}'
readanydoc extract¶
readanydoc extract FILE --schema SCHEMA.json [--instructions TEXT] [--extract-model M] [--no-citations]
[--mode ...] [--model ...] [--effort ...] [--pages ...]
SCHEMA.json is a JSON Schema file. Prints the extracted data with citations as JSON.
readanydoc mcp¶
Runs an MCP server on stdio with two tools,
parse_document and extract_fields, for Claude Code, Claude Desktop,
Cursor and other MCP clients. Needs
pip install "readanydoc[engine,mcp]". See MCP.
readanydoc serve¶
Starts the Reducto-compatible server. Configure it with environment variables.
readanydoc cleanup¶
Runs the server's clean-up pass by hand: expired uploads, results and caches.
The star message¶
After the first successful parse or extract in a terminal, the command prints one line asking for a GitHub
star, once ever. It never appears in pipes, scripts, CI, the server, the MCP server or the
Python library. Set
READANYDOC_NO_STAR=1 to turn it off.