I Built LocalLedger: An Offline Receipt Organizer That Runs Gemma on Your Own Laptop
说明与用途
LocalLedger 是一款离线发票和收据整理工具,完全在本地运行,生成会计所需的 CSV 和季度报告,既保护隐私又免除订阅费用。
问题
Freelancers need an affordable, privacy‑preserving way to organize receipts and generate accounting reports without relying on cloud OCR services that charge $15–40/month and expose sensitive client data.
结果
LocalLedger delivers a zero‑cost, fully offline receipt‑organizing solution that outputs accounting‑ready CSVs and a detailed quarterly review, protecting client data and eliminating subscription fees.
工作流
- Point LocalLedger at a folder of receipt files.
- Run the CLI command
python -m localledger scan <folder>to parse receipts using the deterministic‑offline engine. - Optionally run
python -m localledger scan <folder> --no-llmto skip the LLM narrative. - Generate a CSV and HTML report in the
out/directory. - Review the quarterly‑review.html for totals, category breakdowns, and accountant questions.
- Import ledger.csv into preferred accounting software.
- Use the local web console via
python -m localledger servefor a printable review page. - Fine‑tune or swap the LLM model via Ollama or an OpenAI‑compatible server on localhost.
- Run tests with
python eval.pyto ensure parsing, categorisation, and fallback behaviour.
证据
LocalLedger is an offline invoice and receipt organizer for freelancers. You point it at a folder of receipts; it reads them on your own laptop, sorts every line into a category, writes an accounting‑ready CSV plus a plain‑language quarterly review, and ends with a list of questions to ask your accountant.
The entire thing runs locally on an open‑weight model, so the numbers never move and the cost per receipt is zero.
Zero third‑party dependencies — the core, the CLI, the web console and the test suite all run on the Python standard library alone.
- 记录日期: 2026-10-14T07:41:20.185Z