Skip to content
Gemini CLI

smartpolicy for Gemini CLI

io.github.smartpolicy-protocol/smartpolicy

Runtime authorization for AI agents and smart contracts via an immutable on-chain policy registry

client:Gemini CLI transport:stdio runtime:npm

Install smartpolicy 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": {
    "smartpolicy": {
      "command": "npx",
      "args": [
        "-y",
        "@smartpolicy/mcp"
      ],
      "env": {
        "SMARTPOLICY_REGISTRY": "<SMARTPOLICY_REGISTRY>",
        "SMARTPOLICY_VERIFIER": "<SMARTPOLICY_VERIFIER>",
        "SMARTPOLICY_RPC_URL": "<SMARTPOLICY_RPC_URL>",
        "SMARTPOLICY_ISSUER_KEY": "<SMARTPOLICY_ISSUER_KEY>"
      }
    }
  }
}

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

smartpolicy in other clients