Skip to content

[Request] Add Ollama setup info in Readme.md #187

Closed

Description

@cheuk-cheng

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.

Activity

  1. self-assigned this
    on Jun 18, 2025
  2. thdxr commented on Jun 18, 2025

    @thdxr
    Member

    the openrouter example shows you how you can set [options] - does that make sense? we might lift baseURL to a top level property

  3. cheuk-cheng commented on Jun 18, 2025

    @cheuk-cheng
    Author

    Thanks. Are there any relationships between ~/.config/opencode/config and provider.toml? Do I need to update both files for Ollama?

  4. thdxr commented on Jun 18, 2025

    @thdxr
    Member

    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

  5. trufae commented on Jun 25, 2025

    @trufae
    Contributor

    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?

  6. thdxr commented on Jun 26, 2025

    @thdxr
    Member

    i did have ollama working at one point - not sure if i broke something

  7. humblecoder commented on Jun 27, 2025

    @humblecoder

    but i always get 400 error

    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.

  8. rekram1-node commented on Sep 25, 2025

    @rekram1-node
    Collaborator
  9. trufae commented on Sep 26, 2025

    @trufae
    Contributor

    Yes. I think this can be closed now. Also ollama fixed tool calling support too

  10. added a commit that references this issue on May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions