What it does
AI coding assistants run commands like listing files or running tests, then read all the output. That output costs "tokens", the units AI services charge by, and can crowd out the AI's short-term memory.
RTK sits in between and trims that output before the assistant sees it: for example, showing only failing tests or a compact summary of code changes. It works with Claude Code, Copilot, Gemini CLI, Codex, Cursor and others.
Its makers say command output can shrink by up to 90%, but they point out this is not the same as cutting your bill by that much, because command output is only one part of what you pay for.
Who it's for
Programmers who use AI coding assistants a lot and want to reduce cost and clutter.
Can I use it without coding?
Developers only. Installed with a terminal command and set up inside your AI coding tool. New to this? Start here.
Can I run it?
- Cost
- FreeNothing to pay or sign up for.
- Runs on
- Mac, Linux, Windows
- Computer
- An ordinary computer is fine
- Privacy
- Runs on your own device: your data stays with you
- API key
- Not needed
Try it
- Install RTK with Homebrew on Mac or Linux, or with winget on Windows.
- Run RTK's setup command for your AI coding tool, such as Claude Code or Cursor.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?
Before you install
- Only download from the official GitHub page or the official download page above. Copies with similar names exist for many popular projects.
- License (Apache-2.0): Permissive: free to use, change and share, including for business.
- More on staying safe
Where people are talking about it
- Rtk – reduce Claude Code token usageHacker News · Feb 2026