rtk-ai/rtkPublic

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

AI summary: A high-performance CLI proxy written in Rust that radically compresses shell output to reduce LLM context token usage.

Stars
85.9K
+304 today
Forks
5.5K
Watchers
216
Open issues
919
Open PRs
787
Contributors
~202
Commits
2.7K
Branches
174

RustApache-2.0Created Jan 22, 2026Last push 3d agoLatest release v1.1.0+701 stars this week+3.1K this month

Quick answers

What is rtk?
A high-performance CLI proxy written in Rust that radically compresses shell output to reduce LLM context token usage.
What does rtk do?
rtk intercepts standard developer terminal commands and heavily filters their output before it is read by an AI coding agent, significantly reducing token consumption. The tool operates as a remarkably fast, single-binary Rust proxy with virtually zero latency overhead, capable of intelligently summarizing the output of over 100 common development tools. Instead of returning raw, verbose logs from commands like git diff or cargo test, it parses the output and returns highly dense, compacted summaries containing only the essential failure traces or structural metadata. By aggressively truncating redundant text, rtk massively accelerates agent processing times and drastically lowers API billing costs without degrading the agent's contextual awareness.
Who is rtk for?
Software engineers utilizing autonomous AI coding agents and CLI assistants. It is designed for those who want to optimize API costs and improve agent response times by intelligently managing terminal output context.
How do I get started with rtk?
cargo install rtk-proxy
How popular is rtk on GitHub?
rtk-ai/rtk has 85,921 stars and 5,506 forks on GitHub, and gained 701 stars in the last 7 days.
What license does rtk use?
rtk-ai/rtk is released under the Apache-2.0 license.

Star history

since Jul 29, 2026
025K50K75KJul 2026Aug 2026Oct 2026Nov 2026
85.9K stars as of Nov 8, 2026. Measured daily since Jul 29, 2026; GitHub no longer exposes earlier star timestamps.

Update history

3 recorded
  • Oct 26, 2026New release v1.1.0 (previously v1.0.1).
  • Oct 18, 2026New release v1.0.1 (previously v0.51.0).
  • Oct 8, 2026New release v0.51.0 (previously v0.50.0).

Contribution activity

commits per day, last 52 weeks
NovDecJanFebMarAprMayJunJulAugSepOctNovMonWedFri2025-11-09: 0 commits2025-11-10: 0 commits2025-11-11: 0 commits2025-11-12: 0 commits2025-11-13: 0 commits2025-11-14: 0 commits2025-11-15: 0 commits2025-11-16: 0 commits2025-11-17: 0 commits2025-11-18: 0 commits2025-11-19: 0 commits2025-11-20: 0 commits2025-11-21: 0 commits2025-11-22: 0 commits2025-11-23: 0 commits2025-11-24: 0 commits2025-11-25: 0 commits2025-11-26: 0 commits2025-11-27: 0 commits2025-11-28: 0 commits2025-11-29: 0 commits2025-11-30: 0 commits2025-12-01: 0 commits2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 0 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 5 commits2026-01-23: 14 commits2026-01-24: 2 commits2026-01-25: 0 commits2026-01-26: 1 commit2026-01-27: 0 commits2026-01-28: 11 commits2026-01-29: 13 commits2026-01-30: 12 commits2026-01-31: 6 commits2026-02-01: 8 commits2026-02-02: 27 commits2026-02-03: 9 commits2026-02-04: 3 commits2026-02-05: 1 commit2026-02-06: 4 commits2026-02-07: 6 commits2026-02-08: 1 commit2026-02-09: 1 commit2026-02-10: 1 commit2026-02-11: 0 commits2026-02-12: 17 commits2026-02-13: 8 commits2026-02-14: 7 commits2026-02-15: 11 commits2026-02-16: 8 commits2026-02-17: 6 commits2026-02-18: 7 commits2026-02-19: 4 commits2026-02-20: 3 commits2026-02-21: 1 commit2026-02-22: 4 commits2026-02-23: 1 commit2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 1 commit2026-02-28: 7 commits2026-03-01: 2 commits2026-03-02: 1 commit2026-03-03: 1 commit2026-03-04: 4 commits2026-03-05: 22 commits2026-03-06: 31 commits2026-03-07: 1 commit2026-03-08: 1 commit2026-03-09: 1 commit2026-03-10: 13 commits2026-03-11: 15 commits2026-03-12: 16 commits2026-03-13: 16 commits2026-03-14: 2 commits2026-03-15: 0 commits2026-03-16: 7 commits2026-03-17: 1 commit2026-03-18: 13 commits2026-03-19: 12 commits2026-03-20: 5 commits2026-03-21: 8 commits2026-03-22: 2 commits2026-03-23: 4 commits2026-03-24: 6 commits2026-03-25: 15 commits2026-03-26: 7 commits2026-03-27: 11 commits2026-03-28: 12 commits2026-03-29: 7 commits2026-03-30: 16 commits2026-03-31: 5 commits2026-04-01: 2 commits2026-04-02: 11 commits2026-04-03: 17 commits2026-04-04: 12 commits2026-04-05: 7 commits2026-04-06: 8 commits2026-04-07: 2 commits2026-04-08: 8 commits2026-04-09: 4 commits2026-04-10: 15 commits2026-04-11: 6 commits2026-04-12: 14 commits2026-04-13: 5 commits2026-04-14: 7 commits2026-04-15: 4 commits2026-04-16: 5 commits2026-04-17: 4 commits2026-04-18: 8 commits2026-04-19: 8 commits2026-04-20: 5 commits2026-04-21: 2 commits2026-04-22: 4 commits2026-04-23: 5 commits2026-04-24: 6 commits2026-04-25: 7 commits2026-04-26: 5 commits2026-04-27: 2 commits2026-04-28: 7 commits2026-04-29: 9 commits2026-04-30: 2 commits2026-05-01: 4 commits2026-05-02: 0 commits2026-05-03: 1 commit2026-05-04: 3 commits2026-05-05: 6 commits2026-05-06: 9 commits2026-05-07: 3 commits2026-05-08: 7 commits2026-05-09: 1 commit2026-05-10: 3 commits2026-05-11: 1 commit2026-05-12: 2 commits2026-05-13: 5 commits2026-05-14: 2 commits2026-05-15: 3 commits2026-05-16: 4 commits2026-05-17: 5 commits2026-05-18: 2 commits2026-05-19: 0 commits2026-05-20: 6 commits2026-05-21: 8 commits2026-05-22: 4 commits2026-05-23: 5 commits2026-05-24: 2 commits2026-05-25: 19 commits2026-05-26: 5 commits2026-05-27: 4 commits2026-05-28: 4 commits2026-05-29: 6 commits2026-05-30: 2 commits2026-05-31: 2 commits2026-06-01: 1 commit2026-06-02: 0 commits2026-06-03: 18 commits2026-06-04: 2 commits2026-06-05: 5 commits2026-06-06: 4 commits2026-06-07: 2 commits2026-06-08: 3 commits2026-06-09: 2 commits2026-06-10: 0 commits2026-06-11: 5 commits2026-06-12: 5 commits2026-06-13: 1 commit2026-06-14: 4 commits2026-06-15: 10 commits2026-06-16: 1 commit2026-06-17: 3 commits2026-06-18: 11 commits2026-06-19: 3 commits2026-06-20: 1 commit2026-06-21: 1 commit2026-06-22: 1 commit2026-06-23: 6 commits2026-06-24: 7 commits2026-06-25: 2 commits2026-06-26: 14 commits2026-06-27: 4 commits2026-06-28: 3 commits2026-06-29: 9 commits2026-06-30: 10 commits2026-07-01: 20 commits2026-07-02: 7 commits2026-07-03: 21 commits2026-07-04: 3 commits2026-07-05: 3 commits2026-07-06: 8 commits2026-07-07: 5 commits2026-07-08: 1 commit2026-07-09: 2 commits2026-07-10: 0 commits2026-07-11: 2 commits2026-07-12: 1 commit2026-07-13: 0 commits2026-07-14: 3 commits2026-07-15: 4 commits2026-07-16: 1 commit2026-07-17: 1 commit2026-07-18: 4 commits2026-07-19: 4 commits2026-07-20: 12 commits2026-07-21: 7 commits2026-07-22: 22 commits2026-07-23: 12 commits2026-07-24: 7 commits2026-07-25: 4 commits2026-07-26: 6 commits2026-07-27: 5 commits2026-07-28: 11 commits2026-07-29: 1 commit2026-07-30: 5 commits2026-07-31: 3 commits2026-08-01: 5 commits2026-08-02: 8 commits2026-08-03: 2 commits2026-08-04: 1 commit2026-08-05: 10 commits2026-08-06: 0 commits2026-08-07: 2 commits2026-08-08: 0 commits2026-08-09: 0 commits2026-08-10: 1 commit2026-08-11: 2 commits2026-08-12: 1 commit2026-08-13: 4 commits2026-08-14: 1 commit2026-08-15: 5 commits2026-08-16: 3 commits2026-08-17: 7 commits2026-08-18: 3 commits2026-08-19: 10 commits2026-08-20: 25 commits2026-08-21: 1 commit2026-08-22: 0 commits2026-08-23: 52 commits2026-08-24: 6 commits2026-08-25: 15 commits2026-08-26: 16 commits2026-08-27: 6 commits2026-08-28: 9 commits2026-08-29: 30 commits2026-08-30: 25 commits2026-08-31: 10 commits2026-09-01: 17 commits2026-09-02: 25 commits2026-09-03: 12 commits2026-09-04: 13 commits2026-09-05: 7 commits2026-09-06: 3 commits2026-09-07: 21 commits2026-09-08: 24 commits2026-09-09: 13 commits2026-09-10: 4 commits2026-09-11: 4 commits2026-09-12: 5 commits2026-09-13: 26 commits2026-09-14: 18 commits2026-09-15: 3 commits2026-09-16: 1 commit2026-09-17: 0 commits2026-09-18: 7 commits2026-09-19: 16 commits2026-09-20: 5 commits2026-09-21: 5 commits2026-09-22: 10 commits2026-09-23: 1 commit2026-09-24: 6 commits2026-09-25: 7 commits2026-09-26: 15 commits2026-09-27: 4 commits2026-09-28: 19 commits2026-09-29: 15 commits2026-09-30: 4 commits2026-10-01: 4 commits2026-10-02: 8 commits2026-10-03: 15 commits2026-10-04: 1 commit2026-10-05: 13 commits2026-10-06: 11 commits2026-10-07: 4 commits2026-10-08: 1 commit2026-10-09: 3 commits2026-10-10: 1 commit2026-10-11: 5 commits2026-10-12: 6 commits2026-10-13: 22 commits2026-10-14: 7 commits2026-10-15: 8 commits2026-10-16: 0 commits2026-10-17: 8 commits2026-10-18: 7 commits2026-10-19: 12 commits2026-10-20: 8 commits2026-10-21: 19 commits2026-10-22: 5 commits2026-10-23: 9 commits2026-10-24: 2 commits2026-10-25: 1 commit2026-10-26: 3 commits2026-10-27: 0 commits2026-10-28: 3 commits2026-10-29: 3 commits2026-10-30: 8 commits2026-10-31: 11 commits2026-11-01: 5 commits2026-11-02: 8 commits2026-11-03: 4 commits2026-11-04: 5 commits2026-11-05: 0 commits2026-11-06: 0 commits2026-11-07: 0 commits
1,919 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Landmark project

    85,921 stars

  • Very active

    1,919 commits in 52 weeks

  • Community-driven

    ~202 contributors

  • Permissive license

    Apache-2.0

  • Repeat trending

    25 trending appearances

  • Top 10% tracked

    Rank 106 of 1220

