Skip to content
Gemini CLI

safe4 for Gemini CLI

ai.safe4/safe4

Tests an AI agent's purchase against the task it was given. Paid per call in USDC via x402.

client:Gemini CLI transport:streamable-http tools:2

Install safe4 in Gemini CLI

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

{
  "mcpServers": {
    "safe4": {
      "httpUrl": "https://api.safe4.ai/mcp/"
    }
  }
}

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

What Gemini CLI can do once it is connected

safe4 in other clients