/install clawcost
ClawCost
Run this command:
python3 {baseDir}/scripts/clawcost.py --budget 10
Output
JSON with:
balance: {initial, spent, remaining} or nulltoday: cost, budget, pctweek: total week costtotal: all-time cost, tokensmodels: breakdown all-timemodels_today: breakdown for today onlydaily: cost per day (last 7 days)
Set Balance
User sets INITIAL balance (when they top up):
python3 {baseDir}/scripts/clawcost.py --set-balance 50.00
Remaining auto-calculates: initial - total_spent
How to Present
Tone: Friendly, like a helpful assistant checking expenses. Use emojis sparingly.
Format: Use tree-style (├ └) for clean output:
💰 clawleaks
├ Balance $42.98 / $50 remaining
├ Today $1.36 / $10 (14%) ✅
├ Week $7.02
└ Total $7.02 (15.5M tok)
📈 Sonnet $3.99 (57%) • Haiku $2.06 (29%) • Opus $0.97 (14%)
Rules:
- Skip $0 models
- Add brief insight ("Opus only 14%, nice savings 👍")
Alerts (IMPORTANT):
- If
today.pct> 80%: Start with ⚠️ "Warning: Daily budget {pct}% used!" - If
today.pct> 100%: Start with 🚨 "OVER BUDGET! ${cost} spent" - If
balance.remaining\x3C 5: Warn "💸 Low balance: ${remaining} left" - If
balanceis null: Suggest "Set initial balance with --set-balance" - If budget is fine: End with ✅
Contextual:
- Quick question → short answer
- Wants detail → full breakdown + daily
- Over budget → always show warning first, suggest switching to Haiku
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clawcost - After installation, invoke the skill by name or use
/clawcost - Provide required inputs per the skill's parameter spec and get structured output
What is ClawCost?
Track OpenClaw agent costs. Check daily/weekly spending and model breakdown. It is an AI Agent Skill for Claude Code / OpenClaw, with 757 downloads so far.
How do I install ClawCost?
Run "/install clawcost" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is ClawCost free?
Yes, ClawCost is completely free (open-source). You can download, install and use it at no cost.
Which platforms does ClawCost support?
ClawCost is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created ClawCost?
It is built and maintained by ShallIfy (@shallify); the current version is v1.0.2.