Double-entry bookkeeping, VAT tracking, Profit & Loss, Balance Sheet โ all in a local SQLite ledger targeting HMRC Making Tax Digital.
Every transaction balanced to the penny โ debits always equal credits
Standard UK account codes out of the box โ assets, liabilities, equity, income and expenses mapped to HMRC categories. Extend with custom accounts as needed.
All data stored in ~/.chameleon/accounting/<company>/ledger.db. Runs completely offline. Multiple company support โ switch between entities with a command flag.
Year-end correctly set to 5 April (UK fiscal year 6 Apr โ 5 Apr). P&L and VAT reports automatically span the correct period without manual date adjustment.
Run --forensic to detect unbalanced entries, duplicate references, VAT mismatches and other irregularities. Results printed as structured JSON for AI review.
All reports output structured JSON to stdout so the Chameleon AI can parse, summarise and advise on your financial position in natural language.
The accounting WebSocket bridge (acct_ws_bridge.py) exposes ledger queries to the mobile companion and external dashboards over your Tailscale network.
Standard rate 20%
Reduced rate 5%
Zero-rated
Exempt
Out of scope
Income vs expenses for the period. Sales, cost of goods, gross profit, operating expenses, net profit โ all broken down by account code. Run with --report pl.
Assets, liabilities and equity at a point in time. Confirms double-entry integrity โ assets must equal liabilities plus equity. Run with --report bs.
Box-by-box VAT figures matching the HMRC MTD VAT return format: Box 1 (output tax), Box 4 (input tax), Box 6 (net sales), Box 7 (net purchases). Run with --report vat.
| Command | Description |
|---|---|
python3 chameleon_accounting.py --report pl | Profit & Loss for current tax year |
python3 chameleon_accounting.py --report bs | Balance Sheet as of today |
python3 chameleon_accounting.py --report vat | VAT return summary (MTD boxes) |
python3 chameleon_accounting.py --forensic | Anomaly & integrity scan |
python3 chameleon_accounting.py --help | Full command reference |
Purpose-built for freelancers and small businesses operating under UK tax rules.
Get in touch โ Back to overview