$npx -y skills add magnusrodseth/sparebank1-cli --skill sparebank1-accountsRead accounts, balances, and transactions with the sb1 CLI (SpareBank 1). List accounts and totals, look up balances, browse and filter transactions by date/account, inspect a single transaction, and export to CSV. Use when a user wants to see their Norwegian bank balances, spe
| 1 | # sparebank1-accounts |
| 2 | |
| 3 | Read-only workflows for SpareBank 1 accounts and transactions via `sb1`. Read |
| 4 | [sparebank1-shared](../sparebank1-shared/SKILL.md) first for auth and flags. |
| 5 | |
| 6 | ## Accounts |
| 7 | |
| 8 | ```bash |
| 9 | sb1 accounts # list (name, number, balance, currency, key) |
| 10 | sb1 accounts --all # also include cards/BSU/ASK/pension/currency |
| 11 | sb1 --json accounts # machine-readable |
| 12 | ``` |
| 13 | |
| 14 | Individual account (by name, key, or number): |
| 15 | |
| 16 | ```bash |
| 17 | sb1 account Brukskonto # summary |
| 18 | sb1 account Brukskonto --details # extended details (JSON) |
| 19 | sb1 account Brukskonto --roles # roles (JSON) |
| 20 | sb1 balance 1234.56.78903 # balance via account number (POST /accounts/balance) |
| 21 | ``` |
| 22 | |
| 23 | ## Transactions |
| 24 | |
| 25 | ```bash |
| 26 | # Last 30 days for one account |
| 27 | sb1 transactions -a Brukskonto --days 30 |
| 28 | |
| 29 | # Explicit range, multiple accounts |
| 30 | sb1 transactions -a Brukskonto -a Sparekonto --from 2026-01-01 --to 2026-03-31 |
| 31 | |
| 32 | # Useful flags |
| 33 | # --limit N cap rows |
| 34 | # --source RECENT|HISTORIC|ALL |
| 35 | # --classified use the classified endpoint (adds categories) |
| 36 | # --json machine-readable |
| 37 | # --csv -o file write CSV locally |
| 38 | ``` |
| 39 | |
| 40 | Omitting `-a/--account` queries **all** accounts. Dates are `YYYY-MM-DD`. |
| 41 | |
| 42 | Single transaction details (id comes from a `transactions` listing): |
| 43 | |
| 44 | ```bash |
| 45 | sb1 transaction <id> # details (JSON) |
| 46 | sb1 transaction <id> --classified |
| 47 | ``` |
| 48 | |
| 49 | ## CSV export (server-rendered) |
| 50 | |
| 51 | ```bash |
| 52 | sb1 export -a Brukskonto --from 2026-05-01 --to 2026-06-16 -o booked.csv |
| 53 | ``` |
| 54 | |
| 55 | `export` returns the bank's native semicolon-delimited CSV (Norwegian headers: |
| 56 | Dato, Beskrivelse, Inn, Ut, …) for **booked** transactions. For programmatic |
| 57 | analysis prefer `transactions --json` or `transactions --csv` instead. |
| 58 | |
| 59 | ## Financial overview (preferred for "how are my finances") |
| 60 | |
| 61 | ```bash |
| 62 | sb1 summary --months 6 # net worth, monthly cash flow, categories, subs |
| 63 | sb1 --json summary --months 6 # machine-readable |
| 64 | ``` |
| 65 | |
| 66 | `summary` is generalizable across any account setup: net worth per currency, |
| 67 | income vs spending (internal transfers between the user's own accounts are |
| 68 | excluded), monthly breakdown, spending by **bank-assigned category**, top |
| 69 | counterparties, and bank-flagged subscriptions. Prefer this over hand-rolled |
| 70 | analysis. |
| 71 | |
| 72 | ## Manual analysis pattern |
| 73 | |
| 74 | For bespoke questions ("how much on X last month"): |
| 75 | |
| 76 | 1. `sb1 --json transactions -a <account> --from <start> --to <end> --classified` |
| 77 | (add `--source ALL` for older rows). `--classified` adds `category`, |
| 78 | `recurring`, and `subscription` per transaction. |
| 79 | 2. Parse `transactions[]`: `amount` (negative = outgoing), `date` (ISO), |
| 80 | `description`, `counterpartyName`, `category`. |
| 81 | 3. Sum/group in your own logic. Never guess figures the API did not return. |