Shared expenses, split by income.

Cuota is a small self-hosted app for two people. Each shared expense is split in proportion to your two incomes as they stood when the expense was recorded — so a later raise or pay cut changes the next split, and never rewrites the past.

Run it locally View on GitHub

One container, SQLite by default, PostgreSQL optional. No sign-up with a third-party service, no telemetry — the data stays on your machine.

What it looks like

The Cuota dashboard: a running balance showing who owes whom, the current income-proportional split, and the most recent expenses.
The dashboard — running balance, the current split, and recent expenses. Synthetic example data.
The Cuota analytics page: spending by category for the selected calendar year, with a monthly bar chart.
Analytics — spending by category for the selected year. Synthetic example data.
Cuota on a phone: the dashboard stacked into a single column.
The same dashboard on a phone. Synthetic example data.

Features

  • Income-proportional splits

    Each expense is divided in proportion to the two incomes in force when it was recorded. A split is frozen at that moment; history is never recomputed from a later change.

  • Salary changes over time

    Record a raise or pay cut when it happens. The split in force when an expense is recorded is frozen with it, so a later change never rewrites the past.

  • Two people, one household

    Cuota is built for a couple: at most two accounts, each with a name, a salary history and a running balance against the other.

  • Expenses and categories

    Add an expense with an amount, a description, who paid and the date. Group spending by category and see where the money went.

  • Analytics and CSV export

    A running balance and a by-category breakdown for the calendar year, plus a one-click CSV export of the ledger over any date range.

  • Optional invoice scanning

    Bring your own DeepSeek key to read a receipt photo and prefill an expense. Scanning reads the image in memory; nothing is stored.

  • Passkeys or passwords

    Sign in with a passkey or a password. There is no email sending, so a forgotten password is reset from the host with npm run reset-password.

  • SQLite or PostgreSQL

    The same build runs against a SQLite file with no database service, or against PostgreSQL for a longer-lived deployment.

How a split works

  1. Record both incomes

    Add each person's salary under Settings. Record a later raise or pay cut when it happens; it applies to expenses recorded from then on.

  2. Add expenses as they happen

    Amount, description, who paid, and the date. Add it when you spend it, so the split is the one in force at that moment.

  3. Cuota does the arithmetic

    Each expense is split in proportion to the incomes in force when it was recorded, and that split is frozen; Cuota keeps a running balance of who owes whom.

Quickstart

Requires Node.js 24 or newer. Migrations run at startup; a fresh instance sends you to /setup to create the first account.

npm ci
npm run build:server
DATABASE_URL=file:./data/cuota.db ALLOWED_EMAILS=you@example.com npm start
# http://localhost:3000, health at /healthz

Full quickstart in the README

Deploy to a host

The image runs as an unprivileged user and defaults to SQLite, so it needs no database service. Set SETUP_TOKEN before exposing a fresh instance to the internet.

cp .env.example .env         # set ALLOWED_EMAILS and SETUP_TOKEN
docker compose --profile bundled up --build

Deployment guide, including the no-Compose path, in the README