Reference

Commands

Every spendyard command and its options. Each prints JSON with --json, or by default where the output is for scripts.

spendyard <command> --help shows the same, for the version you have.

Reading

Command
spendyard read <files>… Read documents: emails (.eml, .msg), PDFs, images, HTML, text, statements. - reads standard input. Exits 0 when a receipt or invoice was found, 1 when none was, 2 on errors
spendyard parts <file> What’s in a document: the body, attachments, forwarded emails. No model calls. --text prints each part’s text

read takes:

Option
-e, --extractor <provider[/model]> anthropic, openai, gemini or openai-compatible. Default: the config, then anthropic
-d, --decider <provider> The cheap first model: clef-flash, clef, jev, systemone or none. Default: the config, then none
--pretty A summary to read, in place of JSON
--jsonl One JSON object per line; the default for several files
--concurrency <n> How many to read at once. Default 4
--no-store Keep nothing in ~/.spendyard

Mailboxes

Command
spendyard mailbox login outlook Sign in with a code in the browser. --client-id, --tenant
spendyard mailbox login imap <address> Sign in with an app password. --server host:port, --username
spendyard mailbox scan <outlook|imap> Read the receipts since the last scan. See Scan a mailbox for its options
spendyard mailbox list The signed-in mailboxes
spendyard mailbox logout <provider> Sign out and delete its token

The store

Command
spendyard subscriptions Recurring vendors: cost a month, interval, seats, card, next renewal, whether the last payment went through. --all, --currency
spendyard report Spend per vendor or month. --by vendor|month, --months 12, --currency
spendyard payments Every payment once, with its receipts and statement lines. --missing, --vendor, --limit; --all adds those marked personal or not spend
spendyard transactions list Card payments from statements, with the receipt each matched. --missing, --card, --month
spendyard transactions match Match statements’ payments to receipts again
spendyard documents list The documents, newest first. --vendor, --since, --limit, --all
spendyard documents get <id> One whole: where it came from, what was read, corrections, payments
spendyard documents edit <id> Correct one: --personal, --ignore, --restore, --vendor, --note
spendyard store info Where the store is, its version and size, what it holds, each mailbox’s last scan, and what the next cloud push would send. --json
spendyard store backup [path] The store, its originals and what was pushed, in one .tar.gz
spendyard store upgrade Bring a store an older spendyard made up to this one, keeping every reading and correction. Backs it up first
spendyard store wipe Delete the store, its originals and what was pushed, after asking. --backup, --yes

A newer spendyard won’t open a store an older one made. spendyard store upgrade brings it up to date. Before it does, it backs the store up to ~/.spendyard/backups/.

Vendors

Command
spendyard vendors lookup <name> Find a vendor by name, domain or email address
spendyard vendors list The catalog, or one category of it
spendyard vendors unknown Vendors on your receipts the catalog lacks
spendyard vendors add <domain> --name <name> Add one, as a file in ~/.spendyard/vendors/

Spendyard Cloud

Command
spendyard cloud login Sign this machine in. --server, --no-browser
spendyard cloud status Who it’s signed in as, and the organisation it acts in
spendyard cloud switch [slug] Act in another organisation
spendyard cloud push Send what’s new or changed since the last push, originals included, showing how far it’s got. --dry-run
spendyard cloud pull Bring corrections made in the cloud. --dry-run
spendyard cloud documents list|get|upload The company’s documents; upload --wait reads files in the cloud
spendyard cloud subscriptions|payments|vendors The company’s, as the cloud works them out; --all adds those marked personal or not spend
spendyard cloud logout Sign this machine out

The Cloud API

Command
spendyard api list [text] The API’s methods, with the permission each takes. --service, --reads, --writes, --streams. Needs no sign-in
spendyard api describe <method> What a method does, and its request and answer field by field. Needs no sign-in
spendyard api call <method> [json | -] Call a method as this machine, with a JSON request checked against the contract first; a stream prints each message until Ctrl-C. See Cloud API

Agents

Command
spendyard mcp An MCP server over stdio. -e, -d. See Agents and MCP

Eval

Measure models on documents whose answers you’ve checked.

Command
spendyard eval label <dir> Draft an expected answer for each document with a careful model, for you to review
spendyard eval run <dir> Score model combinations: accuracy per field, routing, flags, cost and time. -d none,clef-flash, -e, --wrong
spendyard eval decide <files>… Ask only the first model what documents are

Settings

Command
spendyard config Where the config lives, the models in effect and which keys are set
spendyard config init Write a commented starter ~/.spendyard/config.toml