Margin
Free and open source · for macOS

Your money, on your Mac.

Margin shows where your money comes from and where it goes, what your investments are doing, and your net worth. It reads your bank alerts and statements every night, and keeps all of it on your Mac, behind Touch ID.

No account, no cloud, no bank login. India and the US. Any AI, or none.

The real Margin page, on a made-up person’s money.

The margin

What comes in, what goes out, and what’s left.

That’s Margin’s icon, and the top of its Spending tab: the money that came in this month or pay cycle, what you spent, and what you saved.

  • Every payment, sorted. By category and payee, from the alerts your banks already send.
  • Pay cycles or months. Margin finds your salary and counts from payday, if you like.
  • Your own money moving isn’t spending. Card bills, transfers and SIPs are kept out of the totals.
Money in$8,562
Spent$5,666
Saved$2,89634% of income

Made-up money, the way the demo’s Spending tab shows it.

How it works

Your banks already tell you everything.

Every payment sends you an alert. Margin reads them, every night, on your Mac, and puts them together.

STEP 1

Your banks send alerts

To Gmail, as texts to your phone, and as statements you download. Margin reads Gmail read-only, and the texts your iPhone forwards or your Android backs up.

STEP 2

Margin sorts it, every night

Rules first: pick a category once and past and future payments follow. Your AI, if you use one, sorts what rules can’t.

STEP 3

You see where it went

By month or pay cycle, category and payee. Plus your investments and net worth, valued every night.

What it does

Everything your banks tell you, in one place.

Reads what your banks send

Alerts in Gmail (read-only), the bank texts your iPhone forwards to your Mac or your Android phone backs up, and the statements you download. It syncs every night by itself.

Spending

Money in and out by month or pay cycle, by category and payee. Pick a category once and past and future payments follow.

Investments and net worth

Stocks, funds, retirement accounts and deposits, valued every night, with price alerts. Alerts only: Margin never trades.

Reviews and checks

Daily, weekly and monthly summaries, plus checks for double charges, unusual amounts and new cards.

India and the US

HDFC, ICICI, SBI, Axis, Kotak; Chase, Bank of America, Wells Fargo, Capital One, Amex and more. CDSL, NPS, EPF and PPF; Fidelity, Schwab and Vanguard downloads. Any home currency.

Any AI, or none

The AI you already use (Claude, Codex, Gemini, an API service, or a model on your Mac through Ollama) sorts what rules can’t. Every change it makes can be undone.

Sort out

Pick a category once. That’s it.

New payees wait in Sort out, with a few likely categories to tap. Your pick becomes a rule, so past and future payments to that payee follow.

  • Suggestions with a reason: like a payee you already sorted, what the name says, or your AI’s guess.
  • Undo anything. Every change, yours or your AI’s, can be taken back, and the AI won’t do it again.
  • A meter shows how much of the last 12 months has a category.
Sort out

99% sorted

3 payments ($183) in the last 12 months still have no category.

Payees to sort · 1Pick a category once: past and future payments to that payee follow
MG
Maria Garcia−$183
3 payments · last on 4 Nov 26
Other…
AI’s guess: A person's name: yours to decide

Every payee has a category.

Try it: pick a category for Maria Garcia.

Private by design

It runs on your Mac, not on a server.

There’s no account to sign up for and no company holding your data. Margin is a program on your Mac that reads what your banks already send you.

COMES IN

  • Bank alerts in GmailRead-only, your own Google sign-in
  • Bank textsForwarded by your iPhone, or backed up by Android
  • Statements you downloadPDF and CSV
Your MacYour data, in a folder only your Mac user can read. Locked with Touch ID.

LEAVES, ONLY IF YOU USE IT

  • Your AIMasked text, with its tools off. Ollama: nothing.
  • US pricesThe tickers you hold
  • Exchange ratesCurrency codes and dates
  • Update checkOnce a night; can be turned off

On your Mac, nowhere else

Your data sits in a folder only your Mac user can read. The page is served by your Mac to your Mac, and locks with Touch ID when you step away.

No bank login

Margin never connects to your bank: no bank passwords, no Plaid, no aggregator. Gmail is read-only, through your own Google sign-in.

Open source

Every line is on GitHub under the MIT licence. A leak guard keeps personal details out of the code.

What leaves your Mac, and only if you use it

  • Your AI gets masked text to sort and review, with its tools off. With Ollama on your Mac, nothing leaves.
  • US prices: Yahoo Finance gets the tickers you hold. Indian prices come from whole-market files: nothing about you is sent.
  • Exchange rates: currency codes and dates, to the European Central Bank’s rates.
  • Updates: once a night Margin asks GitHub whether a new release is out. It can be turned off.

Try it

Click around a made-up person’s money.

The real Margin page, with two invented people. Every tab works; nothing is saved and nothing is sent anywhere.

Jordan in SeattleIn dollars

A paycheck and rent, card spends and Zelle, a week in London paid in pounds, stocks and ETFs, a 401(k), an IRA, savings and a CD.

Open Jordan’s Margin
Kavya in KochiIn rupees

A salary by NEFT, UPI texts, a subscription paid in dollars, Indian stocks and mutual funds, US stocks, NPS, EPF, PPF and a fixed deposit.

Open Kavya’s Margin

On a Mac, ./margin-cli demo runs the whole demo locally, with a pretend sync, a stand-in AI and Touch ID.

Install

Set it up in about half an hour.

You need a Mac and its command line tools. Most of the time goes into connecting Gmail, step by step. An AI is optional.

  1. Get the Mac’s command line tools

    Once. Click Install when it asks; this brings Python and Swift too.

    xcode-select --install
  2. Get Margin

    Into any folder you like.

    git clone https://github.com/<owner>/margin.git ~/projects/margin
    cd ~/projects/margin
  3. Set it up

    With Claude Code, in that folder: run claude and paste this. It loads Margin’s setup skill and the guard that keeps it out of your data.

    Set up Margin on this Mac for me with the margin-setup skill. Do every step you can, tell me exactly what to do for the steps only I can do, and never look at my money data.

    Or by yourself

    ./margin-cli setup

    Either way, it shows what it will add to your Mac and asks first, then walks you through the steps only you can do: signing in to Google, bank texts, statement passwords.

  4. Stay up to date

    Margin comes in numbered releases. When one is out, Margin says so. margin update shows what’s in it, asks, installs exactly that release and runs the tests, going back by itself if they fail. It never touches your data.

Good to know

What it doesn’t do (yet).

  • macOS only. It’s built on the Mac’s Keychain, Touch ID and PDF reader.
  • Setup happens in Terminal, or with Claude Code or another coding agent doing it with you. There’s no installer app yet.
  • Email alerts come from Gmail. Connecting it means making your own Google Cloud project, about 10 minutes, step by step.
  • Android texts arrive up to a day late, through a daily backup app.
  • It knows what your banks tell you: their alerts and the statements you download. Banks outside India and the US need AI sorting.
  • Early days. It’s at version 0.x. It’s not financial advice, and it never trades.

See your margin.

Free, open source, and all on your Mac. Try the demo in your browser, or set it up tonight.