Command line
Turn a PDF into faithful, structured JSON.
pydelity [OPTIONS] [pdf]Argument and options
Section titled “Argument and options”pdf: The PDF to process. Overrides pdf in the config file.--config,-cFILE: A JSON or YAML file of settings.--instructions,-iTEXT: Extra instructions for the model about this PDF.--language,-lTAG: A language of the PDF as a BCP-47 tag, such as en; repeat for more.--output-dir,-dDIR: The output folder. Default:pydelity-output/<PDF name>.--model,-mMODEL: The model, as <provider>:<model-id> with provider anthropic or openai. Default:anthropic:claude-opus-5-5.--max-cost,-mcUSD: The most the output folder’s model requests may cost, in US dollars.--overwrite,-o: Redo steps whose outputs could be reused.--yes,-y: Go ahead without asking, even over max_cost (after its warning).--verbose,-v: Also show progress and details, such as the settings in use.--version,-V: Show the version and exit.-h,--help: Show the options and exit.
Exit codes
Section titled “Exit codes”0: The run completed, with or without review issues.1: The run failed: a provider error, a survey error or an unexpected error.2: A setting, the API key or the PDF is invalid.3: The run stopped at the user’s answer, or because input is not a terminal and--yeswas not given.130: The run was interrupted with Ctrl+C.