Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>RTK Token OptimizerNew to Visual Studio Code? Get it now.
RTK Token Optimizer

RTK Token Optimizer

rtk cli proxy dash

|
2 installs
| (0) | Free
Dashboard and terminal for RTK — the CLI proxy that cuts LLM token usage by 60-90% on common dev commands.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RTK Token Optimizer

Dashboard and terminal for RTK — the CLI proxy that cuts LLM token usage by 60–90% on common dev commands, directly inside VS Code.


What is RTK?

RTK (Rust Token Killer) is a lightweight CLI proxy that intercepts commands run by AI coding assistants and rewrites them to produce far more compact output. Instead of cargo test dumping thousands of lines, rtk cargo test emits only failures and a summary.

This extension puts RTK's analytics and command runner inside your editor, so you can see your savings without leaving VS Code.


Features

⚡ Analytics Dashboard

  • Token savings cards — total tokens saved, average savings %, commands optimized
  • Interactive SVG chart — daily / weekly / monthly savings over time with hover tooltips
  • Auto-loads on open — data refreshes every time you switch to the Dashboard tab

🔍 Optimization Opportunities

  • Lists commands that ran without RTK optimization
  • Shows potential savings per command and frequency

🔗 Hook Status

  • Verifies that RTK hooks are correctly installed for your AI agent (Claude Code, Cursor, Copilot, etc.)
  • Shows rtk verify output with a clear pass/fail indicator

$ Terminal

  • Run any RTK or shell command with one click
  • Command cards show a short description of what each command does
  • Groups: Files, Git, Analytics

Sidebar shortcuts

  • Jump to any tab from the RTK activity bar icon
  • Quick commands for the most common operations

Requirements

You need RTK installed and accessible in your shell:

# Homebrew (macOS / Linux)
brew install rtk-ai/tap/rtk

# curl installer
curl -fsSL https://rtk-ai.app/install | sh

# Cargo
cargo install rtk

After installing, set up hooks for your AI agent:

rtk init          # project-scoped (auto-detects agent)
rtk init --global # user-scoped

Usage

  1. Click the ⚡ RTK icon in the Activity Bar to open the sidebar.
  2. Click Dashboard to see your token savings analytics.
  3. Use Run All in the panel header to refresh all data at once.
  4. Switch to the $ Terminal tab to run individual commands.

The extension uses your login shell ($SHELL -l -c "...") to ensure RTK is found even when VS Code is launched from the GUI.


Extension Commands

Command Description
RTK: Open Dashboard Open the main panel
RTK: Show Token Savings Open Dashboard and load gain analytics
RTK: Discover Optimization Opportunities Open the Opportunities tab

Links

  • RTK CLI
  • Extension source
  • Report an issue
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft