Skip to main content
Glama
Tidysum

Tidysum

Official
README.md
<p align="center">
  <img src="docs/assets/logo.svg" width="88" height="88" alt="Tidysum logo">
</p>

<h1 align="center">Tidysum</h1>

<p align="center">
  <strong>The wealth manager's playbook, without the wealth manager's fee.</strong><br>
  Tidysum connects all your accounts, finds where your money is costing you and how much a year,<br>
  and has your own AI agent carry out the fixes you approve. You only step in to sign in or press Submit.
</p>

<p align="center">
  <strong>Bring your own AI.</strong> Tidysum has no model inside and works with any agent that speaks
  <a href="https://modelcontextprotocol.io">MCP</a>,<br>
  running whichever model you choose: Claude, ChatGPT/Codex, Gemini, or one on your own machine.
</p>

<p align="center">
  <a href="https://lucidity-finance.github.io/tidysum/demo/"><strong>Live demo</strong></a> ·
  <a href="#why-tidysum">Why</a> ·
  <a href="#install">Install</a> ·
  <a href="#quick-start">Quick start</a> ·
  <a href="#how-it-works">How it works</a> ·
  <a href="docs/guide.md">Guide</a> ·
  <a href="DISCLAIMER.md">Disclaimer</a> ·
  <a href="LICENSE">MIT License</a>
</p>

<p align="center">
  <a href="https://lucidity-finance.github.io/tidysum/#video">
    <img src="docs/assets/tidysum-video.gif" width="860" alt="A short tour of Tidysum: findings priced in dollars a year, approving a move, then cash, cards, investing and money styles">
  </a>
  <br>
  <sub><a href="https://lucidity-finance.github.io/tidysum/#video"><strong>Watch the 78-second video with sound</strong></a></sub>
  <br><br>
  <a href="https://lucidity-finance.github.io/tidysum/demo/">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="docs/assets/screenshot-actions-dark.png">
      <img src="docs/assets/screenshot-actions.png" width="860" alt="Tidysum's Actions page: 'You could keep about $2,800 more each year', with the next change to approve and a queue of the rest">
    </picture>
  </a>
  <br>
  <sub>The demo household: A made-up person at real banks (Chase, Citi, Vanguard, Fidelity), with their public rates and fees as of November 2026. Tidysum isn't affiliated with any institution named. <a href="https://lucidity-finance.github.io/tidysum/demo/">Click through it live</a>.</sub>
</p>

---

> [!IMPORTANT]
> Tidysum is software you run yourself. It is not a financial adviser or a registered investment
> adviser, and nothing it shows or drafts is financial, tax or legal advice. You approve every
> action, your own AI agent carries it out, and you are responsible for both. Read the
> [disclaimer](DISCLAIMER.md) before you use it.

## Why Tidysum

