Skip to content
Gemini CLI

unlocalhost for Gemini CLI

io.github.info-arnav/unlocalhost

Deploy localhost to a private, authenticated link from your AI coding agent.

client:Gemini CLI transport:stdio runtime:npm

Install unlocalhost 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": {
    "unlocalhost": {
      "command": "npx",
      "args": [
        "-y",
        "@unlocalhost/unlocalhost"
      ],
      "env": {
        "UNLOCALHOST_URL": "<UNLOCALHOST_URL>",
        "UNLOCALHOST_TOKEN": "<UNLOCALHOST_TOKEN>"
      }
    }
  }
}

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

unlocalhost in other clients