Skip to content
Gemini CLI

tryx402 for Gemini CLI

io.github.crypto-yannso/tryx402

Budget router over x402: hard budget caps, idempotent paid calls, cost ledger, server-side pricing.

client:Gemini CLI transport:stdio runtime:pypi

Install tryx402 in Gemini CLI

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

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "tryx402": {
      "command": "uvx",
      "args": [
        "tryx402"
      ],
      "env": {
        "GATEWAY_MAX_BUDGET_USD": "<GATEWAY_MAX_BUDGET_USD>",
        "TRYX402_API_KEY": "<TRYX402_API_KEY>"
      }
    }
  }
}

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

tryx402 in other clients