๐Ÿ“Š

UK Accounting

Double-entry bookkeeping, VAT tracking, Profit & Loss, Balance Sheet โ€” all in a local SQLite ledger targeting HMRC Making Tax Digital.

๐Ÿ‡ฌ๐Ÿ‡ง UK Chart of Accounts ๐Ÿ“‹ MTD-ready ๐Ÿ”’ Local SQLite ๐Ÿค– AI-parseable JSON output

Double-Entry Ledger

Every transaction balanced to the penny โ€” debits always equal credits

Date โ”‚ Account โ”‚ Debit (ยฃ) โ”‚ Credit (ยฃ) โ”‚ VAT โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€ 2026-04-01 โ”‚ 4000 Sales Revenue โ”‚ โ”‚ 1,200.00 โ”‚ S20 2026-04-01 โ”‚ 2200 VAT Control โ”‚ โ”‚ 240.00 โ”‚ 2026-04-01 โ”‚ 1100 Trade Debtors โ”‚ 1,440.00 โ”‚ โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€ 2026-04-05 โ”‚ 6100 Office Expenses โ”‚ 85.00 โ”‚ โ”‚ S20 2026-04-05 โ”‚ 2200 VAT Control โ”‚ 17.00 โ”‚ โ”‚ 2026-04-05 โ”‚ 1200 Bank Current โ”‚ โ”‚ 102.00 โ”‚
๐Ÿ“š

UK Chart of Accounts

Standard UK account codes out of the box โ€” assets, liabilities, equity, income and expenses mapped to HMRC categories. Extend with custom accounts as needed.

๐Ÿ—„๏ธ

SQLite ledger

All data stored in ~/.chameleon/accounting/<company>/ledger.db. Runs completely offline. Multiple company support โ€” switch between entities with a command flag.

๐Ÿ“…

UK tax year

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.

๐Ÿ”

Forensic anomaly scan

Run --forensic to detect unbalanced entries, duplicate references, VAT mismatches and other irregularities. Results printed as structured JSON for AI review.

๐Ÿค–

AI-readable output

All reports output structured JSON to stdout so the Chameleon AI can parse, summarise and advise on your financial position in natural language.

๐ŸŒ

WebSocket bridge

The accounting WebSocket bridge (acct_ws_bridge.py) exposes ledger queries to the mobile companion and external dashboards over your Tailscale network.

VAT Codes Supported

S20

Standard rate 20%

R5

Reduced rate 5%

Z

Zero-rated

E

Exempt

O

Out of scope

Reports

๐Ÿ“ˆ

Profit & Loss

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.

โš–๏ธ

Balance Sheet

Assets, liabilities and equity at a point in time. Confirms double-entry integrity โ€” assets must equal liabilities plus equity. Run with --report bs.

๐Ÿงพ

VAT Return Summary

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.

CLI Quick Reference

CommandDescription
python3 chameleon_accounting.py --report plProfit & Loss for current tax year
python3 chameleon_accounting.py --report bsBalance Sheet as of today
python3 chameleon_accounting.py --report vatVAT return summary (MTD boxes)
python3 chameleon_accounting.py --forensicAnomaly & integrity scan
python3 chameleon_accounting.py --helpFull command reference

Streamline your UK bookkeeping

Purpose-built for freelancers and small businesses operating under UK tax rules.

Get in touch โ† Back to overview