Claude Code model router

Rtk

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

85,448 stars 5,473 forksModel routers & proxies Source

Install

Install
brew install rtk                                              # macOS / Linux

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/rtk-ai/rtk.git

From the README

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).

  Website •
  Install •
  Troubleshooting •
  Architecture •
  Discord

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

rtk filters and compresses command outputs before they reach your LLM context. Single Rust binary, 100+ supported commands,  Full explanation: How RTK Savings Work
Installation

Then check you have the right package — another project named "rtk" exists on crates.io:
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.

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 contact@rtk-ai.app.
What the Apache-2.0 edition omits and where the licence boundary falls: Editions and Licensing

Quick Start

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

Four strategies applied per command type:

1. Smart Filtering - Removes noise (comments, whitespace,…
Read the full README on GitHub

Details

Repository
rtk-ai/rtk
Language
Rust
License
Apache-2.0
Last updated
3 November 2026
Topics
agentic-codingai-codinganthropicclaude-codeclicommand-line-toolcost-reductiondeveloper-toolsllmopen-sourceproductivityrust

FAQ

What is Rtk?

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies It is a model router for Claude Code, from rtk-ai/rtk on GitHub.

How do I install Rtk?

Run brew install rtk # macOS / Linux, then follow the setup in the README.

Is Rtk popular?

rtk-ai/rtk has 85,448 GitHub stars and 5,473 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.