Skip to content

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

Closed
hillct wants to merge 6 commits intoopenclaw:mainfrom
hillct:feature/remoteOllama
Closed

Feature/remote ollama - enable autodiscovery ollama models on hosts other than localhost#10742
hillct wants to merge 6 commits intoopenclaw:mainfrom
hillct:feature/remoteOllama

Conversation

@hillct
Copy link

@hillct hillct commented Feb 6, 2026

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 #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_URLwhich will in conjunction with theOLLAMA_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 #8663

Colin Hill added 2 commits February 6, 2026 17:18
…ocalhost, while retaining autodiscovery capability. Addressed config file validation and ollama server timeouts with inteligant retry. Added tests for config validation. Added the option --discover to openclaw models list command to facilitate display of discoverable models where local discovery was previously failing silently due to connection timeouts. The --discover option essentially increases the timeouts, avoiding the risk of silent failure. That said, the previously existing behavior remains unchanged.
@openclaw-barnacle openclaw-barnacle bot added cli CLI command changes commands Command implementations agents Agent runtime and tooling labels Feb 6, 2026
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@mattmiddlesworth
Copy link

This might address my issues of connecting to my remote ollama host.

@hillct
Copy link
Author

hillct commented Feb 12, 2026

This might address my issues of connecting to my remote ollama host.

It looks like last night there was a commit upstream that may have prevented merges for the moment. I'll address that in the next day or so, but in the meantime, please do checkout my branch and see if it works for you. I was solving for my specific problem related to running Obama on my docker host hardware rather than within the docker container itself, which of course precluded use of localhost, but I've also tested it using instances running on separate Nvidia Dev boxes across my network which sounds more like your use case. Try it out, let me know if there are any issues you run into and let's see if we can get this thing. Merged

@mattmiddlesworth
Copy link

2026.2.14 fixed my issues with remote Ollama

@openclaw-barnacle
Copy link

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle bot added the stale Marked as stale due to inactivity label Feb 21, 2026
@hillct
Copy link
Author

hillct commented Feb 21, 2026

Merging recent upstream changes should be simple enough. I'll take a shot at it this weekend

@openclaw-barnacle openclaw-barnacle bot removed the stale Marked as stale due to inactivity label Feb 24, 2026
@vincentkoc
Copy link
Member

Superseded by #29201 for the immediate mergeable Ollama autodiscovery hardening path. Thanks for the remote-host exploration and prior work here.

@vincentkoc vincentkoc closed this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes commands Command implementations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants