Skip to content
Gemini CLI

Tokenscope for Gemini CLI

io.github.wartzar-bee/tokenscope

Analyze Claude Code session cost & context attribution: output, cached re-reads, cache writes.

client:Gemini CLI transport:stdio runtime:npm

Install Tokenscope in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "tokenscope": {
      "command": "npx",
      "args": [
        "-y",
        "@wartzar-bee/tokenscope-mcp"
      ]
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

Tokenscope in other clients