Claude Usage Tracker
/install claude-usage-tracker
Skill: Claude.ai Usage Tracker
Last used: 2026-03-24 Memory references: 1 Status: Active
Owner: Becky
Tool: scripts/claude-usage-tracker.py
State file: ~/.openclaw/workspace/memory/claude-usage-tracker.json
Python: /Users/loki/.pyenv/versions/3.14.3/bin/python3
When to Use This Skill
Activate whenever Nissan asks about:
- "How much Claude am I using?"
- "How close am I to the limit?"
- "Will I run out this week?"
- "What's my extra usage spend?"
- "How much credit do I have left?"
- "Is Sonnet nearly full?"
- Any question about claude.ai usage, limits, or billing
Quick Commands
Check current status
python3 scripts/claude-usage-tracker.py status
This shows: current % for session / all-models / Sonnet, extra spend, balance, Langfuse API usage.
See next-week projection
python3 scripts/claude-usage-tracker.py project
Shows daily burn rate, days to exhaustion, 7-day forecast table.
List recent snapshots
python3 scripts/claude-usage-tracker.py snapshots --last 5
Logging a New Snapshot (when Nissan shares data)
When Nissan tells you percentages from his claude.ai dashboard:
python3 scripts/claude-usage-tracker.py log \
--session \x3CSESSION_PCT> \
--all-models \x3CALL_MODELS_PCT> \
--sonnet \x3CSONNET_PCT> \
--extra-spend \x3CDOLLARS_SPENT> \
--extra-limit 200 \
--balance \x3CBALANCE_DOLLARS> \
--notes "\x3Coptional notes>"
Optional reset timers (minutes from now until reset):
--reset-session \x3Cminutes> # e.g. 213 for 3h33m
--reset-all \x3Cminutes> # e.g. 333 for 5h33m
--reset-sonnet \x3Cminutes> # e.g. 453 for 7h33m
Example (from the Mar 20 snapshot):
python3 scripts/claude-usage-tracker.py log \
--session 2 --all-models 58 --sonnet 95 \
--extra-spend 73.83 --extra-limit 200 \
--balance 23.69 \
--reset-session 213 --reset-all 333 --reset-sonnet 453 \
--notes "promo_window"
After logging, always run status to confirm and share the output with Nissan.
Answering "Best Guess for Next Week"
- Run
python3 scripts/claude-usage-tracker.py project - Read the 7-day projection table — this shows projected % per day
- Check confidence level — tell Nissan if it's LOW/VERY LOW (needs more snapshots)
- Note: Projections during the promo window (Mar 13–27) are promo-corrected — they reflect % of the normal baseline limit, not the doubled promo limit
Script for answering:
"Based on [N] snapshot(s), your daily burn is ~X%/day all-models and ~Y%/day Sonnet. At that rate, next week you'd end at ~Z% Sonnet. [Confidence: LOW — I need more data points over different days to refine this.]"
⚠️ Risk Flags — What to Tell Nissan
Balance low + auto-reload OFF
This is the critical risk. Extra usage charges against the prepaid balance. If balance hits $0, extra usage stops — even if the $200 monthly cap isn't reached.
Tell Nissan:
"⚠️ Your balance is $X with auto-reload OFF. Once this hits $0, any extra usage beyond your included limits stops immediately. You should either top up your balance or enable auto-reload to avoid unexpected blocks."
Current thresholds:
- Balance \x3C $20: 🔴 URGENT — flag immediately
- Balance $20–$50: 🟡 WARN — mention proactively
Sonnet near limit (≥ 95%)
Tell Nissan:
"⚠️ Sonnet weekly usage is at X%. It resets [day/time]. If you hit 100%, you can still use extra usage budget for Sonnet, but it will draw from your balance."
All-models near limit (≥ 95%)
Same as above — when all-models hits 100%, everything stops unless extra usage kicks in.
Extra spend cap approaching
At >80% of $200: warn that heavy use could hit the hard stop before end of month.
Promo Window Handling (March 2026)
Anthropic doubled usage limits Mar 13–27, 2026 outside peak hours.
During the promo:
- The dashboard shows % of the promoted (2x) limit
- 95% during promo = ~47.5% of the normal limit
- The tool automatically corrects for this in projections
- Snapshots are tagged
is_promo_period: trueand promo-corrected values are stored
After Mar 27: Limits return to normal. The first post-promo snapshot will likely show lower absolute usage for the same work.
Config Updates
If auto-reload status changes:
python3 scripts/claude-usage-tracker.py config --auto-reload true
# or
python3 scripts/claude-usage-tracker.py config --auto-reload false
After promo ends:
python3 scripts/claude-usage-tracker.py config --set-promo false
Calibration Notes
More snapshots = better projections. Priority asks for Nissan:
- Capture a snapshot right after a weekly reset (~0% starting point)
- Capture after a heavy usage day (25%+)
- These two give us the true daily burn rate with high confidence
Until we have 3+ multi-day snapshots, always caveat projections as LOW confidence.
Data Sources
| Signal | What it tracks | Reset |
|---|---|---|
| Session % | 5-hour rolling window | Rolling (5h) |
| All-models % | Across all Claude models, weekly | Weekly (Thu ~14:00 AEST) |
| Sonnet % | Sonnet 4.x models only, weekly | Weekly (Thu ~16:00 AEST) |
| Extra spend | Pay-as-you-go overage (API rates) | Monthly (Apr 1) |
| Balance | Prepaid credit remaining | Depletes with extra usage |
| Langfuse tokens | OpenClaw API usage (separate!) | Weekly (Fri 4pm AEST) |
⚠️ Important: Langfuse tracks OpenClaw API key usage, NOT claude.ai web usage. They are separate but may correlate (active project weeks = both go up).
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claude-usage-tracker - 安装完成后,直接呼叫该 Skill 的名称或使用
/claude-usage-tracker触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Claude Usage Tracker 是什么?
Track Claude.ai token usage and session costs by scraping the Claude.ai usage dashboard. Use when you need to monitor spend or compare usage across sessions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。
如何安装 Claude Usage Tracker?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claude-usage-tracker」即可一键安装,无需额外配置。
Claude Usage Tracker 是免费的吗?
是的,Claude Usage Tracker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Claude Usage Tracker 支持哪些平台?
Claude Usage Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claude Usage Tracker?
由 Nissan Dookeran(@nissan)开发并维护,当前版本 v1.0.0。