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_checkingThe 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 OutReceipt 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
ledger initThis 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:
| Source | Folder | Accepted files |
|---|---|---|
| ING PDF | staging/ing/ | *.pdf |
| ING CSV | staging/ing-csv/ | *.csv |
| PayPal CSV | staging/paypal/ | *.csv |
| Bankwest PDF | staging/bankwest/ | *.pdf |
| Bankwest CSV | staging/bankwest-csv/ | *.csv |
| HSBC PDF | staging/hsbc/ | *.pdf |
| Coles Mastercard PDF | staging/coles/ | *.pdf |
| Amex CSV | staging/amex/ | *.csv |
| Airbnb CSV | staging/airbnb/ | *.csv |
6. Ingest
Preview what will happen without writing to the database:
ledger ingest --dry-runWhen you are happy, run the real ingest:
ledger ingestEach processed file is moved from staging/ to data/archive/ so it will not be re-imported.
The ETL pipeline for each transaction:
- Parse — extract date, description, amount from the source format
- Dedup — SHA-256 hash prevents re-importing the same transaction
- Source-of-truth — payments to credit cards from your bank account are auto-marked as transfers
- Categorise — source rules, then the merchant’s label, then the nearest labelled merchants (or “Uncategorized”)
- Tag — multiple tags applied for sub-classification
- Insert — written to SQLite with full audit trail
7. Start the dashboard
python -m apiOpen 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):
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:
ledger categorise --setupledger categorise --evaluate 2025-07-01 # optional: how well it does on your dataEach 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]", thenledger categorise --llm --dry-runand without--dry-run. This sends the pending rows’ descriptions, dates and amounts to Anthropic. Put your own conventions (“cafés are Coffee”) inconfig/categorising-guide.mdand 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:
ledger categorise --seedledger categorise --rerunFor a large backlog, use ledger categorise --llm or the --export/--import round trip above (see the CLI reference).
Next steps
- Set up business splits for tax deductions
- Understand the source-of-truth system to prevent double-counting
- Learn about all CLI commands
- Browse the API reference