> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/rtk-ai/rtk/llms.txt
> Use this file to discover all available pages before exploring further.

# RTK - Rust Token Killer

> Reduce LLM token consumption by 60-90% on common dev commands with intelligent output filtering

# RTK - Rust Token Killer

High-performance CLI proxy that reduces LLM token consumption by 60-90% on common dev commands through intelligent output filtering. Save tokens, save money, work faster.

[Get Started →](/quickstart)

[View on GitHub](https://github.com/rtk-ai/rtk)

## Token Savings in Action

RTK achieves 60-90% token reduction on common development operations:

> **Git Operations**
>
> **80-92% savings**
>
> Compact git status, logs, diffs, and commits

> **Test Output**
>
> **90% savings**
>
> Show only failures, hide verbose test output

> **Linting**
>
> **80-85% savings**
>
> Grouped errors, summary stats only

## Key Features

> **[Zero Overhead](/concepts/how-it-works)**
>
> Less than 10ms startup time. Single Rust binary with no dependencies.

> **[Smart Filtering](/concepts/filtering-strategies)**
>
> Four strategies: filtering, grouping, truncation, and deduplication.

> **[Claude Code Integration](/integration/claude-code)**
>
> Auto-rewrite hooks for 100% transparent command interception.

> **[Multi-Language Support](/commands/overview)**
>
> JavaScript, Python, Go, Rust - with specialized handlers for each ecosystem.

> **[Token Analytics](/analytics/gain-command)**
>
> Track savings over time with built-in SQLite analytics.

> **[Cross-Platform](/installation)**
>
> Works on macOS, Linux, and Windows with native binaries.

## Quick Example

See the difference RTK makes:

```bash Without RTK (200+ lines) theme={null}
$ git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   src/main.rs
        modified:   src/utils.rs
        modified:   Cargo.toml

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        new-feature.rs

no changes added to commit (use "git add" and/or "git commit -a")
```

```bash With RTK (1 line) theme={null}
$ rtk git status
3 modified, 1 untracked ✓
```

**Token savings: 80%**

## Get Started in Minutes

**1. Install RTK**

Choose your preferred installation method:

```bash Homebrew theme={null}
brew install rtk
```

```bash Quick Install theme={null}
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
```

```bash Cargo theme={null}
cargo install --git https://github.com/rtk-ai/rtk
```

**2. Verify Installation**

Check that RTK is installed correctly:

```bash theme={null}
rtk --version
rtk gain
```

The `rtk gain` command should show token savings stats (not "command not found").

**3. Set Up Claude Code Integration**

Initialize RTK for automatic command rewriting:

```bash theme={null}
rtk init --global
```

This installs a hook that automatically rewrites commands like `git status` to `rtk git status`.

**4. Start Saving Tokens**

Use RTK with any supported command:

```bash theme={null}
rtk git status
rtk test cargo test
rtk lint
rtk gh pr list
```

## Popular Commands

> **[File Operations](/commands/file-operations)**
>
> `rtk ls`, `rtk read`, `rtk grep`, `rtk find`

> **[Git Commands](/commands/git)**
>
> `rtk git status`, `rtk git log`, `rtk git diff`

> **[Testing](/commands/testing)**
>
> `rtk test`, `rtk cargo test`, `rtk vitest`, `rtk pytest`

> **[Linting](/commands/javascript)**
>
> `rtk lint`, `rtk tsc`, `rtk ruff`, `rtk golangci-lint`

## Community

> **[GitHub](https://github.com/rtk-ai/rtk)**
>
> Star the repo, report issues, contribute code

> **[Documentation](/introduction)**
>
> Complete guides, API reference, and examples


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.