You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not clear how to set up Ollama with a custom base URL globally. Readme.md currently has an example of opencode.json file in the project directory.
Thanks.
no there isn't - sorry this is a bit confusing right now but we're figuring out how to simplify ~/.config/opencode/config is for general settings with the tui - not much going on there
i vibecoded a patch that adds ollama to the selectable models and providers if the OLLAMA_HOST env is set when calling /models but i always get 400 error. is ollama support already working in master?
Same. Also, not to be too obtuse, but, could we get more clarity on the differences (if such differences exist) between npm vs brew install/config? For example, do we still reference "npm": "@ai-sdk/openai-compatible", when going the homebrew route? I definitely feel like I'm missing something.
Activity
thdxr commentedon Jun 18, 2025
the openrouter example shows you how you can set
[options]- does that make sense? we might lift baseURL to a top level propertycheuk-cheng commentedon Jun 18, 2025
Thanks. Are there any relationships between ~/.config/opencode/config and provider.toml? Do I need to update both files for Ollama?
thdxr commentedon Jun 18, 2025
no there isn't - sorry this is a bit confusing right now but we're figuring out how to simplify
~/.config/opencode/configis for general settings with the tui - not much going on theretrufae commentedon Jun 25, 2025
i vibecoded a patch that adds ollama to the selectable models and providers if the OLLAMA_HOST env is set when calling /models but i always get 400 error. is ollama support already working in master?
thdxr commentedon Jun 26, 2025
i did have ollama working at one point - not sure if i broke something
humblecoder commentedon Jun 27, 2025
Same. Also, not to be too obtuse, but, could we get more clarity on the differences (if such differences exist) between
npmvsbrewinstall/config? For example, do we still reference"npm": "@ai-sdk/openai-compatible",when going the homebrew route? I definitely feel like I'm missing something.rekram1-node commentedon Sep 25, 2025
Can we close since we have docs for this now? https://opencode.ai/docs/providers/#ollama
trufae commentedon Sep 26, 2025
Yes. I think this can be closed now. Also ollama fixed tool calling support too
fix(sessions): make session hooks actually persist and load context (a…
fix(session-end): always update session summary content (anomalyco#317)
Merge pull request anomalyco#187 from different-ai/feat/auto-update-w…