An AI-powered personal finance manager that understands natural language
Features β’ Installation β’ Usage β’ Examples β’ Contributing
Smart-Budget-Ollama is an intelligent command-line financial management system that leverages Ollama and Qwen 2.5 (14B) to process natural language inputs and convert them into structured financial data. No more manual categorization or complex interfacesβjust type what you spent or earned, and let AI do the rest!
This project demonstrates:
- π§ LLM Integration for natural language understanding
- π° Personal Finance Management with automatic categorization
- π Data Analytics with visual reports and insights
- π― Goal Tracking to help you achieve financial objectives
- π Privacy-First approach (all data stored locally)
Note: This project is open for collaboration! I'm looking for like-minded developers who want to build and learn together, not for employment.
- Type expenses and income in plain English
- AI automatically categorizes transactions
- Supports multiple transaction formats
- Handles currency conversions
Restaurant Food β’ Cafe & Beverages β’ Groceries β’ Public Transport
Taxi & Ride-share β’ Gas & Parking β’ Clothing β’ Cosmetics
Medicine β’ Utility Bills β’ Internet & Mobile β’ Entertainment
Books & Education β’ Gifts β’ Other
Salary & Wages β’ Bonus & Tips β’ Sale of Goods β’ Investment Income
Gift Received β’ Loan & Borrowing β’ Refund β’ Part-time Work β’ Other
- Budget Status: View your current financial state
- Expense by Category: Detailed breakdown with visual bars
- Income Summary: Track all your income sources
- Recent Transactions: Quick overview of latest activities
- Target Distance: See how far you are from your savings goals
- Smart Reports: AI-powered financial insights
- Set multiple financial goals (car, house, vacation, etc.)
- Track progress automatically
- Get notified when goals are achieved
- Python 3.8 or higher
- Ollama installed and running
- Qwen 2.5 (14B) model pulled
git clone https://github.com/SAEED.S.M/Smart-Budget-Ollama.git
cd Smart-Budget-Ollamapip install -r requirements.txt# Install Ollama (if not already installed)
# Visit: https://ollama.ai/
# Pull the Qwen 2.5 14B model
ollama pull qwen2.5:14bpython financial_manager_usd.py㪠I have $5000 in my account
β
Current budget updated: $5,000.00
π¬ Spent 45 dollars at Starbucks
β
Expense recorded: Cafe & Beverages - $45.00
π° Current Balance: $4,955.00
π¬ Received my salary today, 6000 dollars
β
Income recorded: Salary & Wages - $6,000.00
π° Current Balance: $10,955.00
π¬ I want to buy a MacBook Pro for 2500 dollars
β
New goal added: macbook with price $2,500.00
π Current number of goals: 1
π¬ Show me my expenses by category
π¬ How far am I from my goals?
π¬ What's my budget status?
π¬ Show recent transactions
π¬ Summarize my income
======================================================================
πΈ Total Expenses: $3,456.78
======================================================================
π° Current Balance: $7,498.22
======================================================================
π Expenses by Category:
0. Restaurant Food ββββββββββββββββββββββββββββββββββββββββββ 24.5% β $847.12
1. Cafe & Beverages ββββββββββββββββββββββββββββββββββββββββββ 16.2% β $560.00
2. Supermarket & Groceries ββββββββββββββββββββββββββββββββββββββββββ 28.3% β $978.45
3. Public Transportation ββββββββββββββββββββββββββββββββββββββββββ 5.8% β $200.50
...
π Distance to Goals:
π° Current Budget: $7,498.22
1. macbook:
π― Target Price: $2,500.00
β
Goal achieved! ($4,998.22 extra)
2. car:
π― Target Price: $15,000.00
π Remaining: $7,501.78 (50.0% remaining)
- Python 3.8+ - Core programming language
- Ollama - Local LLM inference engine
- Qwen 2.5 (14B) - Large language model for NLU
- CSV - Transaction storage
- JSON - State management
Smart-Budget-Ollama/
β
βββ financial_manager_usd.py # Main application
βββ transactions.csv # Transaction history (auto-generated)
βββ financial_state.json # Budget & goals state (auto-generated)
βββ requirements.txt # Python dependencies
βββ README.md # Project documentation
βββ LICENSE # MIT License
- Multi-currency support with real-time exchange rates
- Export reports to PDF/Excel
- Recurring transactions (subscriptions, bills)
- Data visualization with charts and graphs
- Budget limits and alerts
- Mobile app integration
- Cloud sync (optional, privacy-focused)
- Custom AI model fine-tuning
- Multi-user support for families
- Integration with bank APIs (read-only)
I'm looking for collaborators who want to learn and build together! This is not a job postingβI'm seeking partners who are passionate about:
- AI/LLM applications
- Personal finance technology
- Open-source development
- Learning by doing
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Add new analytical queries
- Improve the AI prompt engineering
- Create data visualizations
- Add export features
- Write tests
- Improve documentation
- Build a web interface
- Create mobile app
This project is licensed under the MIT License - see the LICENSE file for details.
Saeed Samad Motlagh
- GitHub: @SAEED.S.M
- GitHub ID:
saee87d - Email: [email protected]
If you find this project helpful, please consider:
- β Starring the repository
- π Reporting bugs
- π‘ Suggesting new features
- π€ Contributing code
- π’ Sharing with others
- Ollama - For making local LLM inference accessible
- Alibaba Cloud - For the amazing Qwen models
- The open-source community - For inspiration and tools
This is a personal finance tool for educational and personal use. Always consult with financial professionals for serious financial decisions. Your data is stored locally and never transmitted to external servers (except for LLM inference through Ollama).
Built with β€οΈ by developers, for developers
If you're interested in collaborating on this or future projects, reach out!