rtk-gain

rtk-gain is a Claude Code mod by rtk-ai that rTK's token savings, live in Claude Code: animated bars for command savings and the context breakdown, with rtk proxy support.

Updated 2026-10-09

What is rtk-gain?

rtk-gain is a Claude Code mod by rtk-ai that rTK's token savings, live in Claude Code: animated bars for command savings and the context breakdown, with rtk proxy support. It is listed under Cost & usage and has 7 GitHub stars.

TypeClaude code mod
Authorrtk-ai
Repositoryrtk-ai/rtk-gain-mod
Popularity7 GitHub stars
CategoryCost & usage
SecurityReview before installing (76/100)
Rank#1,172 of 9,397 Claude Code mods; #189 in Cost & usage
LicenseApache-2.0
Last commit2026-10-09
Hooks7 events
SeesBash calls
Draws onPane, AbovePrompt, Spinner

Is rtk-gain safe to install?

rtk-gain scores 76/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.process.runruns processes
$.session.surfaces
$.session.usage
$.settings.readreads settings
$.ui.closedraws interface
$.ui.invalidatedraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface

How do I install rtk-gain?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/rtk-ai/rtk-gain-mod
    claude plugin validate ./rtk-gain-mod/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add rtk-ai/rtk-gain-mod && claude plugin install rtk-gain@rtk

Or ask Claude to set it up

Paste this into Claude Code and it installs rtk-gain for you:

Install the "rtk-gain" Claude Code mod from https://github.com/rtk-ai/rtk-gain-mod. Run claude plugin validate on it first and show me what it can access before you enable it.