Your Spending Has Clues. We Investigate Them.
What I Built
A friend once told me:
โI earn money every month, but somehow I don't know where it all goes.โ
That sounded less like a budgeting problem and more like an investigation.
So I built Money Detective โ an open-source AI-powered spending investigator that analyzes transaction history and looks for unusual patterns, spending leaks, recurring habits, and areas where money could potentially be saved.
Instead of simply showing another collection of charts, Money Detective tries to answer:
โWhat is actually happening with my money?โ
You can upload a transaction CSV, and Money Detective:
- ๐ Analyzes your spending
- ๐ Detects spending patterns and potential leaks
- ๐งฎ Calculates the underlying numbers deterministically
- ๐ค Uses an open-weight AI model to interpret the findings
- ๐ฌ Lets you ask questions about your spending
- ๐ Keeps the AI workflow local when running the full version with Ollama
The idea is simple:
Pandas finds the evidence. The open-source AI explains the evidence.
๐ Try It
Live Demo:
๐ https://money-detective-omega.vercel.app/
The app also includes Try Demo Data, so you can explore the investigation without uploading your own financial information.
๐ป Code
GitHub:
๐ https://github.com/uttamofficial/Money-Detective
If your actual repository URL is different, replace the link above.
How I Built It
The project uses a combination of deterministic data analysis and open-source AI.
Frontend
- Next.js
- TypeScript
- Tailwind CSS
- Recharts Backend
- FastAPI
- Python
- Pandas
- NumPy AI
- Ollama
- Qwen2.5 3B
- Open-weight/local inference Architecture Transaction CSV โ Python / Pandas โ Data Cleaning & Categorization โ Spending Analytics โ Pattern Detection โ Structured Evidence โ Open-Weight AI โ Money Detective โ Human-Friendly Investigation
A deliberate design decision was to not let the LLM calculate financial facts from scratch.
The Python analytics layer calculates the numbers first. The AI receives those structured findings and focuses on interpreting and explaining them.
This makes the system much easier to ground and verify.
๐ค Why Open Innovation Matters
Financial data is sensitive.
I didn't want the core experience to depend on sending someone's transaction history to a proprietary AI API.
Money Detective uses Ollama + an open-weight model for the AI investigation layer, allowing the complete AI workflow to run locally.
That means the model can be changed without redesigning the application.
For example:
Qwen2.5 3B
โ
โโโ another Qwen model
โโโ Gemma
โโโ Llama
โโโ another compatible open model
The application isn't locked to a single AI provider.
That's one of the things I really liked about building this with open-source AI.
๐ What Makes It Different?
There are already hundreds of budgeting and expense-tracking applications.
I wasn't trying to build another one.
The idea behind Money Detective is:
Don't just show me where I spent money. Investigate why my spending looks the way it does.
For example, instead of simply displaying:
Dining โ โน12,400
the investigation layer can identify patterns and turn the underlying analytics into a more useful explanation.
The goal is to make financial data feel more like an investigation than a spreadsheet.
๐ง What I Learned
The biggest lesson from this project was:
Don't use an LLM for everything.
For financial data, calculations should be deterministic.
Things like:
- totals
- averages
- percentages
- category spending
- transaction counts
- date ranges
are better handled by Python.
Then the AI can focus on what it is good at:
understanding patterns, reasoning over structured evidence, and explaining findings in a human-friendly way.
That separation made the application more reliable and also made it easier to validate the AI's responses.
๐จโ๐ป Built for a Friend
The original problem came from a simple conversation with a friend who struggled to understand where their monthly money was going.
Instead of building something only for myself, I wanted to turn that real problem into a small open-source product that someone could actually use.
My friend's reaction:
โI liked that it didn't just show me where I spent money. It actually helped me understand some of my spending patterns and where I could potentially save.โ
I intentionally want to keep this part genuine rather than inventing a reaction for the submission.
๐ ๏ธ Built With
Next.js ยท TypeScript ยท Tailwind CSS ยท FastAPI ยท Python ยท Pandas ยท NumPy ยท Recharts ยท Ollama ยท Qwen2.5
๐ Privacy by Design
The full local setup is designed around keeping financial information local.
No proprietary AI API is required for the core AI investigation.
The production demo also includes a graceful fallback because Ollama itself cannot run directly inside the Vercel deployment environment.
โค๏ธ Why I Built This
I wanted to build something small, useful, and actually connected to a real person's problem.
Not another generic AI chatbot.
Not another expense dashboard.
A little detective for your money.
Your spending has clues. We investigate them. ๐ต๏ธ
Top comments (0)