← All tools

rtk-ai/rtk

Popularity 75 Updated AI & Agents

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

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

<p align="center" <img src="https://avatars.githubusercontent.com/u/258253854?v=4" alt="RTK - Rust Token Killer" width="500" </p

<p align="center" <strongHigh-performance CLI proxy that cuts up to 90% of the bash output your agent reads</strong </p

<p align="center" <a href="https://github.com/rtk-ai/rtk/actions"<img src="https://github.com/rtk-ai/rtk/workflows/Security%20Check/badge.svg" alt="CI"</a <a href="https://github.com/rtk-ai/rtk/releases"<img src="https://img.shields.io/github/v/release/rtk-ai/rtk" alt="Release"</a <a href="https://opensource.org/licenses/Apache-2.0"<img src="https://img.shields.io/badge/License-Apache2.0-blue.svg" alt="License: Apache 2.0"</a <a href="https://discord.gg/RySmvNF5kF"<img src="https://img.shields.io/discord/1470188214710046894?label=Discord&logo=discord" alt="Discord"</a <a href="https://formulae.brew.sh/formula/rtk"<img src="https://img.shields.io/homebrew/v/rtk" alt="Homebrew"</a </p

<p align="center" <a href="https://www.rtk-ai.app"Website</a &bull; <a href="#installation"Install</a &bull; <a href="https://www.rtk-ai.app/guide/troubleshooting"Troubleshooting</a &bull; <a href="docs/contributing/ARCHITECTURE.md"Architecture</a &bull; <a href="https://discord.gg/RySmvNF5kF"Discord</a </p

<p align="center" <a href="README.md"English</a &bull; <a href="READMEfr.md"Francais</a &bull; <a href="READMEzh.md"中文</a &bull; <a href="READMEja.md"日本語</a &bull; <a href="READMEko.md"한국어</a &bull; <a href="READMEes.md"Espanol</a &bull; <a href="READMEpt.md"Português</a </p

---

<p align="center" <a href="https://www.star-history.com/rtk-ai/rtk" <picture<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=rtk-ai/rtk&type=rank&theme=dark" /<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/badge?repo=rtk-ai/rtk&type=rank" /<img alt="Star History Rank" src="https://api.star-history.com/badge?repo=rtk-ai/rtk&type=rank" /</picture <picture<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=rtk-ai/rtk&type=trending&theme=dark" /<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/badge?repo=rtk-ai/rtk&type=trending" /<img alt="GitHub Trending Repository of the Day" src="https://api.star-history.com/badge?repo=rtk-ai/rtk&type=trending" /</picture </a </p

rtk filters and compresses command outputs before they reach your LLM context. Single Rust binary, 100+ supported commands, <10ms overhead.

What RTK Does

RTK intercepts shell commands and compresses their output before your agent reads it.

| Operation | What RTK does to the output | |-----------|-----------------------------| | ls / tree | Tree format with file counts instead of one line per entry | | cat / read | Smart file reading: signatures and structure over full bodies | | grep / rg | Truncates long lines, groups matches by file | | ast-grep | Groups structural matches by file, caps overflow | | git status | Compact stat format, grouped by state | | git diff | Reduced context, headers stripped | | git log | Hash, author and subject only | | git add/commit/push | Confirmation line instead of full progress output | | cargo test / npm test | Failures only, passing tests collapsed to a count | | ruff check | Grouped by rule and file | | sqlfluff lint | Grouped by rule and file | | pytest | Failures only, traceback trimmed | | go test | NDJSON parsed, failures only | | docker ps | Essential fields only |

How Savings Work

RTK cuts up to 90% of the bash output your agent reads. That is what RTK measures, and it is not the same as cutting your bill by 90%.

Bash output is one contributor to input tokens, alongside your prompt, the system prompt and conversation history. Input tokens are in turn only part of the bill, which also counts output tokens. The reduction dilutes at every step.

The token counts RTK reports are estimated as bytes / 4 — RTK ships no tokenizer, so the percentages are reliable but the absolute token numbers are approximate.

Full explanation: How RTK Savings Work

Installation

Homebrew (recommended)