Skip to content
Gemini CLI

Lex for Gemini CLI

io.github.guffawaffle/lex

Episodic memory and architectural policy for AI agents. Frames, Atlas, and Policy.

client:Gemini CLI transport:stdio runtime:npm

Install Lex 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": {
    "lex": {
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/lex-mcp"
      ],
      "env": {
        "LEX_WORKSPACE_ROOT": "<LEX_WORKSPACE_ROOT>",
        "LEX_MEMORY_DB": "<LEX_MEMORY_DB>",
        "LEX_DEBUG": "<LEX_DEBUG>"
      }
    }
  }
}

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

Lex in other clients