Skip to content

Zhang Accounting

A self-hosted, plain text double-entry accounting tool that speaks beancount.

Explore the online demo with a fictional, read-only ledger: multi-currency transactions, investment lots, budgets, saved queries and sample receipts. You can browse, run queries and export CSV; changes and uploads cannot be saved. See the demo tour.

Plain text you own

Your books are text files in a folder you control: edit them in any editor and keep them in Git. Zhang reads beancount ledgers as they are. Start with your first ledger or bring a beancount ledger.

A web UI on your files

Overview, journals, reports, balance sheet, budgets, commodities, documents and queries. What you record in the browser is written back to your files. Take the tour.

Lots and cost basis

Hold investments at cost and sell them with FIFO, LIFO or STRICT booking, with exact decimal amounts. See lots and cost basis.

Budgets

Monthly envelope budgets: assign money to a budget, then see what you spent and what is left. See budgets.

Documents

Attach receipts and statements to accounts and transactions, from your files or by uploading them in the web UI. See documents.

Queries

A BQL-compatible query language with SELECT, BALANCES and JOURNAL, in the web UI and over the API, with CSV export. See querying.

Plugins

Opt-in WebAssembly plugins check or transform the ledger, or serve their own pages and APIs, with only the capabilities you grant. See plugins and writing plugins.