Skip to content
Gemini CLI

ask ollama for Gemini CLI

io.github.lykhoyda/ask-ollama

Bridge Claude with local Ollama LLMs for private AI-to-AI collaboration — no API keys, fully local

client:Gemini CLI transport:stdio runtime:npm

Install ask ollama 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": {
    "ask-ollama": {
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/ollama-mcp"
      ],
      "env": {
        "OLLAMA_HOST": "<OLLAMA_HOST>",
        "GMCPT_TIMEOUT_MS": "<GMCPT_TIMEOUT_MS>",
        "GMCPT_LOG_LEVEL": "<GMCPT_LOG_LEVEL>"
      }
    }
  }
}

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

ask ollama in other clients