What rtk does

rtk intercepts standard developer terminal commands and heavily filters their output before it is read by an AI coding agent, significantly reducing token consumption. The tool operates as a remarkably fast, single-binary Rust proxy with virtually zero latency overhead, capable of intelligently summarizing the output of over 100 common development tools. Instead of returning raw, verbose logs from commands like git diff or cargo test, it parses the output and returns highly dense, compacted summaries containing only the essential failure traces or structural metadata. By aggressively truncating redundant text, rtk massively accelerates agent processing times and drastically lowers API billing costs without degrading the agent's contextual awareness.

Software engineers utilizing autonomous AI coding agents and CLI assistants. It is designed for those who want to optimize API costs and improve agent response times by intelligently managing terminal output context.

  • Smart output compression: Intercepts verbose terminal commands automatically and rewrites them into highly compact, token-efficient summaries.
  • Zero dependency Rust binary: Deploys rapidly as a single, incredibly fast Rust executable adding under 10ms of overhead to standard shell commands.
  • Tool-specific parsing: Contains deep, native understanding for over 100 tools, intelligently extracting only failures from test runners or structural counts from directory listings.
  • Agent agnostic integration: Operates seamlessly alongside any standard AI coding assistant or CLI by simply acting as a transparent proxy layer.
  • Massive token reduction: Empirically slashes the raw bash output length ingested by the LLM by up to 90 percent on standard debugging workflows.

Where teams use it

Agent debugging

Use the proxy when giving coding agents system access to avoid massive context consumption on long test outputs.

Log summarization

Reduce verbose git diffs and logs into compact structured insights.

Context optimization

Preserve context window limits during complex multi-step automated development workflows.

Cost management

Lower API billing costs by stripping out boilerplate noise before token ingestion.

Getting started: cargo install rtk-proxy

README

develop branch

RTK - Rust Token Killer

Agent-agnostic token optimization: compress, route, filter, and more.

One composable pipeline across everything your AI agent reads and sends — built on RTK's battle-tested bash-output compression (up to 90% smaller).

CI Release License: Apache-2.0 and BUSL-1.1 Discord Homebrew

Website • Install • Troubleshooting • Architecture • Discord

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


Star History Rank GitHub Trending Repository of the Day

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

Angular builds are supported with rtk ng build: compact build tables with every bundle and diagnostic retained.

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 reduces the bash output your agent reads. That is what RTK measures, and it is not the same as cutting your bill by the same amount.

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

brew install rtk                                              # macOS / Linux
winget install rtk-ai.rtk                                     # Windows
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh

Then check you have the right package — another project named "rtk" exists on crates.io:

rtk --version   # any current version
rtk gain        # must show the savings dashboard, not "command not found"

Cargo, pre-built binaries, native Windows, WSL, and uninstall: Installation guide

What You Install

RTK ships as three downloads. The two rtk editions install a binary with the same name — hooks, scripts and agent config work unchanged across both — so they cannot be installed together. Uninstall one before installing the other.

flowchart TD
    agent["Your coding agent"]

    subgraph editions["Pick one · both install a binary named rtk"]
        direction LR
        full["<b>rtk</b><br/>Apache-2.0 + BUSL-1.1<br/>hooks · filters · engine"]
        oss["<b>rtk-oss</b><br/>Apache-2.0 only<br/>hooks · filters"]
    end

    proxy["<b>rtk-proxy</b><br/>BUSL-1.1<br/>compresses API traffic"]

    agent -->|"command output"| full
    agent -->|"command output"| oss
    agent -.->|"API traffic"| proxy

    classDef apache stroke:#2da44e,stroke-width:2px,fill:none
    classDef busl stroke:#0969da,stroke-width:2px,fill:none
    classDef mixed stroke:#8250df,stroke-width:2px,fill:none
    classDef plain stroke:#8c959f,stroke-width:1px,fill:none
    class full mixed
    class oss apache
    class proxy busl
    class agent plain
    style editions fill:none,stroke:#d0d7de,stroke-dasharray:4 4
Loading
Download Licence Contains
rtk-<target> Apache-2.0 + BUSL-1.1 Hook core, every command filter, and the compression engine
rtk-oss-<target> Apache-2.0 only Hook core and every command filter. No engine.
rtk-proxy-<target> BUSL-1.1 The RTK Proxy daemon. Never bundled with either rtk.

Production use is free, engine and daemon included. What the BUSL grant does not cover is offering RTK or a derivative to third parties as a commercial product or service — for that, contact [email protected].

curl -fsSL .../install.sh | RTK_EDITION=oss sh    # Apache-2.0 edition
brew install rtk-ai/tap/rtk-oss

What the Apache-2.0 edition omits and where the licence boundary falls: Editions and Licensing

Quick Start

# 1. Install for your AI tool
rtk init -g                     # Claude Code / Copilot (default)
rtk init -g --gemini            # Gemini CLI
rtk init -g --codex             # Codex (OpenAI)
rtk init -g --agent cursor      # Cursor
rtk init -g --agent windsurf    # Windsurf
rtk init --agent cline          # Cline / Roo Code
rtk init --agent kilocode       # Kilo Code
rtk init --agent antigravity    # Google Antigravity
rtk init --agent kimi           # Kimi AI
rtk init -g --agent pi          # Pi
rtk init --agent omp            # Oh My Pi (OMP)
rtk init --agent hermes         # Hermes
rtk init -g --agent droid       # Factory Droid
rtk init --agent trae           # Trae (project: .trae/hooks.json)
rtk init -g --agent trae        # Trae global: ~/.trae and existing ~/.trae-cn

# 2. Restart your AI tool, then test
git status  # Automatically rewritten to rtk git status

The agent receives compact output without ever calling rtk explicitly.

The hook only fires on Bash tool calls. Built-in tools like Read, Grep and Glob do not pass through it. Use shell commands (cat, rg, find) or call rtk read, rtk grep, rtk find directly.

Per-agent setup, --dry-run, and uninstall: Quick Start · Supported Agents

How It Works

  Without rtk:                                    With rtk:

  Claude  --git status-->  shell  -->  git         Claude  --git status-->  RTK  -->  git
    ^                                   |            ^                      |          |
    |         full raw output           |            |  compact output      | filter   |
    +-----------------------------------+            +------- (filtered) ---+----------+

Four strategies applied per command type:

  1. Smart Filtering - Removes noise (comments, whitespace, boilerplate)
  2. Grouping - Aggregates similar items (files by directory, errors by type)
  3. Truncation - Keeps relevant context, cuts redundancy
  4. Deduplication - Collapses repeated log lines with counts

Does RTK break Claude's prompt cache? No. RTK filters output once per command. The result is stored in history and cached normally on subsequent API calls, so the cache keeps working as expected. Smaller outputs also mean cheaper cache writes and reads. See Troubleshooting for details.

Supported AI Tools

RTK supports 18 AI coding tools. Each integration rewrites shell commands to rtk equivalents, reducing the bash output the agent reads where the agent supports command interception.

Tool Install Method
Claude Code rtk init -g PreToolUse hook (native binary)
GitHub Copilot (VS Code) rtk init -g --copilot PreToolUse hook — transparent rewrite
GitHub Copilot CLI rtk init -g --copilot PreToolUse deny-with-suggestion (CLI limitation)
Cursor rtk init -g --agent cursor preToolUse hook (hooks.json)
Gemini CLI rtk init -g --gemini BeforeTool hook
Codex rtk init -g --codex PreToolUse hook (updatedInput) + AGENTS.md
Windsurf rtk init -g --agent windsurf .windsurfrules (project-scoped)
Cline / Roo Code rtk init --agent cline .clinerules (project-scoped)
OpenCode rtk init -g --opencode Plugin TS (execute.before / tool.execute.before), needs 1.18.29 or newer
OpenClaw openclaw plugins install ./openclaw Plugin TS (before_tool_call)
Pi rtk init -g --agent pi (global) TypeScript extension (tool_call)
Oh My Pi (OMP) rtk init -g --agent omp (global) / rtk init --agent omp (project) TypeScript extension (tool_call, shared with Pi)
Hermes rtk init --agent hermes Python plugin adapter (terminal command mutation via rtk rewrite)
Mistral Vibe rtk init -g --agent vibe pre_tool hook (hooks.toml)
Kilo Code rtk init --agent kilocode .kilocode/rules/rtk-rules.md (project-scoped)
Google Antigravity rtk init --agent antigravity / rtk init -g --agent antigravity .agents/plugins/rtk/ (project) or ~/.gemini/config/plugins/rtk/ (global): plugin.json, hooks.json, rules/AGENTS.md
Kimi AI rtk init --agent kimi AGENTS.md (project-scoped)
Factory Droid rtk init -g --agent droid (or per-project) PreToolUse hook in ~/.factory/hooks.json (matcher Execute)
Trae rtk init --agent trae Native PreToolUse hook in .trae/hooks.json (RunCommand)
Trae (global) rtk init -g --agent trae ~/.trae/hooks.json, plus ~/.trae-cn/hooks.json when that directory exists

