Skip to content
Back to skills

Cost Tracker

ASecurity

Real-time cost tracking across all agent sessions with budget alerts

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 27, 2026
data-aiapi

Works with

  • api

Security analysis

A92/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned May 27, 2026

npx -y skills add KevinZai/commander --skill cost-tracker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cost Tracker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cost Tracker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kevinzai-cost-tracker/badge)](https://www.skillsdirectory.com/skills/kevinzai-cost-tracker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cost-tracker
description: "Real-time cost tracking across all agent sessions with budget alerts"
triggers: ["cost", "spending", "budget", "how much", "token usage", "burn rate"]
---

# /cost — Cost Tracker

Agent HQ API at localhost:3005. Shows spending across all Claude sessions.

## When activated:

Run: `curl -s http://localhost:3005/api/costs`

Parse the JSON and display:
```
Cost Dashboard
═══════════════════════════════
Today:     $[today]     ([todayTokens] tokens)
Yesterday: $[yesterday] ([yesterdayTokens] tokens)
Total:     $[total]     ([totalTokens] tokens)

By Agent:
  [agent1]  $[cost]  [██████████░░░░░░]  [messages] msgs
  [agent2]  $[cost]  [████░░░░░░░░░░░░]  [messages] msgs
  ...
```

Then present via AskUserQuestion:

| Option | What it does |
|--------|-------------|
| View daily breakdown (Recommended) | Show cost per day for last 7 days |
| View by agent | Show cost per agent with message counts |
| View by model | Group costs by model (opus/sonnet/haiku/flash) |
| Set budget alert | Ask threshold, save to state |
| Something else | Free text |

### Budget Alert

If daily cost > $5, show warning:
```
⚠️  Daily spend: $[amount] (threshold: $5.00)
```

### After every action, suggest next steps via AskUserQuestion.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…