LocalLedger - Your private AI expense copilot.
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle LocalLedger — Your Private AI Expense Copilot for Indian Freelancers Your private AI expense copilot. LocalLedger is a local-first AI expense intelligence tool built for Indian freelancers, solo developers, crea

Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle Submission 💸
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle
LocalLedger is a local-first AI expense intelligence tool built for Indian freelancers, solo developers, creators, consultants, and small businesses.
It turns receipts and invoices into a structured, searchable, validated expense ledger using local OCR, deterministic financial validation, SQLite, and an open-weight Gemma model running locally through Ollama.
AI understands the document. Code protects the numbers.
Managing invoices and business expenses can quickly become messy, especially for freelancers and small businesses.
LocalLedger provides a privacy-focused workflow for turning financial documents into useful structured information:
IMPORT → EXTRACT → UNDERSTAND → VALIDATE → CLASSIFY → REVIEW → ANALYZE → EXPORT
LocalLedger then processes the document locally and extracts information such as:
The extracted information is then validated using deterministic rules before being stored in the expense ledger.
Financial documents contain sensitive information.
Instead of sending invoices and receipts to a cloud AI service, LocalLedger is designed around a local-first architecture.
The goal is to keep financial documents and AI processing under the user's control.
This makes LocalLedger particularly useful for people who don't want their financial documents uploaded to third-party AI services.
┌──────────────────────┐ │ User Upload │ │ PDF / JPG / PNG etc. │ └──────────┬───────────┘ │ ▼ ┌──────────────────────┐ │ Document Ingestion │ └──────────┬───────────┘ │ ┌──────────┴───────────┐ │ │ ▼ ▼ ┌─────────────────┐ ┌─────────────────┐ │ Native PDF Text │ │ Local OCR │ │ Extraction │ │ for Scans │ └────────┬────────┘ └────────┬────────┘ │ │ └──────────┬───────────┘ ▼ ┌──────────────────────┐ │ Structured Extraction│ │ Pipeline │ └──────────┬───────────┘ ▼ ┌──────────────────────┐ │ Gemma 3 4B │ │ Local AI Reasoning │ └──────────┬───────────┘ ▼ ┌──────────────────────┐ │ Pydantic Validation │ └──────────┬───────────┘ ▼ ┌──────────────────────┐ │ Financial Validation │ │ & Duplicate Check │ └──────────┬───────────┘ ▼ ┌──────────────────────┐ │ Expense Ledger │ └──────────┬───────────┘ │ ┌─────────────┼─────────────┐ ▼ ▼ ▼ Dashboard Review Export Enter fullscreen mode Exit fullscreen mode 🎥 Demo GitHub Repository: https://github.com/sumeet156/LocalLedger
LocalLedger would not have been possible in the same way without open-source and open-weight technologies.
The project combines open technologies across multiple layers:
More importantly, it allows developers to experiment with privacy-preserving AI applications.
For financial documents, this is especially important.
Instead of asking: "How can I send this document to an AI?"
LocalLedger asks: "How much intelligence can we bring to the user's machine?"