Skip to content
Gemini CLI

ctx-profiler for Gemini CLI

io.github.cuhawk/ctx-profiler

MECE token waste profiler and compaction simulator for Claude Code, Codex, Cline & OpenClaw logs.

client:Gemini CLI transport:stdio runtime:pypi

Install ctx-profiler in Gemini CLI

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

{
  "mcpServers": {
    "ctx-profiler": {
      "command": "uvx",
      "args": [
        "ctx-profiler"
      ]
    }
  }
}

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

ctx-profiler in other clients