DEV Community

Cover image for LedgerLens: A Local-First AI Expense Assistant Powered by Open-Weight Models
Tejas Kulkarni
Tejas Kulkarni

Posted on

LedgerLens: A Local-First AI Expense Assistant Powered by Open-Weight Models

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

LedgerLens: A Local-First AI Expense Assistant Powered by Open-Weight Models

What if you could organize your expenses, discover spending patterns, and get AI-powered financial insights without sending your financial data to a cloud AI service?

That's the idea behind LedgerLens, a local-first AI finance assistant designed to make expense management simpler, more accessible, and privacy-conscious.

What I Built

LedgerLens aims to help freelancers, students, consultants, and small businesses organize expenses without depending on expensive financial management software.

Managing expenses manually can be tedious. Transactions are scattered across spreadsheets, receipts get lost in folders, and understanding where money goes takes time.

LedgerLens brings these tasks together in one application.

Key Features

  • Import and organize expense records.
  • Categorize transactions such as food, transport, education, shopping, and subscriptions.
  • Visualize spending patterns through expense summaries.
  • Identify potential duplicate transactions for review.
  • Use AI to assist with expense categorization and natural-language spending queries.
  • Export organized financial data for further analysis.

The goal is to build a practical tool that helps users save time on routine expense organization.

Demo

Watch the project demo on YouTube:

https://youtu.be/s3iNuo4tmX4

Code

GitHub repository:

https://github.com/tejask011/LegderLens

The project uses a modular architecture so document processing, financial calculations, AI integration, and the user interface can evolve independently.

How I Built It

The key architectural decision was to make local open-weight AI a central part of the application, rather than relying on a hosted proprietary AI API for every request.

Technology Stack

  • Frontend: React, TypeScript, and Vite
  • Backend: Python and FastAPI
  • Database: SQLite for local data storage
  • Local AI runtime: Ollama
  • AI models: Compatible open-weight models from the Qwen or Gemma families

The intended workflow combines document processing and deterministic financial calculations with local AI assistance.

The model can help interpret merchant descriptions, suggest expense categories, and explain spending patterns. The application remains responsible for calculations such as transaction totals and category aggregates.

This separation is important: an AI model can suggest an interpretation, but financial totals should be computed and verified by application logic.

Why Does Open Innovation Matter?

For LedgerLens, open innovation is about more than using an open model. It changes how the product can be used and extended.

1. Privacy-first processing

Financial documents may contain sensitive personal and business information. Running a compatible open-weight model locally makes it possible to process that information without sending document contents to a remote AI provider by default.

2. Freedom to choose models

Different users have different hardware and requirements. A model-independent integration makes it possible to experiment with different compatible models as they improve.

3. More predictable AI costs

Local inference avoids mandatory per-request charges from a hosted AI API. Users still need suitable hardware and incur electricity costs, but the core AI workflow does not have to depend on a paid inference service.

4. An application the community can extend

An open-source foundation allows contributors to improve document extraction, add expense categories, introduce import/export formats, test alternative models, and enhance accessibility.

The goal is to build a practical finance assistant that users can inspect, customize, and improve rather than locking the entire experience to one AI provider.

What's Next?

I'm looking forward to improving LedgerLens with:

  • Better invoice and receipt extraction.
  • More reliable expense categorization.
  • Duplicate detection and recurring expense insights.
  • Improved reporting and export options.
  • Additional local model integrations.
  • More tests, documentation, and contributor-friendly issues.

I want the project to grow into something that solves a real problem while demonstrating why open-weight AI can be useful in everyday software.

Join the Conversation

If you work with local AI, open-source models, or personal finance tools, I'd love to hear your thoughts.

What feature would make a local-first expense assistant most useful to you?

Would you prioritize automatic receipt extraction, smarter categorization, recurring expense detection, or more detailed reports?

Thanks for checking out LedgerLens!

Hacktoberfest #OpenSourceAI #LocalAI #Ollama #OpenSource #SideHustle

Top comments (0)