#ollama cloud
1 messages · Page 1 of 1 (latest)
Yep. For Ollama Cloud only in openclaw.json, the key thing is:
- set the provider to
https://ollama.com - use
api: "ollama"(not/v1) - do not set
models.providers.ollama.modelsif you want discovery/autopopulate
Example:
{
"models": {
"providers": {
"ollama": {
"baseUrl": "https://ollama.com",
"api": "ollama"
}
}
}
}
Then set your real API key in env:
export OLLAMA_API_KEY="your-ollama-api-key"
After restart, OpenClaw should discover the hosted catalog from Ollama and the picker/list should populate via:
/model/model listopenclaw models list --provider ollama
Two gotchas:
- If you add
models.providers.ollama.models, you’re pinning a manual list instead of discovery. - If you set
agents.defaults.models, that becomes an allowlist and can hide discovered models.
If you want Ollama to be the default too, first let the catalog load, then set:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/<exact-model-id-from-/model-list>"
}
}
}
}
Docs:
If it still doesn’t populate, paste openclaw --version because this area changed recently.
So context limits are not being set correctly, and do not match what https://ollama.com/api/show , is this a bug?