Skip to content
Gemini CLI

memory for Gemini CLI

com.cortex-mem/memory

Shared, persistent memory for AI agents — works with Claude, Kiro, Cursor, or any MCP client.

client:Gemini CLI transport:stdio runtime:npm

Install memory in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "cortex-memory-mcp"
      ]
    }
  }
}

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

memory in other clients