Skip to content
Gemini CLI

ZenBrain Memory for Gemini CLI

ai.zensation/zenbrain

Seven-layer agent memory: episodic, semantic, procedural and core. Local SQLite, no account.

client:Gemini CLI transport:stdio runtime:npm

Install ZenBrain Memory 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": {
    "zenbrain": {
      "command": "npx",
      "args": [
        "-y",
        "@zensation/mcp"
      ],
      "env": {
        "ZENBRAIN_DB": "<ZENBRAIN_DB>",
        "ZENBRAIN_CONTEXTS": "<ZENBRAIN_CONTEXTS>"
      }
    }
  }
}

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

ZenBrain Memory in other clients