RTK is a free GitHub plugin that compresses command outputs earlier than they attain Claude’s context window. Customers report saving 60 to 95 % in token consumption. Learn to set up it in three minutes and begin decreasing your AI prices in the present day.
Should you use Claude Code, Codex, or any AI coding device with Claude, you’re most likely spending extra on tokens than you’ll want to. A free plugin referred to as RTK can compress your command outputs earlier than they hit Claude’s context window. This implies shorter classes, higher reasoning, and considerably decrease prices.
The financial savings are actual. Customers working RTK report token effectivity charges between 57 and 65 %, which means they save that share of tokens on each command. Some instructions see financial savings as excessive as 97 %.
This information exhibits you precisely find out how to set up RTK, why it really works, and find out how to measure your financial savings.
What Is RTK and Why It Issues
RTK is an open-source GitHub plugin designed to compress command outputs. Whenever you run instructions inside Claude Code or different AI coding environments, these command outputs get despatched again to Claude as context. Each token in that context prices you cash.
RTK intercepts these outputs and compresses them intelligently. It removes pointless textual content, condenses verbose outputs, and retains solely the helpful info. Claude nonetheless understands what occurred, however makes use of far fewer tokens to do it.
The device presently has 71,000 stars on GitHub, which implies it’s a trusted answer that many builders depend on.
Watch The Step-By-Step Tutorial On YouTube
Actual Token Financial savings
Whenever you run RTK achieve in your terminal, it exhibits you precisely what number of tokens you’ve saved. Actual customers report:
- 61 % token effectivity on common
- 120,000 tokens saved in a single session
- Constant 57 to 65 % financial savings throughout a number of runs
- Some particular person instructions saving 97 % of tokens
Should you’re on Claude’s professional plan at $20 monthly or utilizing Codeex, these financial savings add up rapidly. You’ll be able to run extra coding duties, longer classes, and experiment extra with out burning by means of your month-to-month credit.
How you can Set up RTK in Three Steps
RTK installs in minutes. You might have two choices: command line or Homebrew.
Possibility 1: Command Line Set up
Open your terminal and run this one-line command:
This downloads and installs RTK routinely. You’re carried out.
Possibility 2: Homebrew Set up
Should you use Homebrew on Mac or Linux, run:
On Home windows, use PowerShell and run the identical command. Homebrew works throughout all techniques now.
After set up, confirm it labored by working:
Your terminal will present your present token effectivity fee.
How you can Join RTK to Claude Code
Merely including RTK to your config file prompts it. Right here’s how:
For Claude Code, add RTK to your Claude Code config file. The method is easy. It’s possible you’ll must restart Claude Code for the modifications to take impact.
RTK will then routinely prefix bash instructions with its compression course of. New classes routinely use RTK with none extra steps from you.
For Codeex and Open Code, observe the identical course of. The RTK plugin installs itself into your config information. Restart your editor, and RTK is lively.
You’ll see a notification confirming RTK is related and able to compress instructions.
Measuring Your Token Financial savings
RTK offers you 3 ways to see what number of tokens you’re saving.
Methodology 1: Terminal Instructions
Run this in your terminal:
This exhibits your token effectivity share and complete tokens saved. It updates each time you run the command.
Methodology 2: Ask Claude Instantly
Inside Claude Code, ask Claude: “What number of credit did I save with RTK?”
Claude pulls your RTK information and exhibits you:
- Whole tokens saved
- Share discount
- Variety of instructions processed
- Your greatest particular person wins
For instance, an actual consumer asking this query bought again: 61.6 % discount with 169,000 tokens saved throughout 447 instructions.
Methodology 3: Headroom Dashboard (Non-compulsory)
Headroom is a companion device that gives a visible interface. It runs on port 8787 and exhibits credit score utilization on a dashboard. Nonetheless, it provides additional overhead and connection points. Most customers skip Headroom and simply use the RTK terminal command as an alternative.
Why RTK Works So Properly
RTK succeeds as a result of Claude’s context window accepts giant quantities of data, however Claude nonetheless processes each token. Command outputs are sometimes verbose and repetitive. They include:
- File paths you don’t want
- Standing messages that don’t have an effect on the result
- Duplicate info
- Formatting and line breaks
RTK compresses these intelligently. It removes the noise whereas maintaining the which means. Claude understands the compressed output simply in addition to the unique, however processes it in a fraction of the tokens.
For instance, a command that usually outputs 1,000 tokens would possibly compress to only 30 tokens. The knowledge continues to be there. The reasoning nonetheless works. You simply paid for 30 tokens as an alternative of 1,000.
Actual-World Token Financial savings Breakdown
One consumer working Claude’s Sonnet 5 mannequin reported these financial savings:
- Session token effectivity: 61 %
- Tokens saved in a single session: 120,000
- Largest single command win: 97.8 % saved
- Instructions processed: Dozens in a single session
One other consumer on Open Code with GLM 5.2 mannequin noticed:
- Token effectivity: 57.8 %
- Tokens saved: 169,000
- Instructions processed: 447 throughout the session
These aren’t theoretical financial savings. These are precise tokens that didn’t get billed.
At $3 per million enter tokens on Claude’s professional plan, saving 120,000 tokens is value $0.36 per session. Should you code each day, that’s over $100 per 12 months simply from one session’s enchancment. With RTK, you’ll see related financial savings each single day.
RTK In comparison with Options
There may be one different device referred to as Caveman, which is a customized ability you put in in your coding setting. Caveman additionally compresses tokens and reduces prices.
Nonetheless, RTK is the extra widespread alternative. It has extra GitHub stars, extra customers, and easier set up. Most builders who strive each want RTK.
RTK additionally integrates immediately into Claude Code, Codeex, and Open Code with out requiring extra setup. Caveman requires extra handbook configuration.
What Fashions Work With RTK
RTK works with any Claude mannequin:
- Claude Sonnet 5
- Claude Opus 4.8
- Any Claude variant in Claude Code
- Open Code fashions like GLM 5.2
- Any mannequin you entry by means of Codeex
The compression precept works the identical approach no matter which mannequin you employ. Heavier fashions like Opus see related share financial savings to lighter fashions like Sonnet.
Frequent Questions About RTK
Do I want to alter my workflow to make use of RTK?
No. RTK works routinely after set up. It prefixes bash instructions with its compression course of. You code precisely as earlier than. RTK handles the compression silently.
Will RTK break my instructions?
No. RTK compresses the output of instructions, not the instructions themselves. Your instructions run precisely as regular. The outputs simply get compressed earlier than Claude sees them.
Does RTK work with Home windows?
Sure. You’ll be able to set up RTK on Home windows utilizing PowerShell with both the curl command or Homebrew.
Can I see the compressed output?
Sure. RTK achieve exhibits you the compression particulars. You can even ask Claude about your financial savings, and it’ll pull the particular information.
Do I lose info when RTK compresses?
No. RTK removes noise and redundancy. The significant info stays. Claude’s reasoning works precisely the identical. You simply save tokens on the verbose elements.
What occurs if I disable RTK?
Your token utilization goes again to regular, and also you cease seeing financial savings. However your information and instructions are unaffected. You’ll be able to flip it on and off everytime you need.
Is RTK just for Claude Code?
No. It really works in Claude Code, Codeex, Open Code, Cursor, and any command line interface that connects to Claude.
Do I must pay for RTK?
No. RTK is totally free and open supply on GitHub.
Will RTK save me cash instantly?
Sure. You’ll see financial savings in your first session after putting in it. The proportion varies based mostly in your instructions and the way verbose your outputs are, however 57 to 65 % is typical.
Can I mix RTK with different optimization instruments?
Sure. You need to use RTK and Headroom collectively, although Headroom provides complexity. Most customers discover RTK adequate by itself.
Getting Began Proper Now
Set up takes three minutes. Right here’s the quickest path:
- Open your terminal or PowerShell.
- Run both:
curl -fsSL https://get.rtk.sh | bashorbrew set up rtk - Open Claude Code, Codeex, or Open Code and add RTK to your config file.
- Restart your editor.
- Run your first command and watch your tokens compress.
That’s it. You’re now saving 60 to 95 % on token utilization.
Why This Issues for Your Enterprise
Should you’re utilizing AI coding instruments for shopper work, freelancing, or constructing merchandise, token prices add up. Each lengthy coding session burns by means of your month-to-month credit. Each debugging step prices tokens. Each command output that Claude processes prices you cash.
RTK cuts these prices dramatically with out altering how you’re employed. You code the identical approach. Your outcomes are the identical. You simply spend considerably much less on tokens.
For companies paying for professional plans at $20 monthly or utilizing Codeex on a workforce, RTK can cut back your complete AI spending by 60 % or extra. On a workforce, that’s significant financial savings.
Ultimate Ideas
RTK is a free, trusted, and easy device that delivers actual token financial savings. Over 71,000 builders have discovered it beneficial sufficient to star on GitHub. Actual customers report 60 to 95 % token compression with no downsides.
Should you’re utilizing Claude Code, Codeex, or any Claude-powered coding setting, putting in RTK is without doubt one of the highest-return actions you possibly can take. The set up takes three minutes. The financial savings begin instantly.
Continuously Requested Questions
Q: Does RTK work with all Claude fashions?
A: Sure. RTK compresses command outputs no matter which Claude mannequin you employ.
Q: Will RTK decelerate my coding?
A: No. RTK runs within the background and doesn’t have an effect on your command execution velocity.
Q: Can I see precisely what RTK is compressing?
A: Sure. Use the rtk achieve command or ask Claude immediately in your editor about your financial savings.
Q: Is RTK protected to make use of?
A: Sure. It’s open supply with 71,000 GitHub stars and extensively adopted by builders.
Q: What if my instructions don’t have verbose outputs?
A: You’ll nonetheless save tokens, simply possibly not 97 %. Even transient outputs include some redundancy that RTK can compress.
Q: Do I want technical information to put in RTK?
A: No. It’s one command in your terminal, and Homebrew set up is even easier.
Subsequent Steps
In order for you assist discovering one of the best AI automation alternatives inside what you are promoting, ebook a free AI session name with Automojic.
We’ll take a look at your present workflows, determine the place money and time are being wasted, and present you what might be automated first.
Any questions? E book your free session right here.






