Cette page est affichée en anglais. Une traduction française est en cours.
CLI ToolsMay 12, 2026·2 min de lecture

Tokentap — Token Tracker for LLM CLIs

Tokentap adds a live terminal dashboard and prompt archive for LLM CLI tools, so you can see token usage in real time while using Claude Code or Codex.

Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 17/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
CLI Tool
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
Asset
Commande de staging sûr
npx -y tokrepo@latest install ba7f169a-42d1-583d-a08e-2ff368dd171b --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

Introduction

Tokentap adds a live terminal dashboard and prompt archive for LLM CLI tools, so you can see token usage in real time while using Claude Code or Codex.

  • Best for: power users of LLM CLIs who need visibility into token burn and context window pressure
  • Works with: Python 3.10+; supports Claude Code, Codex, Gemini CLI (noted as blocked by an upstream issue), and OpenAI-compatible providers (per README)
  • Setup time: 5–15 minutes

Practical Notes

  • Per README: shows a context “fuel gauge” (default limit 200,000) and saves prompts to Markdown + JSON.
  • Useful for regression: compare token usage before/after prompt/tool changes.
  • Combine with guardrails: when fuel gauge hits 70–80%, switch to summarization or retrieval mode.

Main

A simple workflow that pays off quickly:

  1. Run your normal CLI session with Tokentap enabled.
  2. When usage spikes, open the saved prompt archive and identify the culprit: retrieval payload, tool output, or template bloat.
  3. Fix one thing at a time (shorten tool output, add truncation, or dedupe context), then measure again.

Treat token usage as a budget: you’ll get better answers by spending tokens on relevant evidence, not repeated boilerplate.

FAQ

Q: Does it require certificates? A: Per README: no—"Zero configuration" and it runs as a local proxy with path-prefix routing for OpenAI-compatible providers.

Q: Can it run with Gemini CLI? A: README notes Gemini CLI is currently blocked by an upstream issue when using OAuth; check the linked issue for status.

Q: What should I store? A: Keep prompt archives in a private directory; they may contain secrets or code. Add redaction if you share logs.

🙏

Source et remerciements

Source: https://github.com/jmuncor/tokentap > License: MIT > GitHub stars: 798 · forks: 37

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires