Ekwo OS — open source accounting: ledger, invoices and VAT on your own Supabase or Postgres
UnexploredDouble-entry books an agent keeps as the user: invoices, VAT returns, 174 country packs.
Install
Terminal
$npx -y @ekwo-ai/mcpmcp_config.json
{
"mcpServers": {
"ai-ekwo-mcp": {
"env": {
"EKWO_EMAIL": "${EKWO_EMAIL}",
"EKWO_DB_URL": "${EKWO_DB_URL}",
"SUPABASE_URL": "${SUPABASE_URL}",
"EKWO_PASSWORD": "${EKWO_PASSWORD}",
"EKWO_ACCESS_TOKEN": "${EKWO_ACCESS_TOKEN}",
"SUPABASE_ANON_KEY": "${SUPABASE_ANON_KEY}",
"EKWO_AGENT_POSTING": "${EKWO_AGENT_POSTING}",
"EKWO_ACT_AS_USER_ID": "${EKWO_ACT_AS_USER_ID}",
"EKWO_EINVOICE_DIRECTORY": "${EKWO_EINVOICE_DIRECTORY}"
},
"args": [
"-y",
"@ekwo-ai/mcp"
],
"command": "npx"
}
}
}Documentation
Ekwo OS
Ekwo is open source accounting, ready to use on Ekwo Cloud: the web application for your invoices, your bank statements, your VAT returns and the electronic invoices your country uses, in your own instance, with an account opened in a minute. Ekwo OS is the free and open source core it runs on, under AGPL-3.0: install it on your own Supabase project and own your accounting data, forever.
Built and maintained by Ekwo. Ekwo OS is a schema, the rules of each country as data, and the tools — a command line and an MCP server — with which you, your accountant and the AI agent you choose work on the same company data, each with their own access. Ekwo reads any supplier invoice, in any language, with the AI model you choose, and every transaction is recorded on your confirmation. What Ekwo is, and its limits: DISCLAIMER.md.
From an empty Supabase project to a prepared VAT return, for two countries
side by side. How it was recorded: docs/demo/.
Try it on your own company data. Already using Claude? Start with Claude goes from a free Supabase project to your own company data taken over, questioned and your next VAT return prepared, in about twenty minutes. Or open the same company data in the web application, Ekwo Cloud.
Why Ekwo
The long version — financial autonomy for every business, accounting as a commons, a network rather than a vendor — is in MANIFESTO.md.
The data belongs to the business, and the work of keeping the accounts can be done by software the business also owns. So the whole accounting core is open, the data sits in a Postgres database you control, and the interface is designed for machines as much as for people. Supabase gives the schema a REST API for free, and an MCP server sits on top of it, so an AI agent can record a purchase, match a payment or prepare a VAT return on your own data — as you, under your own row level security, without the data leaving your account.
What ships today:
- The core — schema, recording rules, taxes, reports, financial statements, as migrations you apply to a database you control.
- A country pack for every country listed below, each a versioned set of data with a year of company data that proves it.
ekwo, the command line — one command installs everything on your own Supabase project; the same tool then keeps the accounts from a terminal.- The MCP server, hosted at
https://mcp.ekwo.ai/mcpor run locally withnpx @ekwo-ai/mcp, so any AI agent can operate the company data. - Modules for fixed assets, budgets, corporate income tax and electronic invoicing.
- The compass of the company —
financial_analysis()reads, from the recorded transactions, the aggregates a country pack defines (revenue, equity, cash, receivables, payables…), or, in a country whose pack defines none, thirteen of them read by account type through the generic framework, so that days of cash, net margin, current ratio, equity ratio, days of sales and of purchases outstanding and growth come from the company data with nothing to set up. The Analysis screen of Ekwo Cloud and thefinancial_analysistool of the MCP server read it;docs/analysis.mdsays how, and how a pack adds the section. - Format libraries under MIT — the files administrations, banks and e-invoicing networks exchange, written and read.
Who it is for: a company that wants to keep its own accounts with an AI at the keyboard, and a founder who wants to know, from that data, how long the cash lasts and how fast customers pay; an accounting firm that runs several companies inside one installation; a developer who needs a real double-entry core with tax rules as data rather than as code; and anyone who wants to leave a proprietary system with its company data intact.
What is in this repository
A double-entry accounting core for Postgres. There is no server to run: Supabase turns the schema into a REST API with an OpenAPI description, and row level security decides who sees what.
- Double entry, enforced by the database. A transaction cannot be recorded unless it balances, and a locked period refuses writes at the trigger — not in a form validator.
- Documents and transactions are two layers. An invoice answers to EN 16931 and Peppol; a transaction answers to the chart of accounts. Keeping them apart keeps both honest.
- Country rules are data. A tax points at the accounts it records to and at the boxes of the declaration it feeds. Adding a régime is a row, not a release.
- Every label is data, in every language a country pack publishes.
Identifiers stay English; what a person reads comes from the pack, in the
language of the company or of the reader. See
docs/languages.md. - Every country a pack, out of the box. Andorra (
ad), United Arab Emirates (ae), Antigua and Barbuda (ag), Albania (al), Հայաստան (am), Angola (ao), Argentina (ar), Austria (at), Australia (au), Azərbaycan (az), Bosna i Hercegovina (ba), Barbados (bb), Bangladesh (bd), Belgium (be), Burkina Faso (bf), България (bg), البحرين (bh), Burundi (bi), Bénin (bj), Bermuda (bm), Brunei Darussalam (bn), Bolivia (bo), Brasil (br), The Bahamas (bs), Bhutan (bt), Botswana (bw), Canada (ca), République démocratique du Congo (cd), Centrafrique (cf), Congo (cg), Schweiz (ch), Côte d’Ivoire (ci), Chile (cl), Cameroun (cm), 中国 (cn), Colombia (co), Costa Rica (cr), Cabo Verde (cv), Cyprus (cy), Czechia (cz), Germany (de), Djibouti (dj), Danmark (dk), Dominica (dm), Dominican Republic (do), Algérie (dz), Ecuador (ec), Estonia (ee), مصر (eg), España (es), Ethiopia (et), Finland (fi), Fiji (fj), France (fr), Gabon (ga), United Kingdom (gb), Grenada (gd), საქართველო (ge), Guernsey (gg), Ghana (gh), The Gambia (gm), Guinée (gn), Guinée équatoriale (gq), Ελλάδα (gr), Guatemala (gt), Guinée-Bissau (gw), Guyana (gy), Hong Kong (hk), Honduras (hn), Croatia (hr), Magyarország (hu), Indonesia (id), Ireland (ie), Israel (il), India (in), Ísland (is), Italia (it), Jersey (je), Jamaica (jm), Jordan (jo), 日本 (jp), Kenya (ke), Кыргызская Республика (kg), កម្ពុជា (kh), Kiribati (ki), Comores (km), Saint Kitts and Nevis (kn), 대한민국 (kr), Kuwait (kw), Cayman Islands (ky), Қазақстан (kz), Lao PDR (la), Saint Lucia (lc), Liechtenstein (li), Sri Lanka (lk), Lesotho (ls), Lietuva (lt), Luxembourg (lu), Latvija (lv), Maroc (ma), Monaco (mc), Moldova (md), Crna Gora (me), Madagascar (mg), Северна Македонија (mk), Mali (ml), Монгол Улс (mn), 澳門 (mo), Mauritanie (mr), Malta (mt), Mauritius (mu), Malawi (mw), México (mx), Malaysia (my), Moçambique (mz), Namibia (na), Niger (ne), Nigeria (ng), Nicaragua (ni), Nederland (nl), Norge (no), Nepal (np), Nauru (nr), New Zealand (nz), Oman (om), Panamá (pa), Perú (pe), Papua New Guinea (pg), Philippines (ph), Pakistan (pk), Polska (pl), Portugal (pt), Palau (pw), Paraguay (py), Qatar (qa), Romania (ro), Srbija (rs), Rwanda (rw), Saudi Arabia (sa), Solomon Islands (sb), Seychelles (sc), Sverige (se), Singapore (sg), Slovenia (si), Slovensko (sk), Sierra Leone (sl), Sénégal (sn), Suriname (sr), El Salvador (sv), Eswatini (sz), Tchad (td), Togo (tg), ประเทศไทย (th), Ҷумҳурии Тоҷикистон (Республика Таджикистан) (tj), Туркменистан (tm), Tunisie (tn), Tonga (to), Türkiye (tr), Trinidad and Tobago (tt), 臺灣 (tw), Tanzania (tz), Україна (ua), Uganda (ug), United States (us), Uruguay (uy), Ўзбекистон Республикаси (uz), Saint Vincent and the Grenadines (vc), British Virgin Islands (vg), Việt Nam (vn), Vanuatu (vu), Samoa (ws), Kosova (xk), South Africa (za), Zambia (zm) and Zimbabwe (zw) — each with its chart of accounts, its tax codes, its declaration boxes and its financial statements, and all of them installed byekwo init, so one installation keeps companies in any of these countries. The version and review status of each are indocs/packs.md. A pack may carry more than one chart of accounts — for companies, for associations and foundations, for small entities — and the chart is chosen when a company is created;ekwo pack describe <cc>and the MCP tooldescribe_packlist them with their audience. - Statutory files. The French FEC, XBRL annual accounts, Peppol UBL and Factur-X invoices, recapitulative statements — written from the accounts by the format libraries.
- Tested on real Postgres. The test suite runs the migrations, the seeds, the accounting scenarios, the installer and the MCP server against Postgres compiled to WebAssembly.
Modules
The core lives in a schema of its own, ekwo (public until 0.23.0). Beside it, a module is a schema of its
own, with its own migrations, row level security and tests, enabled per
company.
| Module code | Schema | What it does |
|---|---|---|
assets | fixed_assets | Fixed assets, their depreciation schedule and their disposal. Durations and methods are country pack data. |
budgets | budgets | A budget per financial year and the variance against the accounts. |
tax | tax | Corporate income tax estimated from the company data: adjustments, losses and rates are country pack data. An estimate until an owner calls it final. |
einvoicing | einvoicing | The electronic invoice of a recorded sale, in the format the company's country pack declares, checked against the rules of that format, and every sending with its state. |
npx -y ekwo-os@latest module list # what is here, and what the database holds
npx -y ekwo-os@latest module enable assets --company "…" # turn one on for a company
Then add the module's schema to the project's exposed schemas (Supabase
dashboard → Project Settings → API); ekwo module enable prints the line.
A module never writes to the accounts directly: it hands its lines to the core,
which applies the same balancing, numbering and lock rules as everywhere else.
docs/modules.md is how to write one.
Install on your own Supabase project
Create a project at supabase.com — the free plan is enough to start — and point the installer at it. Node 20 or later is the only thing you need locally: no Supabase CLI, no Docker, no clone.
npx -y ekwo-os@latest init
It asks for the connection string, the country, the chart of accounts and the language where the pack offers a choice, your organisation, the first company and the address of the first administrator. Then it applies the migrations, loads every country pack, creates that administrator in your Supabase Auth and opens the first financial year. Running it twice creates nothing twice.
Ekwo does not create the project and does not pay for it: your company data is
on your account from the first row. The installation guide, with every flag and
the four settings to change on your project before going live, is
packages/cli.
Asking an AI agent to do it with you? Point it at AGENTS.md.
Each country also has its own step-by-step page on
ekwo.ai/countries, and the whole documentation is
served to a model as https://ekwo.ai/llms.txt.
Keeping it running
npx -y ekwo-os@latest status # schema version installed against available, instance, companies
npx -y ekwo-os@latest migrate # apply what a new release adds
npx -y ekwo-os@latest doctor # every object this release defines, row level security, privileges
By hand, with the Supabase CLI
The installer is a convenience, not a requirement: the migrations are ordinary
SQL, and supabase db push writes the same history table ekwo migrate does.
git clone https://github.com/Ekwo-ai/ekwo-os.git && cd ekwo-os
supabase link --project-ref <your-project-ref>
supabase db push # applies supabase/migrations in order
Then apply the reference seeds, all of them, in this order (the list is
written from packs/ and is the one supabase/config.toml declares):
The reference seeds
psql "$DATABASE_URL" -f supabase/seed/00_currencies.sql
psql "$DATABASE_URL" -f supabase/seed/00_territories.sql
psql "$DATABASE_URL" -f supabase/seed/05_framework_generic.sql
psql "$DATABASE_URL" -f supabase/seed/100_pack_uy.sql
psql "$DATABASE_URL" -f supabase/seed/101_pack_ec.sql
psql "$DATABASE_URL" -f supabase/seed/102_pack_bo.sql
psql "$DATABASE_URL" -f supabase/seed/103_pack_py.sql
psql "$DATABASE_URL" -f supabase/seed/104_pack_do.sql
psql "$DATABASE_URL" -f supabase/seed/105_pack_cr.sql
psql "$DATABASE_URL" -f supabase/seed/106_pack_gt.sql
psql "$DATABASE_URL" -f supabase/seed/107_pack_pa.sql
psql "$DATABASE_URL" -f supabase/seed/108_pack_in.sql
psql "$DATABASE_URL" -f supabase/seed/109_pack_cn.sql
psql "$DATABASE_URL" -f supabase/seed/10_pack_be.sql
psql "$DATABASE_URL" -f supabase/seed/110_pack_ge.sql
psql "$DATABASE_URL" -f supabase/seed/111_pack_md.sql
psql "$DATABASE_URL" -f supabase/seed/112_pack_rs.sql
psql "$DATABASE_URL" -f supabase/seed/113_pack_ba.sql
psql "$DATABASE_URL" -f supabase/seed/114_pack_al.sql
psql "$DATABASE_URL" -f supabase/seed/115_pack_mk.sql
psql "$DATABASE_URL" -f supabase/seed/116_pack_me.sql
psql "$DATABASE_URL" -f supabase/seed/117_pack_bh.sql
psql "$DATABASE_URL" -f supabase/seed/118_pack_om.sql
psql "$DATABASE_URL" -f supabase/seed/119_pack_gh.sql
psql "$DATABASE_URL" -f supabase/seed/11_pack_fr.sql
psql "$DATABASE_URL" -f supabase/seed/120_pack_tz.sql
psql "$DATABASE_URL" -f supabase/seed/121_pack_ug.sql
psql "$DATABASE_URL" -f supabase/seed/122_pack_rw.sql
psql "$DATABASE_URL" -f supabase/seed/123_pack_xk.sql
psql "$DATABASE_URL" -f supabase/seed/124_pack_kz.sql
psql "$DATABASE_URL" -f supabase/seed/125_pack_pk.sql
psql "$DATABASE_URL" -f supabase/seed/126_pack_bd.sql
psql "$DATABASE_URL" -f supabase/seed/127_pack_lk.sql
psql "$DATABASE_URL" -f supabase/seed/128_pack_am.sql
psql "$DATABASE_URL" -f supabase/seed/129_pack_az.sql
psql "$DATABASE_URL" -f supabase/seed/12_pack_lu.sql
psql "$DATABASE_URL" -f supabase/seed/130_pack_hn.sql
psql "$DATABASE_URL" -f supabase/seed/131_pack_sv.sql
psql "$DATABASE_URL" -f supabase/seed/132_pack_ni.sql
psql "$DATABASE_URL" -f supabase/seed/133_pack_et.sql
psql "$DATABASE_URL" -f supabase/seed/134_pack_mu.sql
psql "$DATABASE_URL" -f supabase/seed/135_pack_mz.sql
psql "$DATABASE_URL" -f supabase/seed/136_pack_ao.sql
psql "$DATABASE_URL" -f supabase/seed/137_pack_zm.sql
psql "$DATABASE_URL" -f supabase/seed/138_pack_bm.sql
psql "$DATABASE_URL" -f supabase/seed/139_pack_ky.sql
psql "$DATABASE_URL" -f supabase/seed/13_pack_ee.sql
psql "$DATABASE_URL" -f supabase/seed/140_pack_vg.sql
psql "$DATABASE_URL" -f supabase/seed/141_pack_gg.sql
psql "$DATABASE_URL" -f supabase/seed/142_pack_qa.sql
psql "$DATABASE_URL" -f supabase/seed/143_pack_kw.sql
psql "$DATABASE_URL" -f supabase/seed/144_pack_bn.sql
psql "$DATABASE_URL" -f supabase/seed/145_pack_mo.sql
psql "$DATABASE_URL" -f supabase/seed/146_pack_je.sql
psql "$DATABASE_URL" -f supabase/seed/147_pack_zw.sql
psql "$DATABASE_URL" -f supabase/seed/148_pack_br.sql
psql "$DATABASE_URL" -f supabase/seed/14_pack_gb.sql
psql "$DATABASE_URL" -f supabase/seed/15_pack_us.sql
psql "$DATABASE_URL" -f supabase/seed/16_pack_ie.sql
psql "$DATABASE_URL" -f supabase/seed/17_pack_nl.sql
psql "$DATABASE_URL" -f supabase/seed/18_pack_de.sql
psql "$DATABASE_URL" -f supabase/seed/19_pack_es.sql
psql "$DATABASE_URL" -f supabase/seed/200_pack_jm.sql
psql "$DATABASE_URL" -f supabase/seed/201_pack_bb.sql
psql "$DATABASE_URL" -f supabase/seed/202_pack_dm.sql
psql "$DATABASE_URL" -f supabase/seed/203_pack_gd.sql
psql "$DATABASE_URL" -f supabase/seed/204_pack_lc.sql
psql "$DATABASE_URL" -f supabase/seed/205_pack_sr.sql
psql "$DATABASE_URL" -f supabase/seed/206_pack_kg.sql
psql "$DATABASE_URL" -f supabase/seed/207_pack_sz.sql
psql "$DATABASE_URL" -f supabase/seed/208_pack_ls.sql
psql "$DATABASE_URL" -f supabase/seed/209_pack_mn.sql
psql "$DATABASE_URL" -f supabase/seed/20_pack_sn.sql
psql "$DATABASE_URL" -f supabase/seed/210_pack_tj.sql
psql "$DATABASE_URL" -f supabase/seed/211_pack_uz.sql
psql "$DATABASE_URL" -f supabase/seed/212_pack_bt.sql
psql "$DATABASE_URL" -f supabase/seed/213_pack_la.sql
psql "$DATABASE_URL" -f supabase/seed/214_pack_np.sql
psql "$DATABASE_URL" -f supabase/seed/215_pack_bi.sql
psql "$DATABASE_URL" -f supabase/seed/216_pack_dj.sql
psql "$DATABASE_URL" -f supabase/seed/217_pack_mw.sql
psql "$DATABASE_URL" -f supabase/seed/218_pack_sc.sql
psql "$DATABASE_URL" -f supabase/seed/219_pack_jo.sql
psql "$DATABASE_URL" -f supabase/seed/21_pack_ci.sql
psql "$DATABASE_URL" -f supabase/seed/220_pack_ad.sql
psql "$DATABASE_URL" -f supabase/seed/221_pack_li.sql
psql "$DATABASE_URL" -f supabase/seed/222_pack_fj.sql
psql "$DATABASE_URL" -f supabase/seed/223_pack_ki.sql
psql "$DATABASE_URL" -f supabase/seed/224_pack_pw.sql
psql "$DATABASE_URL" -f supabase/seed/225_pack_ws.sql
psql "$DATABASE_URL" -f supabase/seed/226_pack_sb.sql
psql "$DATABASE_URL" -f supabase/seed/227_pack_to.sql
psql "$DATABASE_URL" -f supabase/seed/228_pack_vu.sql
psql "$DATABASE_URL" -f supabase/seed/22_pack_bj.sql
psql "$DATABASE_URL" -f supabase/seed/23_pack_bf.sql
psql "$DATABASE_URL" -f supabase/seed/24_pack_cm.sql
psql "$DATABASE_URL" -f supabase/seed/25_pack_cf.sql
psql "$DATABASE_URL" -f supabase/seed/26_pack_km.sql
psql "$DATABASE_URL" -f supabase/seed/27_pack_cg.sql
psql "$DATABASE_URL" -f supabase/seed/28_pack_ga.sql
psql "$DATABASE_URL" -f supabase/seed/29_pack_gn.sql
psql "$DATABASE_URL" -f supabase/seed/300_pack_gm.sql
psql "$DATABASE_URL" -f supabase/seed/301_pack_sl.sql
psql "$DATABASE_URL" -f supabase/seed/303_pack_bw.sql
psql "$DATABASE_URL" -f supabase/seed/304_pack_na.sql
psql "$DATABASE_URL" -f supabase/seed/30_pack_gw.sql
psql "$DATABASE_URL" -f supabase/seed/31_pack_gq.sql
psql "$DATABASE_URL" -f supabase/seed/32_pack_ml.sql
psql "$DATABASE_URL" -f supabase/seed/33_pack_ne.sql
psql "$DATABASE_URL" -f supabase/seed/34_pack_cd.sql
psql "$DATABASE_URL" -f supabase/seed/35_pack_td.sql
psql "$DATABASE_URL" -f supabase/seed/36_pack_tg.sql
psql "$DATABASE_URL" -f supabase/seed/37_pack_it.sql
psql "$DATABASE_URL" -f supabase/seed/38_pack_id.sql
psql "$DATABASE_URL" -f supabase/seed/39_pack_my.sql
psql "$DATABASE_URL" -f supabase/seed/400_pack_ag.sql
psql "$DATABASE_URL" -f supabase/seed/401_pack_bs.sql
psql "$DATABASE_URL" -f supabase/seed/402_pack_gy.sql
psql "$DATABASE_URL" -f supabase/seed/403_pack_kn.sql
psql "$DATABASE_URL" -f supabase/seed/404_pack_vc.sql
psql "$DATABASE_URL" -f supabase/seed/405_pack_tt.sql
psql "$DATABASE_URL" -f supabase/seed/406_pack_tm.sql
psql "$DATABASE_URL" -f supabase/seed/407_pack_kh.sql
psql "$DATABASE_URL" -f supabase/seed/408_pack_cv.sql
psql "$DATABASE_URL" -f supabase/seed/409_pack_mg.sql
psql "$DATABASE_URL" -f supabase/seed/40_pack_au.sql
psql "$DATABASE_URL" -f supabase/seed/410_pack_mr.sql
psql "$DATABASE_URL" -f supabase/seed/411_pack_mc.sql
psql "$DATABASE_URL" -f supabase/seed/412_pack_pg.sql
psql "$DATABASE_URL" -f supabase/seed/41_pack_nz.sql
psql "$DATABASE_URL" -f su
Sourced from the repository README.
More in AI & Agents
- PonytailMakes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.109,599
- AgentsMulti-harness agentic plugin marketplace for Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, and Google Antigravity39,079
- Frontend SlidesCreate beautiful slides on the web using a coding agent's frontend skills28,060
- Agent Skills Search ServerSearch and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server.27,534
- Agency Agents Zh🎭 267 个即插即用的 AI 专家角色 — 支持 Hermes Agent/Claude Code/Cursor/Copilot 等 18 种工具,覆盖工程/设计/营销/金融等 20 个部门。含 52 个中国市场原创智能体(小红书/抖音/微信/飞书/钉钉等)。搭配编排器 agency-orchestrator,一句话即可让多位专家按 DAG 自动协作。19,868
- Watermarks RemoverStrip multi-vendor AI provenance marks: Unicode text hygiene, statistical rewrite hooks, and C2PA/metadata from PNG/JPEG/SVG/PDF/DOCX/HTML/MD17,822