Skip to content

Getting Started

This guide walks you through your first ingestion and dashboard session after installation.

1. Configure your accounts

Edit config/accounts.yaml to define your bank accounts. At minimum you need one account:

accounts:
- name: "My Checking Account"
source_type: ing
currency: AUD
account_type: checking
file_prefix: my_checking

The file_prefix maps statement filenames to accounts. A file named my_checking_2025-01.pdf will be matched to “My Checking Account”.

See the accounts config guide for credit cards, source-of-truth setup, and more.

2. Configure categories and merchants

Edit config/categories.yaml. The example file has sensible defaults for Australian expenses (groceries, transport, utilities, etc.). List a few merchants you use, written as they appear on a statement:

merchants:
WOOLWORTHS: Groceries
COLES: Groceries
UBER EATS: Eating Out

Receipt numbers, dates, card digits and suburbs are ignored. A merchant you have not listed is filed like the most similar ones you have, and you teach it the rest from the dashboard. See the categories guide.

3. Configure tax (optional)

If you want ATO tax reporting, edit config/tax.yaml with your business details, rental properties, and WFH deductions. See the tax config guide.

4. Initialise the database

Terminal window
ledger init

This creates the SQLite database at data/ledger.db and loads categories and accounts from your config files.

5. Drop in your first statements

Place statement files in the appropriate staging/ subfolder:

SourceFolderAccepted files
ING PDFstaging/ing/*.pdf
ING CSVstaging/ing-csv/*.csv
PayPal CSVstaging/paypal/*.csv
Bankwest PDFstaging/bankwest/*.pdf
Bankwest CSVstaging/bankwest-csv/*.csv
HSBC PDFstaging/hsbc/*.pdf
Coles Mastercard PDFstaging/coles/*.pdf
Amex CSVstaging/amex/*.csv
Airbnb CSVstaging/airbnb/*.csv

6. Ingest

Preview what will happen without writing to the database:

Terminal window
ledger ingest --dry-run

When you are happy, run the real ingest:

Terminal window
ledger ingest

Each processed file is moved from staging/ to data/archive/ so it will not be re-imported.

The ETL pipeline for each transaction:

  1. Parse — extract date, description, amount from the source format
  2. Dedup — SHA-256 hash prevents re-importing the same transaction
  3. Source-of-truth — payments to credit cards from your bank account are auto-marked as transfers
  4. Categorise — source rules, then the merchant’s label, then the nearest labelled merchants (or “Uncategorized”)
  5. Tag — multiple tags applied for sub-classification
  6. Insert — written to SQLite with full audit trail

7. Start the dashboard

Terminal window
python -m api

Open http://localhost:5050 in your browser. You will see:

  • Dashboard — monthly income vs expenses chart, category breakdown, budget tracking
  • Transactions — searchable, filterable list of all transactions
  • Spreadsheet — financial year view with outgoing/incoming/rental tabs
  • Tax — ATO return view with structured sections

8. Categorising: start here

Install the extras for the best results (local embeddings and the sqlite-vec index; without them the categoriser falls back to character n-grams and a NumPy index and still works):

Terminal window
pip install -e ".[vectors]"

Then run the first-time setup. It labels every merchant from the categories already in your ledger (if you have any), indexes the ledger, and tells you what is left and how to measure it:

Terminal window
ledger categorise --setup
ledger categorise --evaluate 2025-07-01 # optional: how well it does on your data

Each new statement is then filed by known merchants first, then by the most similar ones you have filed. What is left over can be filed three ways:

  • Dashboard: suggestion chips on uncategorised rows, and “Merchants to check” for the calls only you can make.
  • Claude API: pip install -e ".[llm]", then ledger categorise --llm --dry-run and without --dry-run. This sends the pending rows’ descriptions, dates and amounts to Anthropic. Put your own conventions (“cafés are Coffee”) in config/categorising-guide.md and they are sent with every batch.
  • Any LLM, by hand: ledger categorise --export pending.json, file it, ledger categorise --import answers.json.

Receipts make the long tail much easier. If you read your email with himalaya, copy config/receipts.yaml.example to config/receipts.yaml and run ledger receipts. It matches purchases to their email receipts (PayPal by transaction id, everything else by sender and exact amount) and keeps what was bought, which then goes with each row to --export and --llm. A $30 Amazon charge is filed as the tyre inflator it was.

9. Fix uncategorized transactions

In the Transactions view, filter by category “Uncategorized”. Each row shows suggestion chips from the most similar merchants you have filed; click one, or change the category yourself. Either way the merchant is labelled, so its later transactions are filed the same way, and the dashboard offers to move its other rows too.

If you already have a categorised ledger, label every merchant in it once, then recategorise the rows you have not confirmed:

Terminal window
ledger categorise --seed
ledger categorise --rerun

For a large backlog, use ledger categorise --llm or the --export/--import round trip above (see the CLI reference).

Next steps