For per-agent setup details, override controls, and graceful degradation, see the Supported Agents guide. The Hermes plugin source and tests live in hooks/hermes/; installed Hermes runtime files still live under ~/.hermes/plugins/rtk-rewrite/.

What RTK Covers

100+ commands across Git, GitHub CLI, Cargo/Rust, JavaScript (npm, pnpm, vitest, jest, tsc, Next.js, Playwright, Prisma), Python (ruff, pytest, mypy, pip), Go (go test, golangci-lint), Ruby, .NET, JVM (Gradle, Maven), PHP, Docker, Kubernetes, AWS, Terraform, and the file/search builtins.

-v, --verbose          # increase verbosity (-v, -vv, -vvv)
rtk bypass <cmd>       # run one command unfiltered, still tracked

Every command and its filter: What RTK Optimizes

Escape hatches

rtk filters command output by default. When a result looks wrong, bypass the filter for one command to see the raw output and tell a filter bug apart from the real thing:

rtk bypass git log --oneline -20        # full git log, no truncation
rtk bypass npm install express          # raw npm output, no filtering
rtk bypass curl https://api.example.com/data
  • What it does: runs one command unfiltered and still tracks it — bypassed commands appear in rtk gain --history with 0% bash output reduction.
  • When to use it: an output looks off and you need to know whether the filter or the command produced it, when debugging a filter, or for an edge case a filter mishandles.
  • rtk proxy <cmd> is a deprecated alias of rtk bypass <cmd>.

Not the same thing as rtk llm-proxy. rtk bypass runs one local command unfiltered. rtk llm-proxy manages the rtk-proxy daemon, which compresses your agent's provider-API traffic — see RTK Proxy.

Measure It

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

Attribution, the live dashboard and export formats: Token Savings Analytics

RTK Proxy (optional)

rtk optimizes command output before your agent reads it. The rtk-proxy daemon extends the same engine to your agent's provider-API traffic — a local background process that sits between your agent and the provider and runs the pipeline on the traffic itself: it compresses payloads, strips bytes no model ever needed before forwarding, and carries the calls your pipeline routes to cheaper models, so they borrow the credential your agent already sends and show up in rtk gain. It can also align prompt-cache breakpoints where the agent leaves them open (opt-in).

rtk claude              # start the daemon if needed, then launch Claude through it
rtk llm-proxy status    # is it up
rtk gain                # savings, command-filtering and proxy side by side

Two independent ways in, because not every harness has a session hook:

What it does
rtk init -g Offers to set it up once: writes the base URL and the rtk:proxy pipeline, then asks how the daemon should come back after a reboot — SessionStart hook, background service, or neither.
rtk <harness> No configuration at all. Starts the daemon, points the harness at it, then execs it. Needs no hook system, which is why it covers harnesses that have none.

rtk <harness> resolving is itself the signal that traffic really goes through the daemon — the subcommand exists only where redirection is verified. Today that is rtk claude. A harness without one is never silently unproxied: it falls through to plain passthrough, and rtk llm-proxy setup lists what can be launched.

It is a separate binary under a separate licence (BUSL-1.1), shipped as its own rtk-proxy-<target> archive — rtk never links it.

Setup and subcommands: RTK Proxy · what it compresses: What the Proxy Compresses · settings and endpoints: Proxy Configuration

The Engine (pipeline.toml)

Everything RTK does — which commands get rewritten, what happens to a tool's output, what the proxy compresses — is expressed in one composable file. The engine (engine/, crate rtk-engine, BUSL-1.1) reads it, so the levers are configurable instead of hard-coded.

Upgrading changes nothing. With no pipeline file you are on rtk:default: the same PreToolUse rewrite, the same awareness file, your filters.toml, your config.toml. Everything beyond that is opt-in, one line at a time:

# ~/.config/rtk/pipeline.toml
[pipeline]
extends = ["rtk:posthook", "rtk:proxy"]

The tour: Pipelines · the reference: Writing a Pipeline, Conditions and Judges, Methods, Tasks and Upstreams · the commands: Pipeline Commands · write your own method: Plugins

Documentation

rtk-ai.app/guide is the full user guide.

Installation every install method, Windows, WSL, uninstall
Quick Start per-agent init, --dry-run, first savings
Supported Agents setup detail, override controls, degradation
Agent Coverage what each agent's hook API lets RTK do
What RTK Optimizes every command and its filter
Configuration config.toml, env vars, recall recovery
Token Savings Analytics rtk gain in full
Pipelines the engine: pipeline.toml, rules, judges, tasks, sharing
RTK Proxy the daemon: setup, what it compresses, settings
Editions and Licensing what each download contains
Telemetry & Privacy what is collected, how to opt in, your GDPR rights
Troubleshooting common issues, prompt-cache questions

