loplop-h

loplop-h / spent

Public

Claude Code session cost tracker. Efficiency score, productive vs wasted breakdown, live terminal dashboard.

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

spent is a local tracker that monitors Claude Code sessions to estimate costs, score efficiency, and provide breakdowns and tips without any external connections.

How It Works

1
🧐 Wonder about your AI costs

While using Claude Code to help with coding, you start curious how much each session really costs in AI usage.

2
📥 Get spent ready

You add the spent tracker to your computer in a quick step so it can watch your sessions.

3
🔧 Connect to Claude Code

With one command, you link spent to Claude Code so it automatically notes every action you take.

4
🔄 Restart and work normally

Restart Claude Code and dive into your project—spent quietly tracks tools like edits and searches behind the scenes.

5
📊 Open your live view

In a side window, watch costs, efficiency scores, and breakdowns update in real-time as you code.

6
💡 Review tips and history

At session end, check personalized tips, past sessions, and trends to see what's productive or wasteful.

🎉 Boost your efficiency

You now know exactly where money goes, improve your workflow, and spend smarter on AI help.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 14 to 14 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 spent?

Spent is a Python CLI tool that hooks into Claude Code sessions to track real costs, breaking down tool uses like Edit, Bash, and Read into productive, neutral, or wasted categories with an efficiency score from 0-100. It runs entirely locally—no API keys or external services—logging to JSONL files for privacy-focused claude code pricing analysis. Install via pip (claude code install), run `spent cc setup` once, then get live terminal dashboards, web views at localhost:5050, or in-session `/spent` skills.

Why is it gaining traction?

Unlike generic API wrappers, spent leverages Claude Code's hook system for zero-config tracking of Opus/Sonnet/Haiku spends, spotting wastes like failed Bash or repeated Reads with actionable tips. Features like `spent cc live` for side-pane monitoring and claude github integration via hooks make it a lightweight claude code github plugin for efficiency obsessives. Free, MIT-licensed, and multilingual (spent deutsch/englisch support).

Who should use this?

Claude Code daily drivers billing $10+/month who want claude code preis breakdowns per session. AI coding teams auditing claude github copilot-like workflows for wasted tokens. Devs optimizing claude code skills in long sessions, especially with claude github actions or connectors.

Verdict

Grab it if you're deep in Claude Code—solid docs and CLI make claude code free tracking instant, despite 14 stars and 1.0% credibility signaling early maturity. Watch for roadmap items like anomaly detection; test in a side project first.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.