# RTK (Rust CLI proxy that compresses shell output before an AI agent reads it)

> Updated 2026-11-21 · type: tool · category: ai-infrastructure · status: active · rev 1

RTK sits between a coding agent and the shell, collapsing git, grep and test-runner output to the lines that matter before they enter the model's context.

- Open source: yes (Apache-2.0 core + BUSL-1.1 engine)
- Self-hostable: yes
- Pricing: Free for production use. Default binary includes the BUSL-1.1 engine (no reselling as a service; converts to Apache-2.0 on 2030-09-09); Apache-only rtk-oss build available. RTK Pro is paid.
- Best for: Developers and ops builders whose agents run many shell commands and burn context on long git, grep and test output.
- Not for: Anyone who needs a pure OSI license in the default build or plans to resell it as a hosted service; use rtk-oss or check BUSL-1.1 terms first.
- Version: 1.2.1
- Last verified: 2026-11-21

- **Canonical:** https://gtmstacker.com/registry/tool/rtk/
- **Source:** [Nuts, token-cost team in 10 repos (Claude Code token-cutting repos list)](https://x.com/ridark_eth/status/2118345368207249489) — ridark_eth
- **Tags:** token-reduction, cli, coding-agents, shell-output, rust, context-compression, busl
- **Repository:** https://github.com/rtk-ai/rtk
- **Version:** 1.2.1

## Is RTK (Rust CLI proxy that compresses shell output before an AI agent reads it) open source?

Yes, RTK (Rust CLI proxy that compresses shell output before an AI agent reads it) is open source under the Apache-2.0 core + BUSL-1.1 engine license.

## How much does RTK (Rust CLI proxy that compresses shell output before an AI agent reads it) cost?

Free for production use. Default binary includes the BUSL-1.1 engine (no reselling as a service; converts to Apache-2.0 on 2030-09-09); Apache-only rtk-oss build available. RTK Pro is paid. (freemium).

## Can I self-host RTK (Rust CLI proxy that compresses shell output before an AI agent reads it)?

Yes, RTK (Rust CLI proxy that compresses shell output before an AI agent reads it) can be self-hosted (the source is available under the Apache-2.0 core + BUSL-1.1 engine license).

## Alternatives & related

- [Headroom (context-compression layer for AI agents)](https://gtmstacker.com/registry/tool/headroom/)


---

**RTK** (`rtk-ai/rtk`) is a single Rust binary that intercepts shell commands an AI agent runs and compresses their output before it reaches the model. Directory listings become trees with counts, `git log` keeps hash, author and subject, test runners show failures only, and linters group findings by rule and file. It supports 100+ commands with under 10 ms overhead (vendor figure).

**License, read carefully:** the repository root is Apache-2.0, but `engine/` and `proxy/` are **BUSL-1.1** (Change Date 2030-09-09, after which they become Apache-2.0). The default `rtk` download bundles the engine; a pure Apache-2.0 `rtk-oss` edition ships without it; the RTK Proxy daemon is a separate BUSL-1.1 binary that neither build includes. Production use is free; offering it as a resold service is not. RTK Pro is the paid tier.

## Provenance

- License: Apache-2.0 root per GitHub API; **BUSL-1.1** for `engine/` and `proxy/` per README and `engine/LICENSE`. The source list post's BUSL caveat is confirmed.
- Activity as of 2026-11-21 (GitHub API): **87,368 stars, 5,613 forks**, last push 2026-11-21; latest stable release v1.2.1 (2026-11-19), with daily pre-releases.
- **Vendor claims:** "60-90%" token reduction and "up to 90% smaller" output. The README notes these measure bash output only and that token counts are `bytes / 4` estimates.
- Curated and verified in run `2026-11-05-registry-update-01` (step-3 verification, 2026-11-05); held, then re-verified and published 2026-11-21 (README editions table and engine/proxy LICENSE files re-read).

## Why it matters for a GTM stack

Agents that build and test ops scripts spend much of their context reading command output. RTK trims that output at the shell. Pick the `rtk-oss` build if your policy requires an OSI license.
