Models / Providers / Ollama configuration
Providers
Ollama configuration
Models Providers
Configuration
Basic (implicit discovery)
bash Copy code export OLLAMA_API_KEY="ollama-local"
Explicit (manual models)
Use explicit config for hosted cloud setup, a non-default host/port, forced
context windows, or per-model settings. Hosted https://ollama.com uses only
the listed models; a self-hosted endpoint also lists its other installed models:
json5 Copy code { models : { providers : { ollama : { baseUrl : "https://ollama.com" , apiKey : "OLLAMA_API_KEY" , api : "ollama" , models : [ { id : "kimi-k2.6:cloud" , name : "kimi-k2.6:cloud" , reasoning : false , input : ["text" , "image" ], cost : { input : 0 , output : 0 , cacheRead : 0 , cacheWrite : 0 }, contextWindow : 128000 , maxTokens : 8192 } ] } } } }
Custom base URL
The listed model keeps these settings; other models installed on that host are
still discovered:
json5 Copy code { models : { providers : { ollama : { apiKey : "ollama-local" , baseUrl : "http://ollama-host:11434" , api : "ollama" , timeoutSeconds : 300 , models : [ { id : "qwen3:32b" , name : "qwen3:32b" , params : { keep_alive : "15m" , }, }, ], }, }, }, }
For official OpenClaw support, visit our support forum.
Get support
PreviousOllama vision and image description Next Ollama config recipes