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
87.2K
+534 today
Forks
5.6K
Watchers
214
Open issues
933
Open PRs
754
Contributors
~205
Commits
2.8K
Branches
177
Views (30d)
4

RustApache-2.0Created Jan 22, 2026Last push 1d agoLatest release v1.2.0+847 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 87,213 stars and 5,608 forks on GitHub, and gained 847 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 2026Sep 2026Oct 2026Nov 2026
87.2K stars as of Nov 20, 2026. Measured daily since Jul 29, 2026; GitHub no longer exposes earlier star timestamps.

Update history

4 recorded
  • Nov 16, 2026New release v1.2.0 (previously v1.1.0).
  • 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-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: 3 commits2026-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: 27 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: 14 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: 7 commits2026-10-21: 20 commits2026-10-22: 5 commits2026-10-23: 8 commits2026-10-24: 2 commits2026-10-25: 1 commit2026-10-26: 4 commits2026-10-27: 0 commits2026-10-28: 3 commits2026-10-29: 3 commits2026-10-30: 11 commits2026-10-31: 11 commits2026-11-01: 11 commits2026-11-02: 14 commits2026-11-03: 4 commits2026-11-04: 6 commits2026-11-05: 8 commits2026-11-06: 2 commits2026-11-07: 1 commit2026-11-08: 3 commits2026-11-09: 2 commits2026-11-10: 0 commits2026-11-11: 5 commits2026-11-12: 6 commits2026-11-13: 0 commits2026-11-14: 0 commits2026-11-15: 0 commits2026-11-16: 3 commits2026-11-17: 0 commits2026-11-18: 0 commits2026-11-19: 0 commits2026-11-20: 0 commits2026-11-21: 0 commits
1,971 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Landmark project

    87,213 stars

  • High momentum

    +534 stars today

  • Very active

    1,971 commits in 52 weeks

  • Community-driven

    ~205 contributors

  • Permissive license

    Apache-2.0

  • Continuous integration

    Automated checks passing

  • Repeat trending

    25 trending appearances

  • Top 10% tracked

    Rank 108 of 1243

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. Fewer tokens, more possibilities.

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

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

Star History Rank GitHub Trending Repository of the Day

Starred by developers at Microsoft, Google, Amazon, Meta, Apple, NVIDIA, IBM, Tencent, ByteDance, Alibaba, Shopify, Datadog, SAP, Adobe, Intel, Samsung, Bosch, Cisco, JPMorgan Chase, Oracle, Netflix, Toyota, Salesforce, Siemens, Accenture, Uber, Spotify, and 1,100+ more companies

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 ↓

A real terminal session, sped up. rtk init -g registers the hook. claude -p is asked to run the test suite and answers that 3 of 281 tests fail, naming each one with its assertion. rtk gain then shows 2 commands, 3.4K tokens saved, 93.3%: rtk cargo test at 94.2% and rtk ls at 82.3%.




Install & forget

macOS, and Linux with Homebrew

brew install rtk

Windows, with winget

winget install rtk-ai.rtk

Linux, macOS or WSL, with the install script

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

Then plug it into your agent

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.

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. Token counts are estimated as bytes / 4, so the percentages are reliable and the absolute numbers are approximate.

After a week of data, rtk gain ends with one line about RTK Pro, at most once a day and only on a terminal. pro_hint = false under [display] in config.toml turns it off.

Full explanation: How RTK Savings Work · attribution, the live dashboard and export formats: Token Savings Analytics


Out of the box: the bash compressor

The part 85k developers starred. Built by 200+ contributors, written against real command output, and every filter has to cut at least 20% to ship.

cargo test on a 48-test crate: 71 lines of raw output on the left; on the right, the 11 lines the agent reads with rtk: the failing test's panic, assertion and location, the pass/fail summary, and an rtk recall line to get the full output back

Operation What the agent reads
cargo test / npm test / pytest / go test Failures only, with their assertion; passing tests collapsed to a count
git status / git diff / git log Compact status, reduced diff context, one line per commit
git add/commit/push A confirmation line instead of progress output
ls / tree / grep / rg Trees with counts, matches grouped by file, long lines cut
ruff check / eslint / cargo clippy Grouped by rule and file
docker ps / kubectl Essential fields only

100+ commands across Git, GitHub CLI, Cargo/Rust, JavaScript (npm, pnpm, vitest, jest, tsc, Next.js, Angular, 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. Every command and its filter: What RTK Optimizes

Three promises

  • Never blocks. If a filter fails, you get the raw output, and the command's exit code is passed through unchanged.
  • Never worse. RTK never prints more than the command did.
  • Nothing hidden. Output that is cut says where the full version is, and rtk bypass runs any command unfiltered, still tracked in rtk gain:
rtk bypass git log --oneline -20        # full git log, no truncation
rtk bypass npm install express          # raw npm output

The hook rewrites shell commands. Built-in tools such as Read, Grep and Glob pass through untouched out of the box; in Claude Code, a pipeline compresses them too (see Pipelines below).

Does RTK break the prompt cache? No: output is filtered once, before it enters the conversation. Details.


Want to go further? Pipelines.

Out of the box, RTK compresses command output and stops there. A pipeline is how you ask it for more: one small file that tells RTK what to do with what your agent reads and sends. No file means the compressor above and nothing else; a pipeline adds one thing at a time, and you can take it back out.

Four things a pipeline turns on, one line each: less command output (on by default, up to 90% less); every tool compressed, not just the shell (Claude Code); big files read by a cheaper model you choose (Claude Code, your API key); clean API traffic through the optional proxy. Below: install a pipeline someone shared or share yours; the best one listed cuts total cost by 20.2% in its author's benchmark

What people turn on first

  • Compress everything the agent reads, not just shell output: grep results, web pages, lockfiles, any output RTK has no filter for (Claude Code).
  • Hand big file reads to a cheaper model you choose. The file never enters your agent's context (Claude Code, with your API key).
  • Clean the API traffic your agent re-sends every turn, with the prompt cache kept intact (through the optional proxy, below).
  • Make the agent write less: terse prose, with code, paths, commands and errors kept in full (every agent).

Each of these is a built-in pipeline, one line to turn on. rtk-ai.app/pipelines lists them next to the pipelines the community shares, each with what it saved and how that was measured. Installing one is a single command:

rtk pipeline add github:user/repo        # check and install a shared pipeline

A pipeline can rewrite commands and send content to the models it declares, so read its file before you install it. Written once, a pipeline works in every agent RTK supports, as far as that agent's hooks allow: Agent Coverage shows what runs where.

Start here: Pipelines · the built-ins, explained: Reference Pipelines · write and share your own: Writing a Pipeline, Pipeline Commands

RTK Proxy (optional)

The rtk-proxy daemon runs the same pipeline on your agent's provider-API traffic: it strips bytes no model ever needed without breaking the prompt cache, and carries the calls your pipeline routes to cheaper models on the credential your agent already sends, so they show up in rtk gain. rtk init -g offers to set it up; rtk claude starts it and launches Claude through it with no configuration at all.

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

Separate binary, separate licence (BUSL-1.1), its own rtk-proxy-<target> archive: rtk never links it. Not the same thing as rtk bypass, which runs one local command unfiltered.

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




Agents across the whole company? Know what they cost, what they touch, and who ran what.

RTK Pro: scale AI agents, stay in control. The control layer for every AI agent in your company. Gateway: every AI call in one place, whichever provider; spend by team, person and model; budgets that warn, then stop. Shield: secrets and personal data masked before any model sees them. Policies: risky commands stopped before they run. Team catalog: skills, MCP servers and pipelines, assigned per team and project. Audit: who did what, and whether it was allowed, every action on record. Runs on each developer's machine, never a secret value leaves it, the CLI stays free and open source.

RTK runs on each developer's machine. RTK Pro connects them into one control layer for the whole company:

  • Gateway. Every AI call goes through one place, whichever provider each team uses.
  • Cost control. Spend by team, person and model. Waste found and removed. Budgets that warn, then stop.
  • Shield. Secrets and personal data masked before any model sees them.
  • Policies. Risky commands stopped before they run.
  • Team catalog. Skills, MCP servers and pipelines, assigned per team and project.
  • Audit log. Who did what, and whether it was allowed.

Nothing changes for the developer. No secret value ever leaves the machine. The CLI stays free and open source.

Just you? Your team, or the whole company?
The Dev plan: guardrails and analytics for one developer. Your own dashboard of spend per project and per model, the Shield and policies on your machine, nothing to administer. Teams, Business and Enterprise: the full control layer for every developer, with SSO and the audit log, scaled across the organisation, up to on-premise deployment and a custom SLA.
Plans and what each includes → See what it is worth for your team → · Talk to us →



Works in your agent

RTK supports 18 AI coding tools. With a hook or plugin, rtk init installs it and compression is automatic. With a rules file, RTK asks the model to prefer rtk commands instead.

Tool Install How
Claude Code rtk init -g hook
GitHub Copilot (VS Code, CLI) rtk init -g --copilot hook
Cursor rtk init -g --agent cursor hook
Gemini CLI rtk init -g --gemini hook
Codex rtk init -g --codex hook
Mistral Vibe rtk init -g --agent vibe hook
Factory Droid rtk init -g --agent droid hook
Trae rtk init --agent trae (or -g) hook
OpenCode (1.18.29+) rtk init -g --opencode plugin
OpenClaw openclaw plugins install ./openclaw plugin
Pi / Oh My Pi rtk init -g --agent pi / --agent omp plugin
Hermes rtk init --agent hermes plugin
Windsurf rtk init -g --agent windsurf rules file
Cline / Roo Code rtk init --agent cline rules file
Kilo Code rtk init --agent kilocode rules file
Google Antigravity rtk init --agent antigravity (or -g) rules file
Kimi AI rtk init --agent kimi rules file

Per-agent setup, what each hook API allows, override controls: Supported Agents · Agent Coverage


Documentation

rtk-ai.app/docs 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.


Editions and licence

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.

Download Licence Contains
rtk-<target> Apache-2.0 + BUSL-1.1 Hook core, every command filter, and the pipeline 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
Where the licence boundary falls
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

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.

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




Community

Star History Chart StarMapper

Core team

Contributing

Contributions welcome: a new filter, a fix, or a pipeline you publish with rtk pipeline share publish. Open an issue or PR on GitHub and read CONTRIBUTING.md first.

Join the community on Discord.

Disclaimer

See DISCLAIMER.md.

View on GitHub

Recent activity

commits and pull requests

Releases and announcements

483 total
  1. dev-1.2.1-rc.640dev-1.2.1-rc.640Nov 16, 2026pre-release35 downloads
  2. dev-1.2.1-rc.638dev-1.2.1-rc.638Nov 16, 2026pre-release93 downloads
  3. dev-1.2.1-rc.637dev-1.2.1-rc.637Nov 12, 2026pre-release904 downloads
  4. dev-1.2.1-rc.636dev-1.2.1-rc.636Nov 12, 2026pre-release99 downloads
  5. dev-1.2.1-rc.635dev-1.2.1-rc.635Nov 12, 2026pre-release128 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,351 linesWeek of 2026-08-02: -566 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,237 linesWeek of 2026-09-06: -3,476 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,191 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,297 linesWeek of 2026-10-18: -1,606 linesWeek of 2026-10-25: +3,333 linesWeek of 2026-10-25: -528 linesWeek of 2026-11-01: +3,113 linesWeek of 2026-11-01: -1,011 linesWeek of 2026-11-08: +2,867 linesWeek of 2026-11-08: -857 linesWeek of 2026-11-15: +141 linesWeek of 2026-11-15: -64 linesJan 18, 2026Nov 15, 2026
+457.2K lines added, -163K removed over the last year.

Commits per week

last 52 weeks
1340Week 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: 25 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: 77 commitsWeek of 2026-09-13: 71 commitsWeek of 2026-09-20: 49 commitsWeek of 2026-09-27: 69 commitsWeek of 2026-10-04: 35 commitsWeek of 2026-10-11: 56 commitsWeek of 2026-10-18: 61 commitsWeek of 2026-10-25: 33 commitsWeek of 2026-11-01: 46 commitsWeek of 2026-11-08: 16 commitsWeek of 2026-11-15: 3 commitsNov 23, 2025Nov 15, 2026
2K 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 — 1 commitsSun 8:00 — 5 commitsSun 9:00 — 2 commitsSun 10:00 — 7 commitsSun 11:00 — 13 commitsSun 12:00 — 25 commitsSun 13:00 — 9 commitsSun 14:00 — 34 commitsSun 15:00 — 22 commitsSun 16:00 — 22 commitsSun 17:00 — 11 commitsSun 18:00 — 10 commitsSun 19:00 — 15 commitsSun 20:00 — 11 commitsSun 21:00 — 16 commitsSun 22:00 — 2 commitsSun 23:00 — 7 commitsMon 0:00 — 23 commitsMon 1:00 — 17 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 — 5 commitsMon 9:00 — 17 commitsMon 10:00 — 29 commitsMon 11:00 — 14 commitsMon 12:00 — 21 commitsMon 13:00 — 9 commitsMon 14:00 — 20 commitsMon 15:00 — 20 commitsMon 16:00 — 20 commitsMon 17:00 — 12 commitsMon 18:00 — 16 commitsMon 19:00 — 13 commitsMon 20:00 — 20 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 — 10 commitsTue 4:00 — 1 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 — 15 commitsTue 21:00 — 15 commitsTue 22:00 — 11 commitsTue 23:00 — 6 commitsWed 0:00 — 12 commitsWed 1:00 — 9 commitsWed 2:00 — 2 commitsWed 3:00 — 2 commitsWed 4:00 — 10 commitsWed 5:00 — 1 commitsWed 6:00 — 12 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 — 9 commitsThu 0:00 — 17 commitsThu 1:00 — 13 commitsThu 2:00 — 8 commitsThu 3:00 — 5 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 — 24 commitsThu 12:00 — 15 commitsThu 13:00 — 13 commitsThu 14:00 — 12 commitsThu 15:00 — 22 commitsThu 16:00 — 16 commitsThu 17:00 — 22 commitsThu 18:00 — 15 commitsThu 19:00 — 8 commitsThu 20:00 — 18 commitsThu 21:00 — 14 commitsThu 22:00 — 15 commitsThu 23:00 — 9 commitsFri 0:00 — 12 commitsFri 1:00 — 9 commitsFri 2:00 — 2 commitsFri 3:00 — 2 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 — 21 commitsFri 11:00 — 26 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 — 7 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 — 16 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

    500.5K stars · Python

  • morluto/rea

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

    471.6K 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.

    307.9K stars · JavaScript

  • NousResearch/hermes-agent

    The agent that grows with you

    265K 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.

    211.6K stars · TypeScript

  • yt-dlp/yt-dlp

    A feature-rich command-line audio/video downloader

    209.4K stars · Python