#ollama cloud

1 messages · Page 1 of 1 (latest)

wooden solstice
#

Using openclaw.json how to configure the use of ollama cloud only, and have the model list autopopulate.

pulsar epochBOT
hazy topazBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

pulsar epochBOT
lone dawnBOT
#

Yep. For Ollama Cloud only in openclaw.json, the key thing is:

  1. set the provider to https://ollama.com
  2. use api: "ollama" (not /v1)
  3. do not set models.providers.ollama.models if 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 list
  • openclaw 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>"
      }
    }
  }
wooden solstice