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.
- Full SQL access via CLI — query anything with
tl query - Structured JSON output — every query returns machine-readable data with
--json - Works with any AI agent — Claude Desktop, Claude Code, Gemini CLI, OpenClaw, and any MCP client
- Zero-latency local access — your agent reads a local DuckDB file, not a remote API
Plugins
Extend Treeline with plugins. Add budgeting, subscription tracking, savings goals, cash flow projections, and more. Or build exactly what you need—the SDK gives you full access to your data.
Budget
Track spending against tag-based budget categories with rollovers.
Emergency Fund
See how long your emergency fund would last based on your actual spending patterns.
Savings Goals
Set savings targets and track your progress toward each goal.
Subscriptions
Automatically detects recurring charges from your transaction history.
Cash Flow
Plan ahead by scheduling expected income and expenses.
Net Worth Tracker
SoonTrack your total net worth over time. See how your assets and liabilities change month to month.
FIRE Calculator
SoonCalculate your path to financial independence based on your actual spending and savings rate.
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 |
|---|---|---|
| Sunday | 47 | $312.84 |
| Monday | 89 | $567.23 |
| Tuesday | 72 | $445.91 |
| Wednesday | 68 | $398.45 |
| Thursday | 81 | $523.67 |
| Friday | 124 | $891.32 |
| Saturday | 95 | $634.18 |
Get treeline
treeline is in beta. Download the app and join Discord to share feedback.