Skip to content
Gemini CLI

SmartTokenGuard for Gemini CLI

io.github.nwjnjjj/smart-token-guard

Stop burning credits on broken AI video: check every render before you pay for the next one.

client:Gemini CLI transport:streamable-http runtime:mcpb

Install SmartTokenGuard in Gemini CLI

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

{
  "mcpServers": {
    "smart-token-guard": {
      "httpUrl": "https://stg-agent-560636228350.asia-east1.run.app/mcp"
    }
  }
}

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

SmartTokenGuard in other clients