Skip to content

Ollama custom provider error : agent configured model is not valid #8950

Closed

Description

@jmtemmos

Description

Any agents using ollama custom models raises a message : "agent configured model is not valid"

Then, if using it despite the warning, the following message is displayed:

ProviderModelNotFoundError: ProviderModelNotFoundError

subagents calls / tasks are not called.

The whole multi-agent system is consequently broken.

Of course, it was previously working with the same config.

Please help :)

Plugins

"mohak34/opencode-notifier@latest", "opencode-ignore", "opencode-beads", "@franlol/opencode-md-table-formatter@0.0.3", "opencode-antigravity-auth@1.2.8", "opencode-websearch-cited@1.1.1", "@tarquinen/opencode-dcp@latest"

OpenCode version

1.1.23

Steps to reproduce

  1. open opencode
  2. select with tab an agent which model is based on custom ollama

Screenshot and/or share link

No response

Operating System

manjaro linux

Terminal

kitty

Activity

  1. changed the title [-]Ollama custum provide : agent configured model is not valid[/-] [+]Ollama custom provider error : agent configured model is not valid[/+] on Jan 16, 2026
  2. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. jmtemmos commented on Jan 17, 2026

    @jmtemmos
    Author

    Yes probably related to them. It seems to be a problem with a wide range of side effects. still not working in 1.1.125

  4. jmtemmos commented on Jan 17, 2026

    @jmtemmos
    Author

    Ok. Problem solved.

    all of a sudden, since probably version 1.1.123, it appears that in agent markdown conf:

    model: ollama/gpt-oss:20b-opencode

    does not work anymore.

    Now doubles quotes are required. So replacing by

    model: "ollama/gpt-oss:20b-opencode"

    fixed the problem for me :)

    Had to do it in all agent markdown files.

    Hope it will help

  5. ezterry commented on Jan 31, 2026

    @ezterry

    Yes quotes fixed it, ideally https://opencode.ai/docs/agents/#markdown is updated to show this if this is intended

  6. rekram1-node commented on Jan 31, 2026

    @rekram1-node
    Contributor

    The quotes shouldn't be required, I think there was a frontmatter bug but it should just work fine without them on latest

  7. ezterry commented on Jan 31, 2026

    @ezterry

    ok I can confirm re built container today 1.1.48 works the one from 6 days ago did not

  8. github-actions commented on Apr 2, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions