Manavarya09

Real-time cost tracking and budget management for Claude Code. Zero setup. No Docker. No Grafana. Just install and go.

12
0
100% credibility
Found Mar 31, 2026 at 14 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
JavaScript
AI Summary

Cost Guardian is a plugin for Claude Code that provides real-time cost tracking, budget enforcement, pre-task estimates, and detailed spending reports based on estimated token usage from tool calls.

How It Works

1
๐Ÿ‘€ Hear about Cost Guardian

You discover this handy tool while frustrated with surprise bills from AI coding sessions, promising to track every penny spent.

2
๐Ÿš€ Install with one command

You add it to your AI coding helper super simply, no hassle, and it's ready in seconds.

3
๐Ÿ’ฐ Set your personal budget

You pick a spending limit like $5 per session or $25 a day, choosing if it warns or stops you when reached.

4
๐Ÿ“Š Watch costs update live

As you code with AI tools, you see instant feedback like '+ $0.03 for reading files' and your total session spend right there.

5
๐Ÿ”ฎ Estimate costs for new tasks

Before tackling a big job like refactoring code, you ask for a quick prediction of how much it'll cost across different AI brains.

6
๐Ÿ“ˆ Pull up spending reports

You check colorful charts showing breakdowns by tool, day, or even git branch, with trends and remaining budget bars.

โœ… Master your AI spending

Now you work confidently, never overspending, exporting data if needed, and always knowing your burn rate.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 14 to 12 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is cost-guardian?

Cost Guardian is a JavaScript plugin for Claude Code that provides real-time cost tracking and budget management, estimating token usage and USD spend per tool call like Read or Agent. It hooks into sessions to display live feedback such as "+$0.03 (Read) | Session: $2.41", generates ASCII reports on burn rates and breakdowns, and offers pre-task estimates via `/cost-estimate "add OAuth"`. Users get zero-setup visibility into real-time cost monitoring, preventing surprise bills on Anthropic models.

Why is it gaining traction?

Unlike Grafana or Docker-heavy trackers, it installs instantly via Claude's marketplace with no config, delivering immediate per-tool costs, multi-model comparisons, and hard budget blocks that actually stop overspend. Slash commands like `/cost-report branch` reveal git-branch expenses, CSV exports, and session summaries hook developers craving real-time cost control without infrastructure. The local SQLite storage keeps data private, standing out for Claude Code power users tired of guessing.

Who should use this?

Claude Code devs on Pro/Max plans hitting daily limits during refactors or feature branches. Teams enforcing weekly budgets for AI-assisted coding marathons. Anyone estimating real-time costs for tasks like "fix auth bug" before committing tokens.

Verdict

Grab it if you're deep in Claude Code and need real-time cost awarenessโ€”docs are solid, features polished for v2.0. But with 12 stars and 1.0% credibility, it's early-stage; test in low-stakes sessions before production reliance.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.