openvibers/openvibe.finance README.md
README.md
| 1 | # OpenVibe.Finance |
| 2 | |
| 3 | **Your money, your rules, your data** — [openvibe.finance](https://openvibe.finance), part of the OpenVibe network. |
| 4 | |
| 5 | Your accounts in one place, from a bank's CSV export or typed in, and a clear picture of each month. Free, with nothing |
| 6 | to connect. |
| 7 | |
| 8 | - **Private to you.** Payees and notes are stored encrypted under a key derived for your account alone |
| 9 | (`server/crypto.js`). Nothing here enters search, analytics or AI training. |
| 10 | - **No money moves.** It reads and plans; it never pays, transfers or cancels anything. |
| 11 | - **Yours to take.** Download everything as one JSON file, or delete everything, at `/data`. |
| 12 | |
| 13 | ## What it does today (v0.12) |
| 14 | |
| 15 | - Accounts (checking, savings, credit card, cash, loan, investments) with an opening balance and a running balance. |
| 16 | - Transactions typed in, or imported from a bank's download: |
| 17 | - CSV: the columns are read from the header (date; amount, or debit and credit; payee or description; memo; |
| 18 | category), with the date and amount shapes banks send; |
| 19 | - OFX and QFX (Quicken), 1.x and 2.x, bank and credit-card statements: the bank's own transaction id (FITID) makes |
| 20 | repeated and overlapping downloads add each transaction once. |
| 21 | - a PDF statement (text PDFs): read on openvibe.finance and never sent anywhere; the lines with a date and an |
| 22 | amount, money in and out as marked (or as the person chooses when nothing marks them), checked before importing. |
| 23 | Importing the same file twice adds nothing twice. |
| 24 | - A receipt photo: read on openvibe.finance by Tesseract, from memory (never written, sent or kept); the store, the |
| 25 | day and the total fill the add form, and what was not clear is said, for the person to check before adding it. |
| 26 | - Categories, corrected per transaction (each correction is a new revision; the category says where it came from). |
| 27 | - Category rules: tick **Always** on a transaction's category and every transaction whose payee contains its words |
| 28 | goes there, past and future imports (never one you categorised yourself). `/rules` lists and removes them. |
| 29 | - The month: money in, money out, and spending by category (transfers between your accounts left out). |
| 30 | - Net worth and what if: net worth at each month's end since the data starts; the average month of the last three |
| 31 | repeated a year ahead, with a one-off cost ("can I afford it?": yes, or not yet and the month it would fit) or a |
| 32 | monthly change ("what if rent rises?"), against the goals' monthly need. |
| 33 | - Goals: an amount to reach, by a date or not, tracking a savings account or an amount kept by hand; the page says |
| 34 | what a month reaches it in time. |
| 35 | - Debt: a loan's or card's yearly rate and monthly payment give when it is paid off, the interest it costs, and what |
| 36 | paying a little more saves. |
| 37 | - Budgets: a monthly limit per category of spending; the month shows each against its limit (left, or over) and the |
| 38 | rest of the spending beside them. |
| 39 | - Recurring: bills, subscriptions and regular income found in your own transactions (the same payee and a similar |
| 40 | amount at a steady rhythm, three times or more): what each costs a month, when the next is due, and which stopped. |
| 41 | - A JSON API for all of it (`/api/v1/…`), for the person signed in. |
| 42 | |
| 43 | Plan: `OpenVibe_Plan_2026-11-13.md` §L.2. Next: the Link plugin |
| 44 | for local-only import, and Finance Experts (Budget Coach, Subscription Auditor) with narrow read permission. |
| 45 | |
| 46 | ## For agents: /mcp |
| 47 | |
| 48 | OpenVibe's money Experts on Actor (Budget coach, Can I afford it?, Debt planner, Subscription auditor) use it once the |
| 49 | person allows Actor in OpenVibe Finance on their Apps page; the home page links them. |
| 50 | |
| 51 | `POST https://openvibe.finance/mcp` is an MCP server (both eras: the 2026-07-28 stateless protocol and the handshake |
| 52 | one). Seven tools read: `accounts`, `month`, `transactions`, `recurring`, `goals`, `net_worth`, `what_if`. Four write, |
| 53 | with the person's own sign-in or a write grant (v0.10): `import_statement` (CSV, OFX or QFX text), `add_transaction`, |
| 54 | `categorize` (up to 200; a category an agent sets is marked "agent" on the page and never overwrites one the person |
| 55 | set), `add_rule`. Nothing deletes; nothing moves money. Amounts are integer cents; months are `YYYY-MM`. |
| 56 | |
| 57 | - Anyone may list the tools. A call reads the person from a **Bearer token only**, never a cookie: their own sign-in, |
| 58 | or a delegated person token naming `finance` (openvibe-sdk 0.187), which OpenVibe.Network mints per call for a key |
| 59 | or an agent with a grant in **OpenVibe Finance** (Connect; `https://connect.openvibe.network/mcp/all`). |
| 60 | - The pages and the JSON API never take a delegated token: only the person changes anything, and nothing here moves |
| 61 | money. |
| 62 | |
| 63 | ## Running |
| 64 | |
| 65 | ```bash |
| 66 | npm install |
| 67 | npm test # PGlite, a real PostgreSQL in-process |
| 68 | node test/harness/serve-sample.js 18471 # a local look with sample data and a stand-in sign-in |
| 69 | ``` |
| 70 | |
| 71 | Production: `/opt/openvibe.finance`, unit `openvibe-finance.service` (port 5292), env `/etc/openvibe/finance.env` |
| 72 | (`.env.example`), nginx `deploy/nginx/openvibe.finance.conf`. Sign-in is OpenVibe.Network's OAuth client `finance`. |
| 73 | |
| 74 | License: AGPL-3.0-only. |
| 75 | |
| 76 | <!-- versions:start --> |
| 77 | - openvibe-sdk: v0.193.0 |
| 78 | - openvibe-shared: v4.359.0 |
| 79 | <!-- versions:end --> |
| 80 |