India's First Multi-Agent Personal Finance Platform
9 specialized AI agents orchestrated by OpenClaw for tax planning, FIRE retirement, stock analysis, and couple's financial management.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Next.js Frontend โ
โ Landing โข 9 Agent Pages โข Auth โข Profile โ
โ (Port 3000) โ
โโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BFF Proxy (/api/*)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FastAPI Backend (Port 8000) โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ DhanSarthi (Coordinator) โ โ
โ โ "The Brain" - routes every user query โ โ
โ โ to the right specialist agent โ โ
โ โโโโโโโโฌโโโโโโโฌโโโโโโโฌโโโโโโโฌโโโโโโโฌโโโโโโโฌโโโโโโโโ โ
โ โ โ โ โ โ โ โ
โ โโโโโโผโโโโโโโผโโโโโโโผโโโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโ โ
โ โKarVidโโYojanaโโBazaarโโ Dhan โโNiveshโโ Vidhi โ โ
โ โ Tax โโ FIRE โโStock โโHealthโโ MF โโ Legal โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ Life Event โ โ Couple Planner โ โ
โ โ Marriage, Baby โ โ Joint Finance โ โ
โ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโผโโโโโโโโโโโ
โ OpenClaw Gateway โ
โ (Agent Swarm) โ
โ โ
โ Ollama / GLM-5 โ
โ (LLM Inference) โ
โโโโโโโโโโโโโโโโโโโโโโโ
How it works: User sends a query โ DhanSarthi analyzes intent โ delegates to the right specialist agent (e.g., tax question โ KarVid, retirement โ Yojana) โ returns the combined response. All delegation is handled via the OpenClaw multi-agent swarm protocol.
| # | Agent | Role | Key Features |
|---|---|---|---|
| 1 | KarVid ๐งพ | Tax Wizard | Old vs New regime comparison, 80C/80D deductions, capital gains, Indian Tax Laws DB |
| 2 | YojanaKarta ๐ฏ | FIRE Planner | FIRE number calculation, SIP recommendations, retirement planning |
| 3 | BazaarGuru ๐ | Market Analyst | NSE/BSE stock quotes, top gainers, NIFTY 50 data |
| 4 | DhanRaksha ๐ช | Health Scorer | 8-factor financial health score with personalized suggestions |
| 5 | Niveshak ๐ | Portfolio Advisor | Dynamic XIRR iteration arrays, Sharpe Ratio, Risk matrices |
| 6 | Vidhi โ๏ธ | Compliance Officer | SEBI regulations, legal disclaimers, financial law lookup |
| 7 | DhanSarthi ๐ง | Coordinator | Routes queries to the right agent via OpenClaw multi-agent swarm |
| 8 | Life Event Advisor ๐ | Life Planner | Marriage, child birth, education โ goal-based SIP planning |
| 9 | Couple's Planner ๐ | Joint Finance | Combined budgets, expense splitting, joint debt payoff strategies |
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | Next.js 16, React 19, TypeScript | App Router, SSR/SSG |
| State | Zustand + useLocalStorage |
Persistent Form Caching |
| Styling | Tailwind CSS v4, shadcn/ui | Responsive UI components |
| Backend | FastAPI, Python 3.12 | REST API with 20+ endpoints |
| Database | Prisma 5, SQLite | User profiles, portfolios, chat history |
| AI Orchestration | OpenClaw 2026.3 | Multi-agent swarm coordination |
| LLM Backend | Ollama (local), GLM-5 Cloud | AI inference for agent responses |
| Bots | python-telegram-bot | Telegram integration |
| Testing | Jest, E2E Python tests | 26 deep + 25 routing = 51/51 tests passing |
- Node.js 18+ and npm
- Python 3.11+ (3.12 recommended)
git clone https://github.com/Devguru-codes/AI-Money-Mentor.git
cd AI-Money-Mentorcd backend
python -m venv venv
# Linux/Mac
source venv/bin/activate
# Windows
.\venv\Scripts\activate
pip install -r requirements.txt
uvicorn api_server:app --host 0.0.0.0 --port 8000cd frontend
npm install
npx prisma generate
npx prisma db push
npm run devOnline Deployment:
- Frontend App: http://3.109.186.88:3000
- API Docs: http://3.109.186.88:8000/docs
Local Deployment:
- Frontend App: http://localhost:3000
- API Docs: http://localhost:8000/docs
| Route | Method | Backend Target |
|---|---|---|
/api/karvid |
POST | /karvid/calculate-tax |
/api/yojana |
POST | /yojana/fire-number |
/api/bazaar |
POST | /bazaar/stock-quote |
/api/dhan |
POST | /dhan/health-score |
/api/niveshak |
POST | /niveshak/analyze |
/api/vidhi |
GET | /vidhi/disclaimers |
/api/dhan-sarthi |
POST | /dhan-sarthi/route |
/api/life-event |
POST/GET | /life-event/plan, /life-event/types |
/api/couple-planner |
POST | /couple/finances, /couple/budget, /couple/debt-payoff |
Click to expand full endpoint list
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Service info + all 9 agents |
/health |
GET | Health check |
| KarVid | ||
/karvid/calculate-tax |
POST | Calculate tax (old/new regime) |
/karvid/compare-regimes |
POST | Compare old vs new regime |
/karvid/80c |
POST | Calculate 80C deductions |
/karvid/capital-gains |
POST | STCG/LTCG tax |
/karvid/section/{section} |
GET | Tax law lookup |
| YojanaKarta | ||
/yojana/fire-number |
POST | Calculate FIRE number |
/yojana/sip-recommendation |
POST | SIP recommendation |
/yojana/retirement-plan |
POST | Full retirement plan |
| BazaarGuru | ||
/bazaar/stock-quote |
POST | Stock quote from NSE |
/bazaar/top-gainers |
GET | Top gaining stocks |
/bazaar/nifty50 |
GET | NIFTY 50 list |
| DhanRaksha | ||
/dhan/health-score |
POST | 8-factor health score |
| Niveshak | ||
/niveshak/analyze |
POST | Portfolio analysis |
/niveshak/risk-metrics |
POST | Risk metrics |
| Vidhi | ||
/vidhi/disclaimers |
GET | SEBI disclaimers |
/vidhi/regulations |
GET | SEBI regulations |
| Life Event | ||
/life-event/types |
GET | Supported event types |
/life-event/plan |
POST | Event financial plan |
/life-event/comprehensive |
POST | Full event analysis |
| Couple Planner | ||
/couple/finances |
POST | Combined finances |
/couple/plan |
POST | Joint financial plan |
/couple/budget |
POST | 50/30/20 budget |
/couple/split-expense |
POST | Expense splitting |
/couple/debt-payoff |
POST | Joint debt strategy |
Create .env in the project root:
# Database
DATABASE_URL="file:./frontend/prisma/dev.db"
# Backend URL (for frontend BFF proxy)
BACKEND_URL=http://localhost:8000
# OpenClaw Agent Swarm (configured via openclaw CLI on the server)
# Uses Ollama for local inference or GLM-5 Cloud for hosted AI
# No API key needed in .env โ managed by OpenClaw gateway
# Telegram Bots (optional, get from @BotFather)
DHANSARTHI_BOT_TOKEN=your_token
KARVID_BOT_TOKEN=your_token# Deep Agent Tests โ 26/26
cd backend
python3 tests/deep_agent_test.py
# Greeting & Routing Tests โ 25/25
python3 tests/greeting_test.py
# Build Verification
cd frontend
npx next buildAI-Money-Mentor/
โโโ frontend/ # Next.js 16 + React 19
โ โโโ src/app/
โ โ โโโ agents/ # 9 agent UI pages
โ โ โ โโโ karvid/ # Tax Wizard
โ โ โ โโโ yojana/ # FIRE Planner
โ โ โ โโโ bazaar/ # Market Analyst
โ โ โ โโโ dhan/ # Health Scorer
โ โ โ โโโ niveshak/ # Portfolio Advisor
โ โ โ โโโ vidhi/ # Compliance Officer
โ โ โ โโโ dhan-sarthi/ # Coordinator (Swarm Hub)
โ โ โ โโโ life-event/ # Life Event Planner
โ โ โ โโโ couple-planner/ # Joint Finance Manager
โ โ โโโ api/ # 14 BFF proxy routes
โ โโโ prisma/schema.prisma # DB models
โ โโโ __tests__/ # Jest test suite
โ
โโโ backend/ # FastAPI + Python 3.12
โ โโโ agents/
โ โ โโโ karvid/ # Indian tax engine
โ โ โโโ yojana/ # FIRE calculator
โ โ โโโ bazaar/ # NSE stock data
โ โ โโโ dhan/ # Health score (8-factor)
โ โ โโโ niveshak/ # Portfolio analyzer
โ โ โโโ vidhi/ # SEBI compliance
โ โ โโโ dhan_sarthi/ # Query coordinator
โ โ โโโ life_event/ # Life event planner
โ โ โโโ couple_planner/ # Couple finance planner
โ โโโ bots/ # Telegram bot integrations
โ โโโ api_server.py # FastAPI app (20+ endpoints)
โ โโโ chat_bridge.py # OpenClaw โ SQLite bridge
โ โโโ tests/e2e_test.py # Integration tests
โ
โโโ .openclaw/ # Agent swarm configuration
โโโ agents/ # 9 agent definitions
โโโ SKILL.md # Swarm coordination rules
The project runs on an AWS EC2 instance:
# SSH into the instance
ssh -i your-key.pem ubuntu@your-ip
# Pull latest code
cd ~/ai-money-mentor
git pull origin main
# Start backend
cd backend
source venv/bin/activate
nohup uvicorn api_server:app --host 0.0.0.0 --port 8000 &
# Build & start frontend (production)
cd ../frontend
npm run build
npm run start -- -p 3000 &
# Or use PM2 (recommended โ auto-restart on crash):
pm2 restart allNote: Ensure ports 3000 and 8000 are open in your AWS Security Group. The production instance uses PM2 for process management with 3 services:
frontend,backend, andopenclaw-node.
MIT License โ See LICENSE
Devguru Tiwari
- ๐ IIIT Nagpur (BT23CSD060)
- ๐ง bt23csd060@iiitn.ac.in
- ๐ @Devguru-codes
๐ฎ๐ณ Built for India's Financial Future
Empowering every Indian with AI-driven personal finance