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
+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
#845Feature: add support for kiro-cli29 comments · 2026-03-26#1313Feature request: lossless-only mode + honest account of silent failures truncation causes in agent contexts18 comments · 2026-04-14#2317Tool filters mask hard failures with benign summaries (pytest collection error -> "No tests collected")13 comments · 2026-06-07#996[Codex MacOS App] : RTK.md is not opened automatically10 comments · 2026-04-03#2898Feature Request: Add support for ZCode (Z.ai Agentic Development Environment)9 comments · 2026-07-08#2805Savings accounting credits rtk with the agent's own head/tail filtering — repro: 2.1M tokens claimed '100% saved' vs ~195 real (>10,000×); likely root cause of #27629 comments · 2026-07-03#2436[grep] header reports raw match counts even when --max caps output9 comments · 2026-06-14#1098Support for Flutter & Dart commands (flutter pub, flutter analyze, dart analyze)9 comments · 2026-04-09
Discussions
#5054RTK 1.x: what changed, and how to get the most out of it0 comments · 2026-11-09#5027PHP version, return just the semver version1 comments · 2026-11-06#4972rtk-mcp: a Rust MCP server that runs commands through RTK0 comments · 2026-11-03#4946Would an opt-in Texio recipe complement RTK on named Markdown tasks?0 comments · 2026-11-02#4633Grep and RG optimizations.0 comments · 2026-10-17#4598How we verify RTK's output stays transparent, on every release0 comments · 2026-10-16#4592rtk is included in the AgentManager tool catalog0 comments · 2026-10-16#4511Request: review of RTK setup for a public benchmark1 comments · 2026-10-11
Latest release
v1.2.0 v1.2.0 2026-11-081.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
相关报道 (6)
虎嗅Ponytail插件通过少写代码策略节省Token消耗,实测成本降低47-77%2026-06-28InfoQ.cn砍掉 90% 冗余词元,省下 70 万美元:Netflix 开源工具狙击 AI 账单黑洞2026-06-18CSDN博客5个月“救回”2000亿Token!被AI账单吓到,Netflix大佬开源「Token瘦身器」:砍掉90%无效Token2026-06-05Pasquale PillitteriClaude Code 令牌: 节省高达 90% 的 10 个 GitHub 仓库2026-04-2180aj.comGitHub获2.6万星标:RTK工具宣称能削减LLM高达90%的Token消耗2026-04-15QQ News省下89%的Token,这个代理工具让AI编程成本骤降2026-02-14
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