Skip to content
Gemini CLI

ghostlink for Gemini CLI

io.github.bgorzelic/ghostlink

Sandboxed repo access for coding agents: search, read, patch, run, git -- confined to a repo root.

client:Gemini CLI transport:stdio runtime:npm

Install ghostlink 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": {
    "ghostlink": {
      "command": "npx",
      "args": [
        "-y",
        "@bgorzelic/ghostlink"
      ],
      "env": {
        "GHOSTLINK_REPO_ROOT": "<GHOSTLINK_REPO_ROOT>",
        "GHOSTLINK_LOG": "<GHOSTLINK_LOG>"
      }
    }
  }
}

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

ghostlink in other clients