Skip to content
Gemini CLI

lean-memory for Gemini CLI

io.github.wuesteon/lean-memory

Embedded, local-first agent memory: one SQLite file per namespace, no server, no cloud.

client:Gemini CLI transport:stdio runtime:pypi

Install lean-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": {
    "lean-memory": {
      "command": "uvx",
      "args": [
        "lean-memory"
      ],
      "env": {
        "LM_DATA_ROOT": "<LM_DATA_ROOT>"
      }
    }
  }
}

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

lean-memory in other clients