Compress full repositories by 88.3%
Real Python AST and multi-language structural extraction outputs clean file trees, classes, decorators, type annotations, and signatures without body noise.
Local proxy & AST packer that eliminates up to 90% of wasted tokens across Claude, Grok, Antigravity, Cursor, and OpenAI.
Eliminating redundant repository dumps & duplicate file turns stretches your 5-hour Claude limit dramatically — often avoiding the jump from $20 to $100–$200/mo.
No lossy LLM summarizer burning extra tokens to save tokens. Every optimization runs deterministically in Python stdlib in milliseconds.
Real Python AST and multi-language structural extraction outputs clean file trees, classes, decorators, type annotations, and signatures without body noise.
Strips ANSI escape sequences, volatile timestamps, and 500x repeated heartbeat lines while guaranteeing 100% retention of every Traceback, Exception, and file:line anchor.
Works with OpenAI (/v1/chat/completions) and Anthropic (/v1/messages). Automatically minifies embedded JSON, prunes repeated file pastes across conversation turns, and caches deterministic prompts in local SQLite so repeat runs cost $0.00.
Pays for itself in a single afternoon of Claude, Grok, Antigravity, or OpenAI coding.
Pure Python 3.9+ stdlib. Zero pip dependencies, zero cloud middleman. Your API keys pass directly through request headers and never touch disk.
Secure Merchant-of-Record checkout via Polar. Commercial rights for up to 3 personal workstations on Windows, macOS, and Linux.
Read our complete engineering deep-dive: How to Cut AI Token Costs by 40%–90% in 2026 ↗
Between 50% and 85% of tokens in AI coding and automation go to pretty-printed JSON whitespace, massive terminal stack traces, duplicated files re-sent on every chat turn, and raw repository dumps. TokenDiet Pro removes that waste deterministically on your own machine before sending prompts upstream.
Yes. By cutting 65%–88% of redundant context via AST repo skeletons, history deduplication, and SQLite 0-token caching, your effective quota runway expands 2.9× to 4× — helping you stay on lower subscription tiers.
Never. TokenDiet Pro runs exclusively on 127.0.0.1:8791 using pure Python 3.9+ standard library. Zero third-party packages, zero analytics, zero cloud middleman. Authorization headers pass straight to OpenAI or Anthropic and are never stored on disk.
Charging a monthly subscription to help you escape monthly AI bills makes no sense. You pay €9 once via Polar (instant ZIP download + 14-day guarantee) and own TokenDiet Pro v1.x on up to 3 workstations forever.