Skip to content
Gemini CLI

torproxy for Gemini CLI

io.github.hapheus/torproxy

Tor HTTP and SOCKS5 proxy with REST API and built-in MCP server.

client:Gemini CLI transport:stdio runtime:oci

Install torproxy 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": {
    "torproxy": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hapheus/torproxy:2.7.7"
      ],
      "env": {
        "TORPROXY_API_TOKEN": "<TORPROXY_API_TOKEN>"
      }
    }
  }
}

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

torproxy in other clients