Kosh

A personal finance and vehicle app that installs on your phone. Captures bank SMS, reads statements on the phone, and lets AI assistants connect over MCP.

Status
In use
My part
Design and all code
Started
27 Oct 2026
Code
About 15k lines of Go, 13k of TypeScript
AI agents
21 tools over MCP, with its own OAuth 2.1 server
Tests
43 Go tests, about 2,800 lines
Money
Stored as whole paise
Deploys as
One Linux binary, on every push

Try it

This is the real app. Tap + to add an expense, review the two bank messages, switch to Vehicles from the title, or open Settings to connect an AI agent.

This is the real Kosh interface, built from its code, on sample data. The server is replaced by a stand-in in your browser, so nothing is saved.

I wanted to know where my money goes without handing my bank history to someone else’s server. Kosh is the app I built for that and use every day. It runs as one small Go binary, keeps everything in one SQLite file, and installs on a phone like a native app. It now keeps my vehicle papers too.

Tell an AI, and it lands in Kosh

The part I find most interesting: I can tell an AI assistant “spent 450 on fuel” and it is recorded. Kosh is a remote MCP server, so Claude, ChatGPT and Grok can add it as a connector, and agents that can only open links get in through a private one.

Claude, ChatGPT, Grok

Add Kosh as a custom connector

  1. Finds the sign-in server /.well-known/…
  2. Registers itself /oauth/register
  3. You approve, read-only or full access
  4. Calls tools over MCP /mcp

OAuth 2.1 · PKCE · rotating tokens

Agents with their own computer

Like Instinct, my WhatsApp assistant

  1. Kosh writes a message with a private link
  2. You send it to the agent
  3. The link serves its instructions in Markdown
  4. Calls tools over plain HTTP /agent/…/tool

One link · revoke it any time

21 toolsThe same set behind both ways in

Read
  • get_overview
  • list_transactions
  • spending_summary
  • interest_summary
  • get_lists
  • vehicle_status
Change, only with full access
  • add_transaction
  • update_transaction
  • delete_transaction
  • add_vehicle_log
  • add_vehicle_paper
  • add_vehicle
  • update_vehicle
  • save_account
  • save_category
  • save_person
  • write_off_loan
  • set_budget
  • save_service_rule
  • delete
  • kosh_api
Kosh only records; it never pays anyone. Notes and merchant names reach the agent marked as data, never as instructions.
  • Its own sign-in server. Assistants sign in with OAuth 2.1, and I wrote the authorization server myself: discovery (RFC 8414 and RFC 9728), dynamic client registration (RFC 7591), PKCE with S256 only, and refresh tokens that rotate on every use.
  • Read-only, or full access. You choose when you connect. A read-only connection can’t call any tool that changes data, and the check runs on the server for every call, not in the agent.
  • A link for everything else. Agents with their own computer, like Instinct (my assistant on WhatsApp), can’t do an OAuth dance. Kosh writes a message with a private link for you to send them. The link serves the agent its instructions in Markdown and the tools as JSON, and it can be disconnected from Settings at any time.
  • Records are data, not orders. A merchant name or a note could say anything, so the agent is told that text inside records is data, never instructions. Kosh only records money; it can’t pay anyone.

What it does

  • Scan and pay. Scan any UPI QR code, or pick a photo of one, and Kosh fills in who it is for, the amount, the category and the person. It opens GPay, PhonePe, Paytm, BHIM or CRED with the payment ready, and when you come back it asks whether it went through. The QR decoder is ZXing compiled to WebAssembly, so it runs in the browser.
  • No double payments. Paying the same UPI ID again within 30 minutes shows a warning first.
  • Split a bill. Pay the whole bill and split it with friends. Your share is your expense, and each friend’s share is added to what they owe you.
  • Bank messages, captured for you. Payments made outside Kosh still land in it. An iOS Shortcuts automation, or a small Android forwarder, sends each bank SMS to Kosh. Kosh reads the direction, amount, account digits, UPI ID, merchant and reference number, and skips OTPs, collect requests, autopay notices and failed payments. A message seen twice, or a payment already recorded under the same UPI reference, is not added again. On iPhone, messages that arrive offline wait in a queue and go up together.
  • Bank statements, checked on the phone. Open a statement PDF, even a password-protected one, and Kosh rebuilds its table with pdf.js and compares it with your records: what is missing on either side, what the bank charged, and how much interest it paid. Many people, Muslims among them, don’t keep bank interest, so Kosh shows what was earned and what has been given away. The statement file never leaves the phone.
  • Bring your history. Imports from 14 money apps, including Dime, Cashew, YNAB, Money Manager and Bluecoins, plus bank CSVs and any other sheet. Columns are recognised by their headers, Excel and ZIP files are opened in the browser, and every import shows a preview first. Each row gets an ID made from its content, so importing the same file twice adds nothing.
  • Vehicles. Insurance, PUC, tax, RC and licence, with fuel and service logs. Photograph a certificate and the expiry date is read on the phone with Tesseract. Files go to S3-compatible storage and are cached on the phone, so they open with no signal. A daily job sends push reminders before anything expires, and there is a private calendar feed to subscribe to.
  • People. Lend, borrow, partial repayments, a running balance per person, a WhatsApp reminder with your UPI ID, and writing off a loan that won’t be paid back.
  • Budgets and insights. A monthly budget, per-category limits, a “safe to spend per day” figure you can check before you tap Pay, and spending by day and by category compared with the previous period.

How it is built

The backend is plain Go with the standard library router and a pure Go SQLite driver, so it builds with no C compiler. The React frontend is compiled and embedded in the binary, so deploying is copying one file. Every push to main builds that binary in GitHub Actions and uploads it to Sideyard, where a release takes traffic only after it passes its health check.

The schema is 21 tables. Money is stored as integers in paise, never as floating-point numbers. Each transaction has a kind that decides which balances it moves: expense, income, transfer, lend, borrow, collect and repay. Moving money between your own accounts is a transfer, so an ATM withdrawal is not counted as spending.

SQLite runs in WAL mode, and every transaction takes its write lock up front, so two requests never deadlock upgrading a read lock. Migrations are append-only: for a few seconds during a deploy the old release still runs against the new schema, so a migration may only add tables and columns.

Retrying is always safe. Imports, statement rows, captured messages and reminder jobs can all run twice without adding anything twice.

The phone does the private work. OCR, PDF reading and Excel conversion happen in the browser, and the server only ever receives text.

43 Go tests (about 2,800 lines) cover the API, SMS parsing, imports, statement checking, loan write-offs, merging accounts and file storage, with a fake S3 server running inside the tests.

Several people, separate money

Anyone can sign up with a username or with Google. Each person has private accounts. The first account is the owner, who can see who has signed up and remove accounts but cannot see anyone’s data. New sign-ups are limited to five per IP address per hour. Someone who made two accounts can merge them, and anyone can erase all of their data.

What’s next

Work and clients, with monthly or yearly billing and what is still unpaid, and recurring entries.