Claude Code usage
Tokentap
Intercept LLM API traffic and visualize token usage in a real-time terminal dashboard. Track costs, debug prompts, and monitor context window usage across your AI development sessions.
Install
pip install tokentapFound in the project README. Check it for setup steps after installing.
git clone https://github.com/jmuncor/tokentap.gitFrom the README
Tokentap (formerly Sherlock)
Token Tracker for LLM CLI Tools
Installation •
Quick Start •
Features •
Commands •
Contributing
tokentap tracks token usage for LLM CLI tools with a live terminal dashboard. See exactly how many tokens you're using in real-time.
Why tokentap?
- Track Token Usage: See exactly how many tokens each request consumes
- Monitor Context Windows: Visual fuel gauge shows cumulative usage against your limit
- Debug Prompts: Automatically saves every prompt as markdown and JSON for review
- Zero Configuration: No certificates, no setup - just install and go
Installation
Or install from source:
Requirements
- Python 3.10+
Quick Start
Terminal 1: Start the Dashboard
You'll be prompted to choose where to save captured prompts, then the dashboard appears:
Terminal 2: Run Your LLM Tool
That's it! Watch the dashboard update in real-time as you work.
Features
Live Terminal Dashboard
Real-time token tracking with color-coded fuel gauge:
- Green: 80% of limit
Prompt Archive
Every intercepted request is saved to your chosen directory:
- Markdown - Human-readable format with metadata
- JSON - Raw API request body for debugging
Session Summary
When you exit, see your total usage:
Commands
Supported providers for --provider: anthropic, openai, gemini, minimax
Options
How It Works
For OpenAI-compatible providers like MiniMax, tokentap uses
path-prefix routing so requests are forwarded to the correct upstream API:
Supported Providers
Known Issues
Gemini CLI
Gemini CLI currently has a known issue where it ignores custom base URLs when using OAuth authentication. tokentap's Gemini support will work automatically once the Gemini CLI team fixes this issue.
Contributing
Contributions are welcome! Here's how you can…Details
- Repository
- jmuncor/tokentap
- Website
- github.com/jmuncor/tokentap
- Language
- Python
- License
- MIT
- Last updated
- 21 June 2026
- Topics
- ai-toolsanthropicclideveloper-toolsitmproxyllmmproxypythonrichterminal-dashboardtoken-counter
- Listed in
- jqueryscript/awesome-claude-code
FAQ
What is Tokentap?
Intercept LLM API traffic and visualize token usage in a real-time terminal dashboard. Track costs, debug prompts, and monitor context window usage across your AI development sessions. It is a usage for Claude Code, from jmuncor/tokentap on GitHub.
How do I install Tokentap?
Run pip install tokentap, then follow the setup in the README.
Is Tokentap popular?
jmuncor/tokentap has 811 GitHub stars and 39 forks, and is included in 1 curated Claude Code list. It was last updated on 21 June 2026.
More usage & cost trackers
Agentacct
756mikehasa/agentacct
See what your coding agents did and what it cost. Breaks each task down into work steps — tools used, files changed, tests run, time and tokens spent. Local-first dashboard for Claude Code, Codex, OpenCode, and more. No login, no telemetry.
Agents Observe
713simple10/agents-observe
Real-time observability of claude code sessions & multi-agents.
Claude Code Usage Monitor
678CodeZeno/Claude-Code-Usage-Monitor
Windows taskbar widget showing Claude Code usage limits and reset times.
Claude Status Bar
724m1ckc3s/claude-status-bar
Menu bar status indicator for Claude Code
Squadra
1.3kdagoSte/squadra
Coordinate Claude, Codex and Cursor windows with shared tasks, acknowledgements, prechecks, parallel tests, source-bound proofs and independent review. Built-in skills recall lessons, simplify code and forecast work. Track progress, decisions and evidence in a bilingual local dashboard, with MCP plugins. Browse skills and verified security audits.
Pulse
623qunqin24/Pulse
Free macOS app showing how much Claude Code and other AI tool quota you have left.
Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.