Skip to content
Gemini CLI

KeepState for Gemini CLI

ai.keepstate/ks

Durable agent sessions: start, watch, message and pause KeepState agents; approvals ask a person.

client:Gemini CLI transport:stdio runtime:npm

Install KeepState in Gemini CLI

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

{
  "mcpServers": {
    "ks": {
      "command": "npx",
      "args": [
        "-y",
        "@keepstateai/cli"
      ]
    }
  }
}

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

KeepState in other clients