Cost tracker skill
Production AI agent skills for OpenClaw — extracted from a real personal AI OS. RAG memory, safety guards, cost tracking, architect agent and more.
npx -y skills add Mickos79/aria-skills --skill cost-tracker-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.0 KB, 283 tokens by cl100k_base, as published. Nobody here has run it
Cost Tracker Skill — API Spend Monitoring
Monitors OpenRouter API usage and sends alerts when daily spend exceeds threshold.
How it works
- Hourly cron calls OpenRouter
/auth/keyendpoint - Compares current usage vs last logged value
- If delta > daily limit → sends Telegram alert
Setup
# Add to crontab (runs every hour)
0 * * * * node /path/to/cost-tracker.js
Configuration
const DAILY_LIMIT = 20; // USD — alert threshold
const CHAT_ID = 'YOUR_TELEGRAM_USER_ID';
Alert format
⚠️ ARIA Cost Alert
Расход за сегодня: $23.40
Лимит: $20/день
Итого: $234.50
Endpoints used
GET https://openrouter.ai/api/v1/auth/key— returnsusagefield (cumulative USD)
Log format
2026-03-25T09:00:00Z used: 197.71 today_delta: 4.23
Why cumulative, not daily
OpenRouter only exposes total usage. Daily delta = current - previous reading. First run logs baseline; subsequent runs calculate delta.