Skip to content
Gemini CLI

kdbx for Gemini CLI

io.github.yarrasys/kdbx

Read-only access to secrets in a local KeePassXC vault. Runs commands with them injected.

client:Gemini CLI transport:stdio runtime:oci

Install kdbx 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": {
    "kdbx": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/yarrasys/kdbx:0.3.1"
      ],
      "env": {
        "KEEPASSXC_DIR": "<KEEPASSXC_DIR>",
        "KDBX_ENV": "<KDBX_ENV>"
      }
    }
  }
}

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

kdbx in other clients