Repository references: engine/README.md · proxy/README.md · ARCHITECTURE.md · CONTRIBUTING.md · SECURITY.md

RTK collects no command content and no file contents. Telemetry is anonymous and off by default — it sends nothing until you opt in with explicit consent (GDPR Art. 6 & 7) via rtk telemetry enable, and documented in Telemetry & Privacy.

Star History

Star History Chart

StarMapper

StarMapper

Core team

Contributing

Contributions welcome! Please open an issue or PR on GitHub.

Join the community on Discord.

License

The rtk CLI is Apache-2.0 — see LICENSE.

It links one component under a different licence. rtk-engine (engine/) is BUSL-1.1, source-available: see engine/LICENSE. Its Additional Use Grant permits production use as part of the rtk binary, so running rtk is covered; using the engine on its own, or inside another product, is not until the Change Date.

The rtk-proxy daemon (proxy/) is BUSL-1.1 on the same terms and ships as its own archive with its licence alongside — rtk never links it.

RTK Pro

Your company is looking to take control back on your AI fleet ? RTK Pro provides the control layer for costs, security and governances for all agents.

Check it out : RTK Pro.

Disclaimer

See DISCLAIMER.md.

View on GitHub

Recent activity

commits and pull requests

Releases and announcements

466 total
  1. dev-1.2.0-rc.615dev-1.2.0-rc.615Nov 5, 2026pre-release251 downloads
  2. dev-1.2.0-rc.614dev-1.2.0-rc.614Nov 4, 2026pre-release150 downloads
  3. dev-1.2.0-rc.612dev-1.2.0-rc.612Nov 3, 2026pre-release534 downloads
  4. dev-1.2.0-rc.610dev-1.2.0-rc.610Nov 2, 2026pre-release74 downloads
  5. dev-1.2.0-rc.609dev-1.2.0-rc.609Nov 2, 2026pre-release109 downloads

Code frequency

additions and deletions
+70.1K-70.1KWeek of 2026-01-18: +10,179 linesWeek of 2026-01-18: -3,424 linesWeek of 2026-01-25: +12,464 linesWeek of 2026-01-25: -749 linesWeek of 2026-02-01: +14,964 linesWeek of 2026-02-01: -4,772 linesWeek of 2026-02-08: +8,927 linesWeek of 2026-02-08: -458 linesWeek of 2026-02-15: +9,258 linesWeek of 2026-02-15: -409 linesWeek of 2026-02-22: +1,763 linesWeek of 2026-02-22: -239 linesWeek of 2026-03-01: +11,609 linesWeek of 2026-03-01: -1,950 linesWeek of 2026-03-08: +23,717 linesWeek of 2026-03-08: -2,450 linesWeek of 2026-03-15: +14,017 linesWeek of 2026-03-15: -1,493 linesWeek of 2026-03-22: +50,364 linesWeek of 2026-03-22: -45,582 linesWeek of 2026-03-29: +20,006 linesWeek of 2026-03-29: -14,546 linesWeek of 2026-04-05: +10,637 linesWeek of 2026-04-05: -8,880 linesWeek of 2026-04-12: +3,722 linesWeek of 2026-04-12: -1,424 linesWeek of 2026-04-19: +4,278 linesWeek of 2026-04-19: -796 linesWeek of 2026-04-26: +3,594 linesWeek of 2026-04-26: -663 linesWeek of 2026-05-03: +5,981 linesWeek of 2026-05-03: -1,645 linesWeek of 2026-05-10: +2,035 linesWeek of 2026-05-10: -877 linesWeek of 2026-05-17: +3,642 linesWeek of 2026-05-17: -1,102 linesWeek of 2026-05-24: +2,986 linesWeek of 2026-05-24: -487 linesWeek of 2026-05-31: +4,746 linesWeek of 2026-05-31: -812 linesWeek of 2026-06-07: +1,347 linesWeek of 2026-06-07: -541 linesWeek of 2026-06-14: +2,055 linesWeek of 2026-06-14: -761 linesWeek of 2026-06-21: +4,226 linesWeek of 2026-06-21: -2,580 linesWeek of 2026-06-28: +3,168 linesWeek of 2026-06-28: -1,009 linesWeek of 2026-07-05: +4,195 linesWeek of 2026-07-05: -1,228 linesWeek of 2026-07-12: +1,580 linesWeek of 2026-07-12: -173 linesWeek of 2026-07-19: +6,953 linesWeek of 2026-07-19: -2,100 linesWeek of 2026-07-26: +3,034 linesWeek of 2026-07-26: -1,060 linesWeek of 2026-08-02: +2,076 linesWeek of 2026-08-02: -557 linesWeek of 2026-08-09: +2,129 linesWeek of 2026-08-09: -324 linesWeek of 2026-08-16: +5,794 linesWeek of 2026-08-16: -1,857 linesWeek of 2026-08-23: +16,943 linesWeek of 2026-08-23: -4,871 linesWeek of 2026-08-30: +19,954 linesWeek of 2026-08-30: -4,775 linesWeek of 2026-09-06: +12,077 linesWeek of 2026-09-06: -3,472 linesWeek of 2026-09-13: +33,584 linesWeek of 2026-09-13: -23,594 linesWeek of 2026-09-20: +10,586 linesWeek of 2026-09-20: -1,516 linesWeek of 2026-09-27: +14,155 linesWeek of 2026-09-27: -3,967 linesWeek of 2026-10-04: +3,158 linesWeek of 2026-10-04: -1,071 linesWeek of 2026-10-11: +70,065 linesWeek of 2026-10-11: -10,742 linesWeek of 2026-10-18: +11,267 linesWeek of 2026-10-18: -1,611 linesWeek of 2026-10-25: +2,807 linesWeek of 2026-10-25: -498 linesWeek of 2026-11-01: +1,101 linesWeek of 2026-11-01: -403 linesJan 18, 2026Nov 1, 2026
+451.1K lines added, -161.5K removed over the last year.

