rtk logo

rtk

rtk-ai/rtk

CLI proxy reducing LLM token consumption by 60-90% on common dev commands

GraphCanon updated 2d · GitHub synced 2d · 31 views this month

76k stars4.8k forksLast push 4d Rust Apache-2.0

Decision brief

rtk is a Rust-based CLI tool aimed at reducing LLM token consumption for common development commands.

Good fit when

  • - Use rtk when you want to significantly reduce the tokens consumed by your language models during typical dev tasks, potentially lowering costs by up to 90%.
  • - If you are working with multiple open-source projects and aim to enhance financial efficiency, rtk can help reduce LLM service fees due to its token optimization capabilities.

Avoid when

  • - Avoid using rtk if your workflow requires extensive command customization that would conflict with the tool’s predefined optimizations.
  • - Do not use rtk for development tasks outside of common dev commands where significant token reductions might not impact efficiency or costs as much. For more specialized or unique commands, other L1
Pricing:
freemium - rtk is available under the Apache-2.0 license and is free for use in open-source projects.

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (1d since push)
As of 2d
Provenance
Not a fork · Organization account
As of 2d
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

cargo add rtk
crates.io

How it fits your stack(22)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Integrates

Related

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

rtk provides a Rust-based CLI tool designed to minimize the use of language model tokens when executing typical developer commands, resulting in significant cost savings.

Capability facts

Languages
rust

Source: github.language · Aug 16, 2026

Categories

Graph entities

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Works with CursorCursor

Source: README excerpt (regex_v1, Aug 16, 2026)

rtk init -g --agent cursor # Cursor
Source link
Works with WindsurfWindsurf

Source: README excerpt (regex_v1, Aug 16, 2026)

rtk init -g --agent windsurf # Windsurf
Source link

Tags

README

Quick Install (Linux/macOS)

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

Installs to ~/.local/bin. Add to PATH if needed:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc  # or ~/.zshrc

Verify Installation

rtk --version   # Should show "rtk 0.28.2"
rtk gain        # Should show the savings dashboard

Name collision warning: Another project named "rtk" (Rust Type Kit) exists on crates.io. If rtk gain fails, you have the wrong package. Use cargo install --git above instead.


1. Install for your AI tool

rtk init -g # Claude Code / Copilot (default) rtk init -g --gemini # Gemini CLI rtk init -g --codex # Codex (OpenAI) rtk init -g --agent cursor # Cursor rtk init -g --agent windsurf # Windsurf rtk init --agent cline # Cline / Roo Code rtk init --agent kilocode # Kilo Code rtk init --agent antigravity # Google Antigravity rtk init --agent kimi # Kimi AI rtk init -g --agent pi # Pi rtk init --agent hermes # Hermes rtk init -g --agent droid # Factory Droid


Infrastructure as Code

rtk pulumi preview              # Strip header/URL/duration noise
rtk pulumi up                   # Compact apply output
rtk pulumi destroy              # Compact destroy output
rtk pulumi refresh              # Drift summary
rtk pulumi stack                # Stack metadata (strips owner/timestamps)

License

Apache License 2.0 - see LICENSE for details.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.