by rtk-ai
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
# Add to your Claude Code skills
git clone https://github.com/rtk-ai/rtkHigh-performance CLI proxy to minimize LLM token consumption.
rtk filters and compresses command outputs before they reach your LLM context, saving 60-90% of tokens on common operations.
There are TWO different projects named "rtk":
✅ This project (Rust Token Killer) - LLM token optimizer
rtk-ai/rtk❌ reachingforthejack/rtk - Rust Type Kit (DIFFERENT PROJECT)
How to verify you have the correct rtk:
rtk --version # Should show "rtk 0.22.2"
rtk gain # Should show token savings stats
If rtk gain doesn't exist, you installed the wrong package. See installation instructions below.
Typical session without rtk: ~150,000 tokens With rtk: ~45,000 tokens → 70% reduction
| Operation | Frequency | Standard | rtk | Savings | |-----------|-----------|----------|-----|---------| | / | 10× | 2,000 | 400 | -80% | | / | 20× | 40,000 | 12,000 | -70% | | / | 8× | 16,000 | 3,200 | -80% | | | 10× | 3,000 | 600 | -80% | | | 5× | 10,000 | 2,500 | -75% | | | 5× | 2,500 | 500 | -80% | | | 8× | 1,600 | 120 | -92% | | / | 5× | 25,000 | 2,500 | -90% | | | 3× | 3,000 | 600 | -80% | | | 4× | 8,000 | 800 | -90% | | | 3× | 6,000 | 600 | -90% | | | 3× | 900 | 180 | -80% | | | | | | |
No comments yet. Be the first to share your thoughts!
lstreecatreadgreprggit statusgit diffgit loggit add/commit/pushnpm testcargo testruff checkpytestgo testdocker psEstimates based on medium-sized TypeScript/Rust projects. Actual savings vary by project size.
ALWAYS verify if rtk is already installed before installing:
rtk --version # Check if installed
rtk gain # Verify it's the Token Killer (not Type Kit)
which rtk # Check installation path
If already installed and rtk gain works, DO NOT reinstall. Skip to Quick Start.
brew install rtk
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
Note: rtk installs to
~/.local/binby default. If this directory is not in your PATH, add it:echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc
After installation, verify you have the correct rtk:
rtk gain # Must show token savings stats (not "command not found")