
Description
cost-tracking is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It reads the local metrics log written by ECC's stop cost-tracker hook and reports Claude Code token usage, spending and budgets from it. The log is a file of JSON lines under the user's Claude folder, with one row appended per session stop. Each row is a running total for its session, so the skill explains that the correct total is the latest row for each session_id, summed across sessions. Adding every row would count the same spend several times. The skill is used when someone asks how much they have spent, what a session cost, or whether they are over budget. Everything is read from the local file, so no outside service is called. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source.…
Highlights
- Reports usage and spend from the local log
- Correct totals from the latest row per session
- Budget checks from recorded costs
- No outside service is called
Ratings & Reviews
No ratings yet
Be the first to rate cost-tracking.
People also visit

caveman-stats
Real token usage and estimated savings metrics from your Claude Code session log
cost-tracking FAQ
What does the cost-tracking skill read?
A metrics file the stop cost-tracker hook writes, in the Claude folder under metrics, as JSON lines.
Why does it use only the latest row per session?
Each row is a cumulative snapshot for its session, so adding every row would count spend more than once.
Does it send my usage anywhere?
The skill works from the local log file and does not call an outside service.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill cost-tracking
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best cost-tracking alternatives?
Popular alternatives to cost-tracking include caveman-stats, model-usage and receipts. See all cost-tracking alternatives








