Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Manavarya09v2.0.0MITIn 1 marketplace
Tracks session spend against budgets, blocking tool calls once a hard session limit is reached. Claims zero setup and no external services, but hooks must be added to settings for limits to apply and it needs sqlite3 and Node.js.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
cost-tracking, budget-limits, token-usage, burn-rate, spend-monitoring, cost-estimation, cost, budget ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
The only Claude Code cost tool that tells you WHERE you're wasting money and HOW to stop.
Other tools show what you spent. Cost Guardian shows what you wasted, what you got for it, and what you could have saved — with an efficiency score, ROI metrics, and model savings calculator that no other tool has.
Zero setup. No Docker. No Grafana. Just install and go.
Every cost tracking tool shows you a number. Cost Guardian gives you intelligence:
| Feature | Cost Guardian | ccusage | claude-code-otel | Built-in /cost |
|---|---|---|---|---|
| Real-time tracking | ✅ | ❌ (post-hoc) | ✅ | ✅ |
| Budget guardrails | ✅ | ❌ | ❌ | ❌ |
| Waste detection | ✅ | ❌ | ❌ | ❌ |
| Efficiency score | ✅ | ❌ | ❌ | ❌ |
| Cost-per-line ROI | ✅ | ❌ | ❌ | ❌ |
| Model savings calculator | ✅ | ❌ | ❌ | ❌ |
| Anomaly detection | ✅ | ❌ | ❌ | ❌ |
| GitHub badge | ✅ | ❌ | ❌ | ❌ |
| Per-branch costs | ✅ | ❌ | ❌ | ❌ |
| Multi-model comparison | ✅ | ❌ | ❌ | ❌ |
| CSV/JSON export | ✅ | ✅ | ✅ | ❌ |
| Zero setup | ✅ | ✅ | ❌ (Docker) | ✅ |
Every session gets a score from 0-100 showing how efficiently you're spending:
Efficiency Score: 68/100
██████████████░░░░░░ Good
Wasted: $1.43 of $4.71 (30%)
14 redundant file reads ($0.82)
3 failed/empty bash commands ($0.34)
2 calls were 3x+ more expensive than average ($0.27)
Know what you're getting for your money:
Cost per line: $0.03/line
Lines added: +247
Lines removed: -89
Cost per commit: $1.18/commit
See how much you could save with different models:
Current spend: $4.71
Cheapest option: $1.02 (Claude Haiku 4.5)
Potential saving: $3.69 (78% cheaper)
Catches runaway sessions before they drain your limits:
ANOMALY: 3.2x your average session cost
This session: $14.20 | Average: $4.40
Top driver: Agent ($9.80, 4x)
Add your AI development cost to your README:

Every Claude Code user has been there:
There's no built-in way to see what you're spending as you spend it. Existing solutions require Docker, Grafana, or OpenTelemetry infrastructure. Most developers just... guess.
Cost Guardian is a Claude Code plugin that gives you full cost visibility with zero setup:
╔══════════════════════════════════════════════╗
║ COST GUARDIAN - Session Report ║
╠══════════════════════════════════════════════╣
║ Total Cost: $2.41 ║
║ Total Tokens: 12.3K ║
║ Duration: 18.2 min ║
║ Burn Rate: $0.13/min ║
╠══════════════════════════════════════════════╣
║ Budget: $5.00 (hard) ║
║ Used: ████████████░░░░░░░░ 48% ║
║ Remaining: $2.59 ║
║ Time to limit: ~20 min ║
╠══════════════════════════════════════════════╣
║ Per-Tool Breakdown ║
╠══════════════════════════════════════════════╣
║ Agent ███████████████ $1.20 ( 3x) ║
║ Read ████████ $0.62 (28x) ║
║ Edit █████ $0.34 (12x) ║
║ Bash ███ $0.18 ( 8x) ║
║ Grep ██ $0.07 (15x) ║
╚══════════════════════════════════════════════╝
Every tool call is automatically tracked via hooks. No manual logging. No configuration.
Set spending limits that actually enforce themselves:
Before starting work, get a cost prediction:
/cost-estimate add user authentication with OAuth
Cost Estimate: Add user authentication with OAuth
Complexity: High
Est. Reads: 15-25 files
Est. Edits: 8-12 files
Est. Tools: 60-90 total tool calls
7-day copy clicks
npx claudepluginhub manavarya09/cost-guardian --plugin cost-guardianBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground