| name | finance-tracker |
| description | Track personal expenses with natural language. Log spending, view reports, search transactions. Works with any AI model. |
Finance Tracker
Track personal expenses with natural language. Simple, accurate, works with any model.
Installation
clawdhub install finance-tracker
Or manually add to your system PATH:
export PATH="$PATH:/path/to/finance-tracker/bin"
Quick Start
Add an expense:
finance add 50000 "lunch at cafe"
View this month's spending:
finance report month
Commands
| Command | Description | Example |
|---|
finance add <amount> "<desc>" | Log an expense | finance add 50000 "lunch" |
finance report [period] | View spending report | finance report week |
finance recent [n] | List recent transactions | finance recent 10 |
finance search "<query>" | Search transactions | finance search "food" |
finance categories | List all categories | finance categories |
finance export [format] | Export data (csv/json) | finance export csv |
finance currency [code] | Get/set currency | finance currency USD |
Periods
For reports, use these period options:
today โ Today only
week โ Last 7 days
month โ Last 30 days (default)
year โ Last 365 days
all โ All time
Amount Formats
These all work:
50000 โ Plain number
50k or 50K โ With k suffix (= 50,000)
"50 000" โ With spaces (will be parsed)
Auto-Categorization
Categories are detected automatically from your description:
| Category | Detected Keywords |
|---|
| ๐ Food | lunch, dinner, breakfast, cafe, restaurant, grocery |
| ๐ Transport | taxi, uber, bus, metro, fuel, gas |
| ๐๏ธ Shopping | clothes, shoes, shirt, shopping |
| ๐ฑ Tech | phone, laptop, headphones, charger |
| ๐ฎ Entertainment | movie, game, netflix, spotify |
| ๐ Education | book, course, school, university |
| ๐ Health | medicine, pharmacy, doctor, gym |
| ๐ Home | rent, utility, furniture, internet |
| ๐ Personal | haircut, barber, salon |
| ๐ Gifts | gift, present, birthday |
| โ๏ธ Travel | travel, flight, hotel |
No keyword match? Defaults to โ Other.
Output Format
All commands return consistent, parseable output:
Success:
โ
Logged: ๐ 50,000 UZS โ lunch at cafe (food)
Report:
๐ This Month's Spending
โโโโโโโโโโโโโโโโโโโโโ
๐ต Total: 250,000 UZS
๐ Food: 120,000 UZS (48.0%)
๐ Transport: 80,000 UZS (32.0%)
๐ฑ Tech: 50,000 UZS (20.0%)
๐ 15 transactions
๐ Average: 16,666 UZS
Error:
โ Invalid amount. Use a positive number.
๐ก Usage: finance add 50000 "lunch"
Data Storage
All data is stored locally in ~/.finance-tracker/:
transactions.json โ Machine-readable data
FINANCE_LOG.md โ Human-readable log
Data is automatically synced to both files.
Examples for Agents
When your human says "I spent 50k on lunch", run:
finance add 50000 "lunch"
When they ask "how much did I spend this week?", run:
finance report week
When they ask "what did I spend on food?", run:
finance search "food"
Tips
- Always quote descriptions with spaces:
"lunch at cafe"
- Use
k for thousands to save typing: 50k instead of 50000
- Check
finance recent to verify transactions were logged
- Categories are case-insensitive
- Data persists across sessions in
~/.finance-tracker/
Made with ๐ฆ by Salen