Skip to main content
The entire library is available as a command-line tool — search, read, and download manuscript pages without leaving your terminal.

Install

This installs the da-vinci command (the npm package is leonardo-davinci; the command matches this API’s name). One-off use via npx leonardo-davinci needs no install. Requires Node 18.17+.

Interactive mode

Run da-vinci with no command and the terminal becomes the studiolo — a red-chalk workspace with a prompt. Type commands without the da-vinci prefix (random, search flying machine, folio codex-atlanticus 1646 --full), clear to repaint, quit to leave. The session scrolls back like a conversation and stays in your terminal history after you quit. Scripts and pipes are unaffected: non-interactive invocations print plain output.

Commands

Every read command accepts --json for machine-readable output — pipe it to jq, scripts, or agents:

Examples

Rate limits & keys

The CLI uses the same rate limits as the API — anonymous 60/hour. Pass --api-key or set DAVINCI_API_KEY for higher tiers.

Security

Built to be maximally auditable: zero runtime dependencies (one file of Node builtins), no install scripts, no telemetry, HTTPS only to venivididavinci.com origins (downloads included), validated inputs, traversal-safe downloads. Ships exactly four files — verify with npm pack leonardo-davinci --dry-run.

Attribution

Content fetched through the CLI carries the same attribution terms as the API — every folio includes a ready-made attribution string.