Install
openclaw skills install oee-ai-cost-trackerTracks AI API usage by logging calls, reporting spending by model and period, and suggesting cheaper models to optimize costs.
openclaw skills install oee-ai-cost-trackerby Odin's Eye Enterprises — Ancient Wisdom. Modern Intelligence.
Track every AI API call, generate spend reports, and get routing suggestions to cut costs.
from tracker import log_usage
log_usage(model="claude-3-haiku", input_tokens=500, output_tokens=200, task="humanize")
# Full spend report
python report.py
# Last 7 days
python report.py --days 7
# By model
python report.py --by-model
tracker.py — logging library, import into your toolsreport.py — CLI dashboard for spend analysispricing.json — model pricing data (update as needed)To check spending: python report.py
To log usage from other tools: from tracker import log_usage