Install
openclaw skills install dex-cost-guardianMonitor and control OpenClaw API costs. Tracks token usage across all sessions, estimates spend by model, alerts on budget overruns, and recommends cheaper model routing for routine tasks. Use when: asking about costs, checking spend, setting budgets, or optimizing API usage.
openclaw skills install dex-cost-guardianKnow what your agent costs. Before it becomes a problem.
✅ USE this skill when:
❌ DON'T use this skill for:
python3 scripts/cost-report.py --all
python3 scripts/cost-report.py --hours 24
python3 scripts/cost-report.py --budget 5.00
python3 scripts/cost-report.py --all --json
Tell your agent:
"Set up a daily cost report that runs at 8 AM and alerts me if I'm over $5/day"
The agent should create a cron job that:
python3 <skill-dir>/scripts/cost-report.py --hours 24 --budget 5.00The report flags when expensive models (Opus) are being used for routine tasks that Sonnet handles fine:
| Model | Input $/1M | Output $/1M | Cache $/1M |
|---|---|---|---|
| Claude Opus 4 | $15.00 | $75.00 | $1.875 |
| Claude Sonnet 4 | $3.00 | $15.00 | $0.30 |
| Claude Haiku 3.5 | $0.80 | $4.00 | $0.08 |
| GPT-4o | $2.50 | $10.00 | $1.25 |
| GPT-4.1 | $2.00 | $8.00 | $0.50 |
| GPT-4.1-mini | $0.40 | $1.60 | $0.10 |
| GPT-4.1-nano | $0.10 | $0.40 | $0.025 |
| OpenRouter/auto | ~$3.00 | ~$15.00 | ~$0.30 |
Pricing is estimated and may vary. Update scripts/cost-report.py MODEL_PRICING dict for current rates.