Back to Registry View Author Profile
Official Verified
clawcost
Track OpenClaw agent costs. Check daily/weekly spending and model breakdown.
skill-install ā Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/shallify/clawcostOr
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< 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
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build ā we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-shallify-clawcost": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.