aman@LAPTOP-TDGHKO2M:~$ curl "http://172.29.32.1:11434/v1/models"
{"object":"list","data":[{"id":"qwen2.5-coder:7b","object":"model","created":1771055941,"owned_by":"library"},{"id":"llama3.2:3b","object":"model","created":1771039929,"owned_by":"library"}]}
aman@LAPTOP-TDGHKO2M:~$ openclaw config set models.providers.ollama --json '{
baseUrl: "http://172.29.32.1:11434/v1",
apiKey: "ollama-local",
api: "openai-completions",
models: [{
id: "qwen2.5-coder:7b",
name: "qwen2.5-coder:7b",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 8192,
maxTokens: 8192
}]
}'
Failed to discover Ollama models: TypeError: fetch failed
Config overwrite: /home/aman/.openclaw/openclaw.json (sha256 1c1d103fd046f6a78a05800b1aea3ed30a777a144f7789f7d1137e03e6d55993 -> 918602712d148227a55cade97f0ce02621c9feaaef188767d31d41cf5340151d, backup=/home/aman/.openclaw/openclaw.json.bak)
Updated models.providers.ollama. Restart the gateway to apply.
aman@LAPTOP-TDGHKO2M:~$ openclaw config set agents.defaults.model.primary "ollama/qwen2.5-coder:7b"
openclaw gateway restart
openclaw models list | head -50
🦞 OpenClaw 2026.2.14 (c1feda1) — I don't judge, but your missing API keys are absolutely judging you.
Config overwrite: /home/aman/.openclaw/openclaw.json (sha256 918602712d148227a55cade97f0ce02621c9feaaef188767d31d41cf5340151d -> 3a4ee32c87f40798b5c00a5bde093da93f1c831a796b9fac8b8f2095d445fa7f, backup=/home/aman/.openclaw/openclaw.json.bak)
Updated agents.defaults.model.primary. Restart the gateway to apply.
🦞 OpenClaw 2026.2.14 (c1feda1) — Ship fast, log faster.
Restarted systemd service: openclaw-gateway.service
Model Input Ctx Local Auth Tags
ollama/qwen2.5-coder:7b text 8k no yes default
anthropic/providers - - - - configured,missing
aman@LAPTOP-TDGHKO2M:~$