Commits per week

last 52 weeks
1340Week of 2025-11-09: 0 commitsWeek of 2025-11-16: 0 commitsWeek of 2025-11-23: 0 commitsWeek of 2025-11-30: 0 commitsWeek of 2025-12-07: 0 commitsWeek of 2025-12-14: 0 commitsWeek of 2025-12-21: 0 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 0 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 21 commitsWeek of 2026-01-25: 43 commitsWeek of 2026-02-01: 58 commitsWeek of 2026-02-08: 35 commitsWeek of 2026-02-15: 40 commitsWeek of 2026-02-22: 13 commitsWeek of 2026-03-01: 62 commitsWeek of 2026-03-08: 64 commitsWeek of 2026-03-15: 46 commitsWeek of 2026-03-22: 57 commitsWeek of 2026-03-29: 70 commitsWeek of 2026-04-05: 50 commitsWeek of 2026-04-12: 47 commitsWeek of 2026-04-19: 37 commitsWeek of 2026-04-26: 29 commitsWeek of 2026-05-03: 30 commitsWeek of 2026-05-10: 20 commitsWeek of 2026-05-17: 30 commitsWeek of 2026-05-24: 42 commitsWeek of 2026-05-31: 32 commitsWeek of 2026-06-07: 18 commitsWeek of 2026-06-14: 33 commitsWeek of 2026-06-21: 35 commitsWeek of 2026-06-28: 73 commitsWeek of 2026-07-05: 21 commitsWeek of 2026-07-12: 14 commitsWeek of 2026-07-19: 68 commitsWeek of 2026-07-26: 36 commitsWeek of 2026-08-02: 23 commitsWeek of 2026-08-09: 14 commitsWeek of 2026-08-16: 49 commitsWeek of 2026-08-23: 134 commitsWeek of 2026-08-30: 109 commitsWeek of 2026-09-06: 74 commitsWeek of 2026-09-13: 71 commitsWeek of 2026-09-20: 49 commitsWeek of 2026-09-27: 69 commitsWeek of 2026-10-04: 34 commitsWeek of 2026-10-11: 56 commitsWeek of 2026-10-18: 62 commitsWeek of 2026-10-25: 29 commitsWeek of 2026-11-01: 22 commitsNov 9, 2025Nov 1, 2026
1.9K commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 23 commitsSun 1:00 — 10 commitsSun 2:00 — 11 commitsSun 3:00 — 1 commitsSun 4:00 — 2 commitsSun 5:00 — 0 commitsSun 6:00 — 2 commitsSun 7:00 — 0 commitsSun 8:00 — 5 commitsSun 9:00 — 2 commitsSun 10:00 — 6 commitsSun 11:00 — 13 commitsSun 12:00 — 24 commitsSun 13:00 — 9 commitsSun 14:00 — 34 commitsSun 15:00 — 21 commitsSun 16:00 — 22 commitsSun 17:00 — 11 commitsSun 18:00 — 8 commitsSun 19:00 — 15 commitsSun 20:00 — 11 commitsSun 21:00 — 13 commitsSun 22:00 — 2 commitsSun 23:00 — 7 commitsMon 0:00 — 22 commitsMon 1:00 — 15 commitsMon 2:00 — 2 commitsMon 3:00 — 3 commitsMon 4:00 — 0 commitsMon 5:00 — 0 commitsMon 6:00 — 2 commitsMon 7:00 — 6 commitsMon 8:00 — 4 commitsMon 9:00 — 17 commitsMon 10:00 — 25 commitsMon 11:00 — 13 commitsMon 12:00 — 21 commitsMon 13:00 — 9 commitsMon 14:00 — 19 commitsMon 15:00 — 20 commitsMon 16:00 — 18 commitsMon 17:00 — 12 commitsMon 18:00 — 16 commitsMon 19:00 — 13 commitsMon 20:00 — 19 commitsMon 21:00 — 14 commitsMon 22:00 — 12 commitsMon 23:00 — 10 commitsTue 0:00 — 11 commitsTue 1:00 — 14 commitsTue 2:00 — 15 commitsTue 3:00 — 8 commitsTue 4:00 — 0 commitsTue 5:00 — 1 commitsTue 6:00 — 1 commitsTue 7:00 — 5 commitsTue 8:00 — 10 commitsTue 9:00 — 8 commitsTue 10:00 — 22 commitsTue 11:00 — 23 commitsTue 12:00 — 3 commitsTue 13:00 — 7 commitsTue 14:00 — 8 commitsTue 15:00 — 18 commitsTue 16:00 — 16 commitsTue 17:00 — 7 commitsTue 18:00 — 12 commitsTue 19:00 — 21 commitsTue 20:00 — 13 commitsTue 21:00 — 15 commitsTue 22:00 — 11 commitsTue 23:00 — 6 commitsWed 0:00 — 11 commitsWed 1:00 — 8 commitsWed 2:00 — 2 commitsWed 3:00 — 2 commitsWed 4:00 — 10 commitsWed 5:00 — 1 commitsWed 6:00 — 8 commitsWed 7:00 — 1 commitsWed 8:00 — 3 commitsWed 9:00 — 10 commitsWed 10:00 — 14 commitsWed 11:00 — 16 commitsWed 12:00 — 18 commitsWed 13:00 — 12 commitsWed 14:00 — 22 commitsWed 15:00 — 27 commitsWed 16:00 — 13 commitsWed 17:00 — 27 commitsWed 18:00 — 29 commitsWed 19:00 — 18 commitsWed 20:00 — 21 commitsWed 21:00 — 16 commitsWed 22:00 — 17 commitsWed 23:00 — 8 commitsThu 0:00 — 16 commitsThu 1:00 — 10 commitsThu 2:00 — 7 commitsThu 3:00 — 3 commitsThu 4:00 — 3 commitsThu 5:00 — 2 commitsThu 6:00 — 3 commitsThu 7:00 — 0 commitsThu 8:00 — 1 commitsThu 9:00 — 17 commitsThu 10:00 — 12 commitsThu 11:00 — 23 commitsThu 12:00 — 15 commitsThu 13:00 — 12 commitsThu 14:00 — 12 commitsThu 15:00 — 18 commitsThu 16:00 — 16 commitsThu 17:00 — 22 commitsThu 18:00 — 15 commitsThu 19:00 — 7 commitsThu 20:00 — 18 commitsThu 21:00 — 14 commitsThu 22:00 — 15 commitsThu 23:00 — 9 commitsFri 0:00 — 12 commitsFri 1:00 — 8 commitsFri 2:00 — 2 commitsFri 3:00 — 1 commitsFri 4:00 — 2 commitsFri 5:00 — 2 commitsFri 6:00 — 1 commitsFri 7:00 — 6 commitsFri 8:00 — 3 commitsFri 9:00 — 21 commitsFri 10:00 — 20 commitsFri 11:00 — 25 commitsFri 12:00 — 19 commitsFri 13:00 — 31 commitsFri 14:00 — 31 commitsFri 15:00 — 41 commitsFri 16:00 — 13 commitsFri 17:00 — 9 commitsFri 18:00 — 15 commitsFri 19:00 — 25 commitsFri 20:00 — 6 commitsFri 21:00 — 4 commitsFri 22:00 — 1 commitsFri 23:00 — 7 commitsSat 0:00 — 11 commitsSat 1:00 — 27 commitsSat 2:00 — 8 commitsSat 3:00 — 3 commitsSat 4:00 — 0 commitsSat 5:00 — 0 commitsSat 6:00 — 0 commitsSat 7:00 — 2 commitsSat 8:00 — 4 commitsSat 9:00 — 11 commitsSat 10:00 — 15 commitsSat 11:00 — 13 commitsSat 12:00 — 7 commitsSat 13:00 — 11 commitsSat 14:00 — 15 commitsSat 15:00 — 25 commitsSat 16:00 — 8 commitsSat 17:00 — 9 commitsSat 18:00 — 12 commitsSat 19:00 — 14 commitsSat 20:00 — 5 commitsSat 21:00 — 6 commitsSat 22:00 — 12 commitsSat 23:00 — 22 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.
DateListRankStars gained
Jul 23, 2026daily#23+4
Jun 17, 2026daily#20+13
May 20, 2026daily#17+46
May 19, 2026daily#22+34
May 8, 2026daily#13+69
May 7, 2026daily#15+60
May 5, 2026daily#20+60
May 3, 2026daily#22+123
May 2, 2026daily#19+122
May 1, 2026daily#25+60
Apr 27, 2026daily#18+94
Apr 26, 2026daily#18+165
Apr 25, 2026daily#10+226
Apr 24, 2026daily#14+117
Apr 23, 2026daily#17+105
  • public-apis/public-apis

    A collective list of free APIs

    498.3K stars · Python

  • morluto/rea

    Reverse engineer anything with agents, from app behavior down to native binaries.

    453.1K stars · TypeScript

  • affaan-m/ECC

    The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

    301.5K stars · JavaScript

  • NousResearch/hermes-agent

    The agent that grows with you

    262.8K stars · Python

  • n8n-io/n8n

    Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

    210.2K stars · TypeScript

  • yt-dlp/yt-dlp

    A feature-rich command-line audio/video downloader

    207K stars · Python