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