RTK Inspector is a VS Code extension that visualizes how much the rtk CLI is saving you, then compares those savings against your total AI CLI token usage across the tools you already use.
Install it from the Visual Studio Marketplace or Open VSX, and browse the source on GitHub.
- Track daily RTK savings trends in a sidebar chart.
- Compare RTK input, output, saved tokens, and CLI totals in one place.
- See an honest True Savings % calculation:
saved / (CLI total + RTK input). - Review per-CLI token usage alongside RTK results.
- Refresh on demand and spot when a newer rtk CLI version is available.
RTK Inspector combines RTK output with local session data from supported AI CLIs.
| Source | Data used |
|---|---|
| rtk CLI | rtk gain -d -f json |
| GitHub Copilot | ~/.copilot/session-state/*/events.jsonl |
| Gemini CLI | ~/.gemini/tmp/*/chats/session-*.json |
| Claude Code | ~/.claude/projects/**/*.jsonl |
Only days where RTK has data are included in the CLI comparison, so the numbers stay aligned.
- Install the rtk CLI.
- Make sure
rtkis available in yourPATH, or set a custom path withrtk-inspector.executablePath. - Open the RTK Inspector view from the Activity Bar.
- If you use RTK from WSL while VS Code runs on Windows, enable
rtk-inspector.useWsl.
CLI metrics appear when at least one supported tool has local session data available.
- Open RTK Inspector in the Activity Bar.
- Review the summary cards and charts in the sidebar.
- Click Refresh RTK Stats to reload RTK data and local CLI usage.
- Expand the commands list in the sidebar to inspect RTK command counts.
Use the Command Palette to access:
RTK Inspector: Refresh RTK StatsRTK Inspector: Show RTK Inspector LogsRTK Inspector: Run RTK Inspector Diagnostics
rtk-inspector.executablePath: path to the RTK executable. Defaults tortk.rtk-inspector.useWsl: runs RTK throughwsl.exe -ewhen VS Code is on Windows and RTK lives in WSL.
If the dashboard does not load as expected:
- Run
RTK Inspector: Run RTK Inspector Diagnostics. - Open
RTK Inspector: Show RTK Inspector Logs. - Verify that
rtkruns in your shell, or setrtk-inspector.executablePath. - On Windows + WSL setups, enable
rtk-inspector.useWsl.
For Gemini CLI, the extension uses message output and thought tokens from each session entry to avoid inflating totals with cumulative input counts.
- Repository: github.com/petermefrandsen/rtk-inspector
- RTK CLI: github.com/rtk-ai/rtk

