treeline

Personal finance you can build on.

An open source finance app and local DuckDB database. For you and your AI agent.

Why I built this →

For your agent

We never see your data — it lives on your machine, which means your AI agent gets direct, unrestricted, instant access to it. No API keys, no rate limits, no latency.

For you

A desktop app for Mac, Windows, and Linux. Connect your bank, tag transactions, track budgets, and see everything in an interface you control.

Download →

Smart transaction management

Tag transactions with a keystroke. Set up rules to categorize automatically. Split transactions, hide duplicates, search across everything.

What you get

  • Open source code you can inspect and audit
  • Your data in a local DuckDB database — we never see it
  • Bank sync via SimpleFIN or Lunch Flow, or CSV import
  • A plugin system for extending functionality
  • Optional database encryption
  • No account required, no subscription

How your agent works

Your agent talks to Treeline through the CLI or MCP server. It runs queries, syncs accounts, tags transactions, and manages budgets — all locally, all instantly.

How much did I spend on groceries last month?
tl query "SELECT SUM(-amount) as total FROM transactions WHERE tags LIKE '%groceries%' AND transaction_date >= '2026-02-01'" --json
{"total": 847.23}
$847.23 — up 12% from January. Your budget was $800. Want me to look at what's driving the increase?

Go deeper

Your data is a standard DuckDB file. Query it from the built-in SQL editor, the terminal, a Jupyter notebook, or any tool that speaks SQL. Or let your AI agent write the queries for you.

SELECT
  dayname(transaction_date) AS day,
  COUNT(*) AS transactions,
  SUM(-amount) AS total_spent
FROM transactions
WHERE amount < 0
GROUP BY dayofweek(transaction_date), day
ORDER BY dayofweek(transaction_date)
day transactions total_spent
Sunday47$312.84
Monday89$567.23
Tuesday72$445.91
Wednesday68$398.45
Thursday81$523.67
Friday124$891.32
Saturday95$634.18

Get treeline

treeline is in beta. Download the app and join Discord to share feedback.

Looking for cloud sync, mobile, or built-in bank sync?