# Sparebank1 Accounts

> Read 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, spending, recent transactions, or wants account/transaction data for analysis.

- **Type:** Skill
- **Install:** `agentstack add skill-magnusrodseth-sparebank1-cli-sparebank1-accounts`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [magnusrodseth](https://agentstack.voostack.com/s/magnusrodseth)
- **Installs:** 0
- **Category:** [Data & Analytics](https://agentstack.voostack.com/c/data-and-analytics)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [magnusrodseth](https://github.com/magnusrodseth)
- **Source:** https://github.com/magnusrodseth/sparebank1-cli/tree/main/skills/sparebank1-accounts

## Install

```sh
agentstack add skill-magnusrodseth-sparebank1-cli-sparebank1-accounts
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# sparebank1-accounts

Read-only workflows for SpareBank 1 accounts and transactions via `sb1`. Read
[sparebank1-shared](../sparebank1-shared/SKILL.md) first for auth and flags.

## Accounts

```bash
sb1 accounts                      # list (name, number, balance, currency, key)
sb1 accounts --all                # also include cards/BSU/ASK/pension/currency
sb1 --json accounts               # machine-readable
```

Individual account (by name, key, or number):

```bash
sb1 account Brukskonto            # summary
sb1 account Brukskonto --details  # extended details (JSON)
sb1 account Brukskonto --roles    # roles (JSON)
sb1 balance 1234.56.78903         # balance via account number (POST /accounts/balance)
```

## Transactions

```bash
# Last 30 days for one account
sb1 transactions -a Brukskonto --days 30

# Explicit range, multiple accounts
sb1 transactions -a Brukskonto -a Sparekonto --from 2026-01-01 --to 2026-03-31

# Useful flags
#   --limit N        cap rows
#   --source RECENT|HISTORIC|ALL
#   --classified     use the classified endpoint (adds categories)
#   --json           machine-readable
#   --csv -o file    write CSV locally
```

Omitting `-a/--account` queries **all** accounts. Dates are `YYYY-MM-DD`.

Single transaction details (id comes from a `transactions` listing):

```bash
sb1 transaction               # details (JSON)
sb1 transaction  --classified
```

## CSV export (server-rendered)

```bash
sb1 export -a Brukskonto --from 2026-05-01 --to 2026-06-16 -o booked.csv
```

`export` returns the bank's native semicolon-delimited CSV (Norwegian headers:
Dato, Beskrivelse, Inn, Ut, …) for **booked** transactions. For programmatic
analysis prefer `transactions --json` or `transactions --csv` instead.

## Financial overview (preferred for "how are my finances")

```bash
sb1 summary --months 6        # net worth, monthly cash flow, categories, subs
sb1 --json summary --months 6 # machine-readable
```

`summary` is generalizable across any account setup: net worth per currency,
income vs spending (internal transfers between the user's own accounts are
excluded), monthly breakdown, spending by **bank-assigned category**, top
counterparties, and bank-flagged subscriptions. Prefer this over hand-rolled
analysis.

## Manual analysis pattern

For bespoke questions ("how much on X last month"):

1. `sb1 --json transactions -a  --from  --to  --classified`
   (add `--source ALL` for older rows). `--classified` adds `category`,
   `recurring`, and `subscription` per transaction.
2. Parse `transactions[]`: `amount` (negative = outgoing), `date` (ISO),
   `description`, `counterpartyName`, `category`.
3. Sum/group in your own logic. Never guess figures the API did not return.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [magnusrodseth](https://github.com/magnusrodseth)
- **Source:** [magnusrodseth/sparebank1-cli](https://github.com/magnusrodseth/sparebank1-cli)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-magnusrodseth-sparebank1-cli-sparebank1-accounts
- Seller: https://agentstack.voostack.com/s/magnusrodseth
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
