CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

★ 86,648⑂ 5,556👁 215⑃ 2,976● 2,003▤ 481
RustApache-2.0Created 2026-01-22www.rtk-ai.app
Download: v1.2.0v1.2.0 ↓1.2.02026-11-08
+79
Daily
+678
Weekly
+3,550
Monthly
86,648
stars
5,556
forks
215
watchers
2,976
prs
2,003
issues
481
releases

README

The cost reduction engine for AI coding agents.
  
  Install it and forget it, then go as far as you want with pipelines.



  
  
  
  
  



 
   
 



  



  Install •
  Pipelines •
  Docs •
  Website •
  RTK Pro •
  Discord



  English •
  Francais •
  中文 •
  日本語 •
  한국어 •
  Espanol •
  Português




① Install & forget: up to 90% less command output.
Test runs, diffs, logs and builds are compressed before your agent reads them. 100+ commands, under 25 ms per command, no config, nothing changes in how you work. rtk gain shows what you saved.

② Go further with pipelines, as far as you take it.
Hand heavy reads to a cheaper model, compress more than bash, clean the API traffic without breaking the prompt cache. One agent-agnostic file: start from a built-in, install one someone shared, or write and share your own.
The community built the bash compressor 85k developers starred. Now it is building pipelines: the best one listed today cuts total cost by 20.2% in its author's benchmark.

Agents across the whole company? RTK Pro is the control layer for every AI agent: one gateway for every AI call, costs, secrets and personal data, policies, team catalog, audit. Discover RTK Pro ↓


  




---



 Install & forget

macOS, and Linux with Homebrew

bash
brew install rtk


Windows, with winget

bash
winget install rtk-ai.rtk


Linux, macOS or WSL, with the install script

bash
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh


Then plug it into your agent

bash
rtk init -g                       Claude Code; every other agent: see "Works in your agent"


Restart your agent. That's it: when it runs git status, RTK runs rtk git status and the agent reads a 3-line summary instead of 40 lines. Nothing to learn, nothing to call, and upgrading RTK never changes this.

 Another project named "rtk" exists on crates.io. Check you have this one: rtk gain must show the savings dashboard, not "command not found".

 Cargo, pre-built binaries, native Windows, WSL and uninstall: Installation guide · per-agent setup and --dry-run: Quick Start



 Measure it: rtk gain

Every command RTK touches is counted on your machine. One command shows what it saved, today and since you installed it.

bash
rtk gain                         Summary stats
rtk gain --graph                 ASCII graph (last 30 days)
rtk gain --history               Recent command history
rtk gain --daily                 Day-by-day breakdown
rtk gain --all --format json     JSON export for dashboards

rtk discover                     Find missed savings opportunities
rtk discover --all --since 7     All projects, last 7 days

rtk session                      Show RTK adoption across recent sessions


What the numbers mean. The compressor reduces the command output your agent reads, which is one part of the input tokens, which are one part of the bill: a 90% cut in command output is not a 90% cut in cost. Tok

Top issues

Discussions

Latest release

v1.2.0 v1.2.0 2026-11-08
1.2.0 (2026-11-08)


 Features

 git: fold ls-tree path listings by directory (1816)


 Bug Fixes

 analytics: sum per-project ccusage rows in monthly economics (4771)
 cargo: keep nextest timeouts and retried failures (4697)
 cicd: build the deb, rpm and aarch64 Linux binaries as static musl (5017)
 dotnet: preserve discovery and classic TRX reports (4628)
 gain: distinguish filtered timings from passthrough lifetimes (4677)
 git: announce the cap on the filtered git log path (4152)
 hermes: close the rewrite's stdin and make its timeout configurable (3833)
 hook: honour opt-outs inside a quo

News & coverage (18)

Hacker NewsRtk – reduce Claude Code token usage▲ 18 · 3 comments · 2026-02-28Hacker NewsCLI proxy that reduces LLM token consumption by 60-90% on common dev commands▲ 5 · 2 comments · 2026-04-10Hacker NewsRtk – High-performance CLI proxy to minimize LLM token consumption▲ 4 · 0 comments · 2026-02-18Hacker NewsShow HN: RTK – Wrap your CLI commands, save 60-90% of tokens in AI coding agents▲ 4 · 4 comments · 2026-02-11Hacker NewsRtk – CLI proxy that reduces LLM token consumption by 60-90%▲ 3 · 0 comments · 2026-03-17Hacker NewsRust Token Killer – High-performance CLI proxy to minimize LLM token consumption▲ 3 · 1 comments · 2026-02-19Hacker NewsRTK: Rust Token Killer▲ 2 · 2 comments · 2026-05-19Le FigaroRTK AI : la start-up française qui remet de l’ordre dans l’IA des entreprises2026-10-27labs.sogetiTHE HIDDEN COST OF AI CODING: HOW RTK HELPS DEVELOPERS REDUCE THE “TOKEN TAX” – PART 12026-07-15notertk: A CLI Proxy That Drastically Reduces Token Consumption for Claude Code2026-05-13
8 morekorbenRTK - The Rust proxy that saves you up to 90% of tokens2026-05-04xRTK is a local tool that seamlessly supports Claude Code, Copilot, Cursor and others. It minimizes LLM token usage by compressing the results of various popular commands (ls ...2026-04-14noteI Tried 'RTK', a Tool That Reduces Claude Code Token Consumption by 90%2026-04-09noteClaude Code의 토큰 소비를 90% 줄여주는 도구 'RTK'를 사용해 보았다2026-04-09GIGAZINEGitHub has published a case study showing that shortening the output of AI agents to reduce costs can actually increase costs. How can we effectively improve cost efficiency?2026-09-07The GitHub BlogHow we make AI coding more cost efficient without sacrificing task quality2026-09-02DataDrivenInvestorHow I Cut My LLM Token Usage by 70% With One Open-Source Tool2026-07-16Pasquale PillitteriClaude Code Token: 10 GitHub Repos That Cut Up to 90%2026-04-21

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON