KingDownloads

rtk

by rtk-ai 71.0k stars Apache-2.0Productivity
Download
rtk preview

About rtk

rtk is a command-line proxy designed to reduce token consumption when working with large language models (LLMs) during development tasks. It filters and compresses command outputs before they reach the LLM context, achieving 60-90% reduction in token usage. The tool supports over 100 common developer commands and adds less than 10ms overhead per operation.

Built as a single Rust binary with zero dependencies, rtk integrates with various AI coding tools like Claude Code, Gemini CLI, and Cursor. It works by rewriting shell commands through hooks or plugin APIs, automatically applying optimization strategies without requiring manual intervention.

The tool provides specialized handling for git operations, test runners, linters, and package managers. It supports multiple platforms including Linux, macOS, and Windows (via WSL for full functionality). Installation options include Homebrew, direct download of pre-built binaries, or compilation from source.

Key features

  • Reduces token consumption by 60-90% on common developer commands
  • Supports 100+ commands including git, test runners, and linters
  • Single Rust binary with zero dependencies
  • Adds less than 10ms overhead per operation
  • Integrates with various AI coding tools through hooks or plugin APIs
  • Provides specialized handling for git operations and test outputs
  • Available for Linux, macOS, and Windows (via WSL)

Download dev-0.44.0-rc.316

Jul 9, 2026
View all 28 versions

Frequently asked questions

Is rtk free?
Yes. rtk is free and open-source software, distributed under the Apache-2.0 license.
Which platforms does rtk support?
rtk provides downloads for Windows, macOS, Linux.
What is the latest version of rtk?
The latest version is dev-0.44.0-rc.316, released on Jul 9, 2026.
What platforms does rtk support?
rtk supports Linux, macOS, and Windows (though Windows users should use WSL for full functionality). Pre-built binaries are available for all major platforms.
How do I install rtk?
rtk can be installed via Homebrew (recommended), by running a quick install script, through Cargo, or by downloading pre-built binaries from the releases page.
What license does rtk use?
rtk is licensed under the Apache 2.0 license.
How does rtk reduce token consumption?
rtk applies four strategies: smart filtering (removes noise), grouping (aggregates similar items), truncation (keeps relevant context), and deduplication (collapses repeated lines).

More Productivity