Most people would rather not think about their money. The usual way out is to hire a financial
adviser or wealth manager, and most of them charge a percentage of everything you have, every
year: a median of about **1% on the first $1 million**, and more on smaller accounts
([Kitces Research, via SmartAsset](https://smartasset.com/financial-advisor/financial-advisor-cost)).
That sounds small. Compounded, it isn't:

| You start with | After 30 years, a 1% yearly fee has cost you |
| -------------- | -------------------------------------------- |
| $250,000       | about $351,000                               |
| $500,000       | about $701,000                               |
| $1,000,000     | about $1.4 million                           |

That is about a quarter of what you'd otherwise end up with. (6% a year before fees, the same
0.05% index funds either way, no new savings. The working, other fee models and sources are in
[What advice costs](docs/what-advice-costs.md).)

Much of what you'd pay for is a well-known playbook that most advisers share, because it works:
a broad, low-cost index-fund mix, an emergency fund, the full employer match, cash that earns a
real rate, the right card for how you spend. Tidysum runs that playbook for you with software and
the AI agent you already use, and shows its working in dollars. It suggests things like:

- _"Send your paycheck to a high-yield savings account instead of checking that pays 0%: about
  $1,100 a year more in interest."_
- _"With what you spend on groceries and dining, this card earns about $310 a year more than the
  one you use."_
- _"$18,000 is sitting above your cash cushion. Put it into your index-fund mix, here's the split."_
- _"Your 401(k) fund charges 0.65%. The plan's own index funds copy it for 0.04%."_

<sub>Illustrative examples. Real findings use your accounts, your rules and published rates.</sub>

Tidysum is for people who **don't want investing to be a second job**: who'd like their money looked
after the way a good adviser would, without watching markets, reading fund fact sheets, logging
in to six websites or handing over a percentage. It does the noticing, the arithmetic and, with
your agent, the legwork. You make the calls.

- **Everything in one place.** Connect your banks, cards, brokerages and retirement plans with a
  free Plaid account, or import a CSV. Your data stays in a Postgres database on your own computer.
- **Every finding has a price.** Not "your allocation drifted" but "this costs you $240 a year,
  and here is the fix".
- **One decision at a time.** Fixes arrive as plain action cards. Approve one, skip one, reorder
  them, or schedule one for a later date.
- **Your agent does the legwork.** Bring the AI agent you already use, with any model: Claude
  Code, Codex, Gemini CLI, Cursor or any other MCP client. Once you approve an action, it does the
  work in your browser, on the institution's own website: filling in the account application,
  moving the direct deposit, changing your 401(k) contribution, or preparing the trades that
  invest idle cash in your index funds or rebalance your 401(k). It takes each one as far as the final review screen and hands back to you
  only for what has to be you: signing in, a code, an identity check, and pressing **Submit**.
- **No percentage.** Tidysum is free, open-source software that runs on your computer. It takes no
  fee on your assets and no referral money from anyone it recommends.
- **Calm by design.** New money does the rebalancing, so nothing you own gets sold to chase a
  target. Moves that would take money out of the market wait for calm markets.

## What it looks for

| Area                    | What Tidysum checks                                                                    |
| ----------------------- | -------------------------------------------------------------------------------------- |
| Cash                    | Cash above your buffer earning less than the best account you'd qualify for            |
| Idle cash, looking back | What that cash has already cost you, day by day, over up to two years                  |
| Credit cards            | Which card to use per spending category, cards missing from your wallet, foreign fees  |
| Card statements         | Statement balances that would cost interest if not paid in full by the due date        |
| Debt                    | Spare cash that would save more paying down the highest-APR debt                       |
| 401(k) contributions    | Missed match, room under the yearly limit, reaching the limit before the last paycheck |
| 401(k) funds            | Expensive funds that the plan's own index funds can copy exactly, sleeve by sleeve     |
| Brokerage windows       | Money in a plan's self-directed window that would be simpler and cheaper back inside   |
| IRAs                    | Unused Roth IRA room, including the backdoor Roth when income is over the limit        |
| Brokerage & IRA funds   | Funds that cost more than another fund holding the same index, with the tax on selling |
| Brokerage cash          | Cash left uninvested, against what a Treasury bill fund pays                           |
| Investments             | Where each new dollar should go to reach your target mix, and what drifting costs      |

Investment checks are off by default and only run for a user with investing turned on.

## How it works

Every feature is one step of a single loop ([decision 0003](docs/decisions/0003-misallocation-loop.md)):

<p align="center">
  <img src="docs/assets/how-it-works.svg" width="860" alt="One loop: Tidysum finds, prices and proposes; you approve, one at a time; your own AI agent acts in your browser; the next sync verifies the result, and the loop repeats every sync">
</p>

Tidysum itself is plain, deterministic code: the sync, the detectors, the math, your policy, the
approval gate and an append-only audit log. It has **no AI of its own**. The intelligence comes
from the agent you bring ([decision 0005](docs/decisions/0005-actions.md)):

| Tidysum does                                          | Your agent does                                        |
| ----------------------------------------------------- | ------------------------------------------------------ |
| Syncs accounts and keeps the numbers exact            | Talks ideas through with you                           |
| Finds misallocations and prices them per year         | Reads your data through Tidysum's read-only MCP tools  |
| Checks every proposal against your hard limits        | Suggests fixes as proposals                            |
| Shows you one action at a time, and records your call | Carries out approved actions in your browser           |
| Confirms the result with the next sync                | Hands sign-ins, codes and the final Submit back to you |

### Built to be safe with your money

- **Nothing moves without your approval.** Agents can read and propose; only you approve, on
  Tidysum's own Actions page. There is no approve tool an agent could call. On a trade, your
  agent stops at the review screen and you press Submit yourself.
- **Agents can't see your secrets.** Agent queries run as a read-only Postgres role with
  row-level security. Plaid tokens are encrypted at rest and that role is never granted them.
- **Money is never a float.** Amounts are decimal strings in code and `numeric` in Postgres.
- **Everything is recorded.** Every proposal, approval and agent step is an append-only audit
  event, with the exact data it was checked against.
- **Bank text is data, never instructions.** Account and merchant names are marked untrusted for
  every agent that reads them.
- **No referral money.** Products are ranked only by what they'd gain you, from published terms.
  Rates come from each provider's own page, which your agent re-checks when they're a month old,
  and from US government data (SEC fund fees, CFPB card terms, Treasury yields) that Tidysum
  fetches by itself ([where the numbers come from](docs/guide.md#where-the-numbers-come-from)).
  Tidysum has no affiliate links and no payout fields.
- **Local first.** It runs on your computer, and by default the admin page listens only on
  loopback.

## Quick start

### Install

On a Mac or Linux (on Windows, inside WSL), in a terminal:

```sh
curl -fsSL https://lucidity-finance.github.io/tidysum/install.sh | sh
```

That's the whole install: no Node, Docker or database to set up first, and no sudo. It puts
Tidysum, its own Node.js and its own PostgreSQL in `~/.tidysum`, adds the `tidysum` command, starts
Tidysum in the background (and at every login) and opens it at http://127.0.0.1:8080. You can
[read the script](install.sh) before you run it. `tidysum upgrade` updates it, and
`tidysum uninstall` removes it and keeps your data
([why it works this way](docs/decisions/0012-one-step-install.md)).

### Try the demo first

See it working on a made-up household before you connect anything: no Plaid account, no keys.
The person is invented; their banks, cards, funds and rates are real.

```sh
tidysum demo                          # then open http://127.0.0.1:8090
```

It runs the real sync, detectors and pages on two years of ordinary life at real institutions
(checking and savings at Chase, a Citi card, a Vanguard brokerage account, a 401(k) at Fidelity),
with their real public rates, fees and funds, in a throwaway database of its own that never touches your real data. It also
prints an MCP address and token, so you can point your own agent at the demo and ask it what the
household's money is costing.

### Connect your own accounts

Tidysum connects to your banks, cards, brokerages and retirement plans through
[Plaid](https://plaid.com). **Anyone can make a free Plaid account**, and its free Trial plan
connects up to 10 real institutions with no company and no cost. That is the whole setup: install
Tidysum, make the Plaid account, paste two keys, and sign in to your banks.

**No Plaid account? Use SimpleFIN Bridge.** If you'd rather not sign up for Plaid, or Plaid won't
give you access, connect your banks at [SimpleFIN Bridge](https://bridge.simplefin.org) (about $15
a year, paid to them), make a setup token there and paste it on Tidysum's **Connections** page.
Nothing goes in `.env`, so it works straight after the install
([SimpleFIN Bridge](docs/connect-your-accounts.md#without-plaid-simplefin-bridge)).

### The easy way: ask your agent

Your AI agent can do nearly all of it. In [Claude Code](https://claude.com/claude-code) (with
[Claude in Chrome](https://claude.com/chrome) for the browser steps), or any agent that can run
commands and use a browser, paste:

```text
Set up Tidysum for me: follow
https://github.com/lucidity-finance/tidysum/blob/main/docs/connect-your-accounts.md
and connect my accounts. Stop and hand over to me whenever a step needs my password,
a code, my identity or my agreement to terms.
```

It installs Tidysum, opens Plaid's sign-up for you, puts your keys in place, restarts Tidysum and
opens the page where you link your banks. You only step in for what is yours: your Plaid password
and codes, Plaid's identity check and terms, and signing in to each bank inside Plaid's window.
Your bank passwords never pass through your agent or Tidysum.

### By hand

1. **Make a free Plaid account** at [dashboard.plaid.com/signup](https://dashboard.plaid.com/signup)
   and choose **Personal use**. New U.S. and Canadian accounts start on the Trial plan, with real
   data included.
2. **Fill in `~/.tidysum/.env`:** from **Developers → Keys** in the Plaid dashboard,
   `PLAID_CLIENT_ID` and the Production secret as `PLAID_SECRET`, and set `PLAID_ENV=production`.
   The installer already put a fresh `TIDYSUM_TOKEN_KEY` there. Keep a copy of it somewhere safe:
   losing it means linking every account again.
3. **Restart Tidysum:** `tidysum restart`.
4. **Connect your accounts:** on the **Connections** page, click **Link institutions** and sign in
   to each bank, card and brokerage in Plaid's window. Tidysum syncs two years of history right
   away, then every six hours.

**Outside the US?** Canada works with the same free Plaid account: run
`tidysum user country CA` before you link, and amounts, banks and funds follow. In the UK and
EU, Plaid's free plan can't reach your banks, so Tidysum connects them through Enable Banking's
free mode for your own accounts instead
([UK and EU banks](docs/connect-your-accounts.md#uk-and-eu-banks)).

[Connect your accounts](docs/connect-your-accounts.md) explains every step, what counts toward the
10 free connections, and how to try it first with Plaid's test bank. Institutions Plaid can't reach
can come in through SimpleFIN Bridge, or as CSV (`tidysum import-csv`).

**Working on Tidysum itself?** Clone the repository, `pnpm install` (Node 22.19 or newer and
[pnpm](https://pnpm.io)), `cp .env.example .env`, and run any command as `pnpm tidysum <command>`;
it runs its own database there too, or uses Docker's with `docker compose up -d` and `DATABASE_URL`.
On a Mac, `deploy/macos-setup.sh` keeps a checkout running in the background
([guide](docs/guide.md#running-on-your-mac-from-a-checkout)).

### Connect your agent

With Claude Code, run this once, in your own terminal (the installer offers to when it finds
Claude Code):

```sh
tidysum agent setup                   # --dry-run shows what it would change
```

It registers Tidysum's MCP server, links the [tidysum-actions skill](skills/tidysum-actions/SKILL.md)
(the workflow and rules your agent follows), and allows Tidysum's tools so your agent isn't stopped
at every step. None of that lets it move money: approvals stay with you.

Then ask it things like _"What is my money costing me?"_ or _"Carry out my approved Tidysum
actions."_ For browser steps, give it a browser tool such as Claude in Chrome.

Tidysum doesn't care which agent or model you use. Any other MCP client works the same way: run
`tidysum mcp` as a stdio server, or set `TIDYSUM_MCP_TOKEN` and use the Streamable HTTP endpoint
at `/mcp`. Give it [skills/tidysum-actions/SKILL.md](skills/tidysum-actions/SKILL.md) as
instructions, the way you would any agent rules file.

### Make it yours

The quickest start is a **money style**: a well-known way of running money that fills in your
rules for you. Pick one on the Plan page, or with `tidysum policy style <id>`:

| Style            | Known from                                        | In short                                                    |
| ---------------- | ------------------------------------------------- | ----------------------------------------------------------- |
| Adviser standard | most advisers and target-date funds               | Stocks by age (90% until 40, 50% at 65), 3 months of cash   |
| Debt-free first  | Dave Ramsey                                       | $1,000 cushion, smallest debt first, no cards, 75/25 stocks |
| Index and chill  | Jack Bogle, the Bogleheads                        | Three index funds, your age in bonds                        |
| Early retirement | the FIRE movement, Mr. Money Mustache, JL Collins | 1 month of cash, 100% US stock index                        |
| All weather      | Ray Dalio, as popularized by Tony Robbins         | 30% stocks, 55% Treasuries, 7.5% gold, 7.5% commodities     |
| Safety first     | Suze Orman                                        | 8 months of cash, no card debt                              |

Tidysum isn't affiliated with or endorsed by any of these people. A style only fills in your
policy, so you can change any rule afterwards; `tidysum policy styles` shows what each would
change, and [decision 0009](docs/decisions/0009-money-styles.md) how each one is applied.

Or write your rules yourself. Tidysum works from three files you write and keep out of git:

| File             | What it holds                                                     | Start from                                         |
| ---------------- | ----------------------------------------------------------------- | -------------------------------------------------- |
| `policy.json`    | Your hard rules: cash buffer, target mix, caps                    | [`policy.example.json`](policy.example.json)       |
| `plan.md`        | Your plan in words: goals, where each dollar goes, rules you keep | [`docs/plan.example.md`](docs/plan.example.md)     |
| `workplace.json` | Your 401(k) as its website shows it: pay, elections, fund lineup  | [`workplace.example.json`](workplace.example.json) |

Load them with `tidysum policy set policy.json`, `tidysum plan set plan.md` and
`tidysum workplace set <account_id> workplace.json`. Your agent reads the plan before it
suggests anything and keeps its suggestions inside it.

## Status

Tidysum syncs, finds, prices, proposes and records approvals today. Your agent carries out approved
actions in your browser: opening accounts, moving a direct deposit, changing 401(k) contributions,
and trades, such as investing idle cash in your index funds at your brokerage or rebalancing your
401(k). It prepares each order up to the broker's or plan's review screen, and you press Submit.
**Nothing in this repository can move money on its own**, and placing trades from Tidysum itself,
through a broker's API (Phase 4), is not built.

| Phase | What                                                         | State                |
| ----- | ------------------------------------------------------------ | -------------------- |
| 0     | Setup, Plaid Sandbox sync, Robinhood MCP spike               | done (spike pending) |
| 1     | Real accounts, scheduled sync, webhooks, CSV import          | done                 |
| 2     | Read-only MCP server for agents                              | done                 |
| 3     | Policy, findings, proposals and approvals; agent-run actions | done                 |
| 3b    | Trades prepared by your agent, submitted by you              | done                 |
| 4     | Trades placed by Tidysum itself, through a broker's API      | not started          |

It is built and used by one person on their own money, so expect rough edges, U.S. accounts only,
and macOS and Linux only (Windows through WSL).

## Learn more

- **[Connect your accounts](docs/connect-your-accounts.md):** the free Plaid account and linking,
  step by step.
- **[What advice costs](docs/what-advice-costs.md):** what advisers, planners and robo-advisers
  charge, and what a 1% fee costs over the years.
- **[Guide](docs/guide.md):** every command, detector and rule, running on a Mac, layout and CI.
- **[Decisions](docs/decisions):** why Tidysum is built the way it is. Start with
  [the misallocation loop](docs/decisions/0003-misallocation-loop.md) and
  [the product principles](docs/decisions/0002-product-principles.md).
- **[Agent skill](skills/tidysum-actions/SKILL.md):** what your agent is told to do, and not do.

## Contributing

Issues and pull requests are welcome. Before you open one, read the
[design rules](docs/guide.md#design-rules-that-already-hold) and make sure this passes:

```sh
pnpm typecheck && pnpm lint && pnpm test
```

Tests start a throwaway Postgres in Docker, or without Docker on Tidysum's own Postgres with
`TEST_PG=local pnpm test`. CI runs the same checks on every pull request.

## Contact

Like Tidysum, or want to work with the person behind it? Write to
[hello.tidysum@proton.me](mailto:hello.tidysum@proton.me). For bugs and feature requests, please
open an issue instead.

## License

[MIT](LICENSE). Provided as is, with no warranty and no liability: see the
[disclaimer](DISCLAIMER.md).