← Back to PRs

#10742: Feature/remote ollama - enable autodiscovery ollama models on hosts other than localhost

by hillct open 2026-02-06 22:42 View on GitHub →
cli commands agents stale
It became aparent that use of Ollama model autodiscovery was being hindered vy the limitation that autodiscovery only worked on localhost. I believe this to be a more robust and up-to-date implementation that should deprecate @koushikkethamakka's excellany start on this from a few days ago in PR https://github.com/openclaw/openclaw/pull/8693 This implementation adds inteligent timeouts and retries as well as adding the --discover argument to the `openclaw models list` command which effectively increases timeouts and implements retries so we don't see the silent failures we were seeing previously. The behavior absent this argument remains unchanged. More critically, this implementation cleanly addresses the partial definition of an ollama provider in `~/.openclaw/openclaw.json` such that users can define the apiHost and still retain robust model autodiscovery features **AND** support for definition of the OLLAMA_API_BASE_URL` which will in conjunction with the `OLLAMA_API_KEY` environment variable (which continues to operate as intended) causes the base URL to be configurable absent any explicit ollama provider configuration in the main config file. This directly addresses Issue https://github.com/openclaw/openclaw/issues/8663

Most Similar PRs