Works with the AI Agents you already use
Token Tracker
by Taylen
Track Claude Code token usage and API-equivalent costs across sessions, projects, and devices.
$7
Token Tracker
Example session with this skill installed
Show me a breakdown of my token usage by project for the last 7 days. How much would this cost on the API?
- Read your context and instructions
- Compiled the token tracker
You have used 1.45M tokens over the last 7 days, totaling $4.82 in API list prices.
Project Usage Report (Last 7 Days)
| Project | Input Tokens | Output Tokens | Cache Reads | Cost (USD) |
|---|---|---|---|---|
agensi-skill-dev | 450,200 | 85,000 | 620,000 | $2.15 |
legacy-refactor | 120,000 | 40,500 | 85,000 | $1.42 |
experimental-api | 32,000 | 12,000 | 15,000 | $0.65 |
website-v3 | 18,500 | 9,000 | 5,000 | $0.60 |
Note: These figures are calculated using API list prices. Most of your cost in agensi-skill-dev comes from cache reads during a long-running session.
Next steps
- Run
/compactin youragensi-skill-devsession to reduce the context size and lower future cache read costs. - Use
--by modelif you want to see if switching to a smaller model would save costs on these specific projects. - Set up a sync folder if you want to include usage from your laptop.
Connects securely to your tools. The creator never sees your data.
About this skill
Claude Code transcripts reside locally on your machine, but tracking the cumulative cost of long-running sessions or multi-model projects is difficult without a dedicated tool. This skill monitors your local usage history to provide clear token counts and API-equivalent cost estimates.
What it does
- Cost Calculation: Converts token counts into USD based on current API list prices for input, output, and cache operations.
- Granular Reporting: Breaks down usage by session, project, day, or model to identify where spend is highest.
- Historical Analysis: Filters data by specific timeframes such as the last 24 hours, 7 days, or custom ISO dates.
- Multi-Device Sync: Aggregates usage data across multiple computers using a shared sync folder.
- Optimization Insights: Highlights how cache reads impact costs and suggests session management improvements.
How it works
- Locates local JSONL transcripts in the Claude configuration directory.
- Executes a Python script to parse message IDs, model versions, and token metadata.
- Applies usage rates for input, output, and prompt caching to the raw data.
- Generates a summary or detailed table based on your specific query parameters.
Frameworks & tools
This skill utilizes Python 3.8+ and the standard library to process local transcript files.
Why this beats prompting it yourself
An LLM cannot natively access or parse your local hidden file system to aggregate thousands of lines of JSONL data accurately. This skill uses a specialized script to ensure every message ID is deduplicated and every cache hit is accounted for mathematically.
Use cases
- Audit your total API-equivalent spend for the current month.
- Find which project or model is consuming the most tokens.
- Compare usage trends across different development machines.
- Export usage data to JSON for custom reporting or visualization.
Known limitations
Only counts transcripts currently stored on disk; deleted history cannot be recovered. Requires Python 3.8 or higher installed on the host machine.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.