{"slug": "claude-code-token-cost-explorer", "title": "Claude Code token cost explorer", "summary": "A developer built a local browser-based token cost explorer for Claude Code after finding that the built-in /context command breaks down context usage only for the main conversation, not for subagents. Existing tools ccusage and claude-agent-ledger did not provide the detailed breakdown needed to optimize usage, so the developer had Claude Code generate the tool, which processes transcript data entirely on the user's machine. The tool is described as \"vibecoded\" and not critical infrastructure, and the developer invites users to verify locally that no transcript data leaves their computer.", "body_md": "I am experimenting with involving subagents more in my LLM coding agent\nworkflow. I discovered that subagents make it more difficult to diagnose token\nusage in Claude Code,\nbecause the regular `/context` command only breaks down context usage for the\nmain conversation, not for the subagents.\n\nI tried some existing tools like `ccusage` and `claude-agent-ledger`, but they\nweren’t able to give me the sort of breakdown into specifics I needed to\noptimise my usage. Thus, I shamelessly had Claude Code whip up a tool that gives\nme a better view of its token usage. This is vibecoded in the true sense of the\nword – I have barely looked at the code – but I’m okay with that becuase it is\nnot critical infrastructure and it does what I need it to.\n\nIf you want to know how to get more out of your Claude Code sessions without paying more for it, here’s how you can find out.\n\nFirst, open the context cost explorer in your browser. Everything happens locally on your machine, so none of your transcript data leaves your computer. If you’re the paranoid kind, you can verify by opening the network tab in your browser and reading in a non-sensitive session and seeing that nothing funny happens. Then follow the steps below, or use your own analytical ability.", "url": "https://wpnews.pro/news/claude-code-token-cost-explorer", "canonical_source": "https://entropicthoughts.com/claude-code-token-cost-explorer", "published_at": "2026-11-09 23:00:00+00:00", "updated_at": "2026-11-10 10:22:38.532769+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents", "large-language-models"], "entities": ["Claude Code", "ccusage", "claude-agent-ledger", "Anthropic"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/claude-code-token-cost-explorer", "markdown": "https://wpnews.pro/news/claude-code-token-cost-explorer.md", "text": "https://wpnews.pro/news/claude-code-token-cost-explorer.txt", "jsonld": "https://wpnews.pro/news/claude-code-token-cost-explorer.jsonld"}}