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.

811 stars 39 forksUsage & cost trackers Source

Install

Install
pip install tokentap

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/jmuncor/tokentap.git

From 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…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
21 June 2026
Topics
ai-toolsanthropicclideveloper-toolsitmproxyllmmproxypythonrichterminal-dashboardtoken-counter

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

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.