rtk

(β˜… 76,925)

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

  • .gitattributes
  • .gitignore
  • .release-please-manifest.json
  • .semgrep.yml
  • build.rs
  • Cargo.lock
  • Cargo.toml
  • CHANGELOG.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • DISCLAIMER.md
  • INSTALL.md
  • install.sh
  • LICENSE
  • README.md
  • README_es.md
  • README_fr.md
  • README_ja.md
  • README_ko.md
  • README_pt.md
  • README_zh.md
  • release-please-config.json
  • SECURITY.md

# Installation Guide

1. Get the code
git clone https://github.com/rtk-ai/rtk

Downloads the entire project code from GitHub to your computer.

cd rtk

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
brew install rtk

Installs the pre-built package via Homebrew β€” no source build required.

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

Downloads and runs the official install script in one line β€” this handles the full setup automatically.

cargo install --git https://github.com/rtk-ai/rtk

Builds and installs the package published on crates.io β€” no need to clone the repo yourself.

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Node.js

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
rtk pnpm list # Compact dependency tree

Type this command into your terminal and run it.

βœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

4. Rust

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Rust (rustup) Installing via rustup also installs cargo.
cargo install --git https://github.com/rtk-ai/rtk

Builds and installs the package published on crates.io β€” no need to clone the repo yourself.

rtk cargo test # Cargo tests (-90%)

Type this command into your terminal and run it.

rtk cargo build # Cargo build (-80%)

Compiles the Rust project.

rtk cargo clippy # Cargo clippy (-80%)

Type this command into your terminal and run it.

+-- Cargo.toml

Type this command into your terminal and run it.

βœ… If cargo build finishes without errors, it worked. The executable is created under target/.

Pulled directly from this repo's README.

// repository documentation