Works with the AI Agents you already use

    Token Tracker

    by Taylen

    1

    Track Claude Code token usage and API-equivalent costs across sessions, projects, and devices.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Token Tracker

    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)

    ProjectInput TokensOutput TokensCache ReadsCost (USD)
    agensi-skill-dev450,20085,000620,000$2.15
    legacy-refactor120,00040,50085,000$1.42
    experimental-api32,00012,00015,000$0.65
    website-v318,5009,0005,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 /compact in your agensi-skill-dev session to reduce the context size and lower future cache read costs.
    • Use --by model if 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

    1. Locates local JSONL transcripts in the Claude configuration directory.
    2. Executes a Python script to parse message IDs, model versions, and token metadata.
    3. Applies usage rates for input, output, and prompt caching to the raw data.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    This skill parses local Claude configuration transcripts to provide a detailed breakdown of token counts and API equivalent costs across your sessions, projects, and specific models. It solves the difficulty of manually calculating spend for long running sessions and helps identify which tasks are the most resource intensive.

    This skill requires Python 3.8 or higher to be installed on your machine to execute the parsing script. It also requires the presence of local JSONL transcript files typically found in your Claude configuration directory.

    The skill generates clear summaries and markdown tables showing cost estimates in USD, token totals for input and output, and cache performance data. You can also request the data in JSON format if you need to export it for custom reporting or visualization.

    The costs provided are based on current API list prices and are for estimation purposes; they do not represent actual billing if you are using a flat rate subscription. Additionally, it can only track usage for transcripts currently stored on your disk, so any history that has been deleted cannot be recovered.

    You can ask your agent questions like how much have I spent this week, what is my most expensive project, or show me a token usage report for the last 30 days. You can also use shorthand commands like /tokens to get a quick summary of your current session and all time totals.

    Yes, if you provide a shared sync folder through a service like Dropbox or iCloud, the skill can aggregate usage totals across different computers. It writes a small data file for each machine to that folder and combines them to give you a holistic view of your spend.

    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.