Skip to content

ProviderModelNotFoundError: ProviderModelNotFoundError z.ai glm-4.6 #3076

Closed

Description

@dlukt

Using Z.AI Coding Plan GLM-4.6

And a prompt similar to "use sub-agents to implement the plan", I receive this error

ProviderModelNotFoundError: ProviderModelNotFoundError

I have .config/opencode/agent/agentname.md with frontmatter of e.g.

---
description: Creates exhaustive technical references and API documentation. Generates
  comprehensive parameter listings, configuration guides, and searchable reference
  materials. Use PROACTIVELY for API docs, configuration references, or complete technical
  specifications.
mode: subagent
model: zai/glm-4.6
---

does the model need to be named differently?

Activity

  1. github-actions commented on Oct 10, 2025

    @github-actions
    Contributor

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

    The core issue appears to be that the Z.AI provider and GLM models may not be properly configured or recognized in the current version. Issue #2883 specifically mentions lack of support for z.ai GLM-4.6, which is exactly the model you're trying to use.

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

  2. rekram1-node commented on Oct 10, 2025

    @rekram1-node
    Contributor

    @dlukt

    just a tip running:

    opencode models

    will give you modelIds with correct provider prefixes

    I think in this case the correct provider id is supposed to be:

    zai-coding-plan

    instead of

    zai

    lmk if that fixes it

  3. self-assigned this
    on Oct 10, 2025
  4. dlukt commented on Oct 10, 2025

    @dlukt
    Author

    it does, tyvm :)

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