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
{
"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