clawcost

Track OpenClaw agent costs. Check daily/weekly spending and model breakdown.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "clawcost" with this command: npx skills add shallify/clawcost

ClawCost

Run this command:

python3 {baseDir}/scripts/clawcost.py --budget 10

Output

JSON with:

  • balance: {initial, spent, remaining} or null
  • today: cost, budget, pct
  • week: total week cost
  • total: all-time cost, tokens
  • models: breakdown all-time
  • models_today: breakdown for today only
  • daily: 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 balance is 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

AgentOctopus

Use when you need to route a user query to the best specialized skill — AgentOctopus semantically matches queries against installed skills, executes the top...

Registry SourceRecently Updated
Automation

My Clean Skill

A skill that enables AI agents to create and verify decentralized identities using Billions Network.

Registry SourceRecently Updated
Automation

Openclaw Memory Master

AI Memory System with LLM Wiki

Registry SourceRecently Updated
Automation

Email Excel Transfer

Pobieranie załączników z maila przez IMAP i wypełnianie plików Excel przez PowerShell. Użyj gdy użytkownik prosi o pobranie plików z email i wstawienie warto...

Registry SourceRecently Updated