Install
openclaw skills install @whooshinglander/whereamiburningtokensReads only ~/.openclaw/agents/main/sessions/sessions.json to show exactly where OpenClaw tokens and estimated cost are going by session type. Read-only diagnostic skill, no writes, no deletes, no command execution, no network exfiltration.
openclaw skills install @whooshinglander/whereamiburningtokensReads only ~/.openclaw/agents/main/sessions/sessions.json and shows a token + cost breakdown by session category.
~/.openclaw/agents/main/sessions/sessions.json~/.openclaw/agents/main/sessions/sessions.json
Each session entry has:
totalTokens, inputTokens, outputTokens, cacheRead, cacheWriteestimatedCostUsdmodel, modelProviderstartedAt, updatedAt (Unix ms timestamps)Session keys: agent:main:<category>:<optional-id>
Categories (3rd segment of key):
main — interactive chatcron — heartbeats + scheduled taskssubagent — spawned sub-agentspaperclip — Paperclip logging (if installed)Detect from user's phrasing:
Filter by updatedAt >= cutoff_ms.
Read and parse sessions.json. If missing, say so and stop.
Filter by time window based on user's phrasing.
Group by category (3rd : segment of key). Sum totalTokens and estimatedCostUsd.
Sort by tokens descending. Calculate % of total for both tokens and cost.
Flag anomalies:
Output the table and 1-2 insight lines.
🔥 WHERE AM I BURNING TOKENS? (last 7 days)
66 sessions | 2.8M tokens | $100.65 est.
Category Sess Tokens Tok% Cost Cost%
──────────────────────────────────────────────────────────
paperclip 26 997k 36.1% $ 5.79 5.8% ⚠️ SINKHOLE
subagent 22 795k 28.8% $ 9.49 9.4%
cron 16 692k 25.1% $ 48.61 48.3% ⚠️ EXPENSIVE
main 1 274k 10.0% $ 36.76 36.5%
💡 paperclip is eating 36% of tokens on a cheap model.
High volume, low cost = lots of context for little output. Consider disabling.
💡 cron costs 48% of spend. Verify heartbeat model is Haiku or a local model, not Sonnet.
Format token counts: 1.2M / 692k / 344. Keep table tight, no padding.
Only if the user explicitly asks to log an improvement or track savings:
~/.openclaw/workspace/memory/token-diet-log.mdFormat:
## Token Diet Log
| Date | Change | Tokens Before | Tokens After | Cost Saved/wk |
|---|---|---|---|---|
| 2026-04-05 | Disabled Paperclip | 68% | 36% | ~$5.79 |
estimatedCostUsd is OpenClaw's estimate, not exact billingmain being expensive is expected (interactive Sonnet sessions), don't flag it.jsonl files, sessions.json has everything needed