I am attempting to connect Openclaw to Llama using Ollama. I asked Openclaw to summarize what we were facing. Please let me know if there is something we need to do that we did not do. Openclaw claims this is a bug so posting here first before filing a bug report:
• OpenClaw 2026.4.15
• macOS, Apple M4 Mac Mini, 24GB RAM
• Ollama running locally, llama3.1:8b pulled and loaded (confirmed via /api/ps)
• Config: baseUrl: http://127.0.0.1:11434, api: ollama (native API, not openai-completions)
Steps to reproduce:
- Start gateway, switch model to ollama/llama3.1:8b
- Send "hello" via TUI or Signal
- Typing indicator appears briefly (Signal) or spinner starts (TUI)
- No response ever arrives — hangs indefinitely (tested up to 7+ minutes)
- Ollama shows model loaded in memory (/api/ps) but no active generation
- Gateway logs show no Llama request — the request never reaches Ollama
- Second message gets no typing indicator at all — gateway is unresponsive
- Only fix is openclaw gateway restart
Also observed:
• Before switching to native API (api: ollama), config was incorrectly set to api: openai-completions with /v1 URL — this caused raw tool JSON to be output as plain text on first response, then same hang behavior on second message
Expected: Response to "hello" within reasonable timeActual: Gateway hangs, requires restart to recover
Please let me know your thoughts! Thanks!