Get started

Quickstart

Give Spendyard a model API key, read a receipt, and see what you pay for.

1. A model API key

Spendyard reads with Anthropic’s Claude by default. Set your key in the environment:

export ANTHROPIC_API_KEY=sk-ant-…

or put it in ~/.spendyard/.env, which Spendyard reads on its own. OpenAI, Gemini and local models work too; see Models and keys.

2. Read a receipt

Any receipt or invoice you have: a PDF, an email saved as .eml, a screenshot.

spendyard read invoice.pdf --pretty

--pretty prints a summary to read. Without it you get JSON, one object per document, for scripts:

spendyard read invoice.pdf
spendyard read ~/Downloads/*.pdf    # one JSON line per document

read exits with 0 when it found a receipt or invoice, 1 when it didn’t, and 2 on errors.

3. See what you pay for

Everything read is kept in ~/.spendyard/spendyard.db, with each original beside it. Once you’ve read a few months of receipts:

spendyard subscriptions            # each recurring vendor: cost a month, seats, card, next renewal
spendyard report --by month        # spend per month
spendyard documents list           # the receipts behind the numbers

Next