Who stole your AI quota? GTT reads the local logs of your AI coding tools and shows which prompt, not just which day or model, ate your plan limit.
Everything stays on your machine: no proxy, no API keys, no upload. Windows, macOS and Linux, Python 3.9+, no dependencies. 21 tools: Claude Code, Codex, Antigravity, OpenCode, Kimi, Qwen, Copilot, Grok, Pi, Hermes and more.
Cursor, Windsurf and a few others keep no token counts on disk, so there is nothing local to read.
Cost is the API list price of each call. Subscription plans don't publish how much each token weighs in the limit, but API prices weight model, output and cache the same way, so they rank the expensive prompts well. When a tool reports real spend (OpenCode, Cline), that value is used. Built-in list prices cover Claude, GLM (Z.ai), Kimi, MiniMax, Qwen, DeepSeek, GPT and Grok, including long-context tiers (gtt/pricing.py cites the source of each price). gtt prices lists the models still without one; add or override prices in prices.json in the data folder.
gtt hook --install adds a UserPromptSubmit hook to Claude Code. When you return to a large session after the prompt cache has expired (5 min, or 60 min with the 1-hour cache), it holds the prompt once and says how many context tokens the next call would re-write and what that costs at API prices. Then you can /compact, start a new session, or send the same prompt again to go ahead. The first prompt after a /compact is never held. Sessions below 100k tokens are ignored (--min-tokens changes that). gtt hook --remove takes it out.
gtt schedule --install creates a daily sync at 12:00 (--time 08:30 to change). On Windows it is "GTT sync" in Task Scheduler, set to run later if the PC was off at that time and to run on battery. On macOS and Linux it prints the launchd or cron entry to add. gtt schedule --remove deletes the Windows task.
GTT only reads files the tools already keep on your disk. It sends nothing anywhere, reads no credentials and calls no usage APIs. Data lives in ~/.gtt (Windows), ~/Library/Application Support/gtt (macOS) or $XDG_DATA_HOME/gtt (Linux); GTT_HOME overrides it. On Windows the home folder is used instead of %LOCALAPPDATA% because apps installed as MSIX packages get new AppData files redirected to a private folder, which would split the database between a terminal and such an app.
git clone https://github.com/eduardoabreu81/gtt && cd gtt pip install -e . python -m unittest discover -s tests -v Every importer with a fixture runs against a small real session from that tool, anonymized (tests/fixtures/), and its output is compared with a snapshot. The dashboard is rendered from those fixtures in Node and fails on NaN/undefined. CI runs on Ubuntu and Windows with Python 3.9, 3.13 and 3.14. See tests/README.md for adding a fixture, AGENTS.md for the architecture and PROJECT_LOG.md for what each tool's data taught us. The README screenshots come from gtt demo (tests/tools/screenshots.mjs).
Both files in this release have provenance metadata.
ai llm tokens usage cost claude-code codex dashboard analytics
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 23, 2026 2 release files Full provenance




