Skip to content

[codex] Add remote Ollama service support - #1

Merged
Yan-ShiBo merged 1 commit into
mainfrom
codex/remote-ollama-service
Jun 27, 2026
Merged

[codex] Add remote Ollama service support#1
Yan-ShiBo merged 1 commit into
mainfrom
codex/remote-ollama-service

Conversation

@Yan-ShiBo

Copy link
Copy Markdown
Owner

Summary

Add support for choosing Ollama models from either the local machine or a LAN server reached through an SSH tunnel.

Changes

  • Add remote Ollama source parsing and routing in the server, including source-aware model selection, health output, keepalive, and unload behavior.
  • Add a tray Remote Service dialog for server name, IP, SSH port, username, password, Ollama host, and Ollama port.
  • Run the remote service dialog on a background thread so its text fields stay clickable.
  • Make tray quit force-exit after cleanup so the background app does not get stuck when exiting.
  • Populate the web model selector with local and remote model options from the server health response.
  • Add Paramiko as the SSH dependency and include it in setup verification.
  • Document LAN remote Ollama setup in README and Chinese instructions.
  • Add focused Python and userscript tests for remote source routing and UI model option merging.

Validation

  • python -m pytest -q -> 161 passed, 15 subtests passed
  • node --test tests/userscript-core.test.cjs -> 23 passed

Notes

tray_settings.json is intentionally not included because it can contain local server credentials.

@Yan-ShiBo
Yan-ShiBo marked this pull request as ready for review June 27, 2026 11:10
@Yan-ShiBo
Yan-ShiBo merged commit f43ab9b into main Jun 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant