Provides intelligent analysis of token usage patterns and optimization recommendations to improve efficiency and reduce costs in Claude Code sessions. Offers real-time analysis, cost metrics, and actionable insights for better context window and tool usage optimization.
Analyzes Claude Code session token usage and cost locally — where spend actually lands across cache-read, cache-write and output, and what is consuming the context window. Read-only and offline: it parses your own session files and exposes analyze_claude_cost, get_cost_benchmark and tokenscope_share_summary.
Enables AI coding assistants to measure repository token counts and multi-model USD costs, pack high-signal files within an exact token budget, estimate prompt costs, and enforce spending ceilings while catching leaked secrets. It runs entirely locally as a zero-dependency stdio MCP server for Claude Code, Cursor, and Windsurf.
Compare official API pricing across 563+ LLMs & cloud services, lock 0.1x/0.025x prompt cache breakpoints, prevent PR token cost regressions, and audit AI bills locally with SHA-256 proofs.
Lets a coding agent inspect its own run efficiency mid-session from local Claude Code transcripts, exposing the share of paid tokens that became model output versus context re-reading. Ships two stdio tools — one returning the shares as structured data and one returning the full cost-weighted report — with no network calls.