Skip to content

Missing providers #10039

Closed
Closed

Description

@polyrand

Description

When I run opencode with --model=zai-coding-plan/glm-4.7. I get this message:

Image

And if I try to /connect again, it doesn't even find the provider:

Image

Plugins

No response

OpenCode version

1.1.31

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Ghostty

Activity

  1. polyrand commented on Jan 22, 2026

    @polyrand
    Author

    The model has the same identifier in models.dev:

    curl -Ss https://models.dev/api.json | jq '."zai-coding-plan".models."glm-4.7"'

    Output:

    {
      "id": "glm-4.7",
      "name": "GLM-4.7",
      "family": "glm",
      "attachment": false,
      "reasoning": true,
      "tool_call": true,
      "interleaved": {
        "field": "reasoning_content"
      },
      "temperature": true,
      "knowledge": "2025-04",
      "release_date": "2025-12-22",
      "last_updated": "2025-12-22",
      "modalities": {
        "input": [
          "text"
        ],
        "output": [
          "text"
        ]
      },
      "open_weights": true,
      "cost": {
        "input": 0,
        "output": 0,
        "cache_read": 0,
        "cache_write": 0
      },
      "limit": {
        "context": 204800,
        "output": 131072
      }
    }
  2. cravenceiling commented on Jan 22, 2026

    @cravenceiling
    Contributor

    Do you have the ZHIPU_API_KEY env var set? It's required for that provider/model.

  3. polyrand commented on Jan 22, 2026

    @polyrand
    Author

    No, but I didn't have to do that before. Their docs still mention z.ai as first-class supported model. I already ran the /connect command and it was working as expected until now

    https://opencode.ai/docs/providers/#zai

    But I still tried setting it and it doesn't work either.

    I also tried --model=zai/glm-4.7, but the result is the same (doesn't work)

  4. rekram1-node commented on Jan 22, 2026

    @rekram1-node
    Contributor

    @polyrand can you show me output of:

    opencode auth list

    opencode models

  5. polyrand commented on Jan 22, 2026

    @polyrand
    Author
    > opencode auth list
    
    ┌  Credentials ~/.local/share/opencode/auth.json
    │
    ●  Z.AI api
    │
    ●  Z.AI Coding Plan api
    │
    ●  GitHub Copilot oauth
    │
    └  3 credentials
    
    > opencode models
    github-copilot/claude-haiku-4.5
    github-copilot/claude-opus-4.5
    github-copilot/claude-opus-41
    github-copilot/claude-sonnet-4
    github-copilot/claude-sonnet-4.5
    github-copilot/gemini-2.5-pro
    github-copilot/gemini-3-flash-preview
    github-copilot/gemini-3-pro-preview
    github-copilot/gpt-4.1
    github-copilot/gpt-4o
    github-copilot/gpt-5
    github-copilot/gpt-5-mini
    github-copilot/gpt-5.1
    github-copilot/gpt-5.1-codex
    github-copilot/gpt-5.1-codex-max
    github-copilot/gpt-5.1-codex-mini
    github-copilot/gpt-5.2
    github-copilot/gpt-5.2-codex
    github-copilot/grok-code-fast-1
    

    I do have github-copilot integration setup too, and it's falling back to those when trying to use --model=zai-coding-plan/glm-4.7

    I checked the keys at ~/.local/share/opencode/auth.json and they are the expected ones.

    I also tried a cache refresh, but I still get the same models list:

    > opencode models --refresh
    Models cache refreshed
    github-copilot/claude-haiku-4.5
    github-copilot/claude-opus-4.5
    github-copilot/claude-opus-41
    github-copilot/claude-sonnet-4
    github-copilot/claude-sonnet-4.5
    github-copilot/gemini-2.5-pro
    github-copilot/gemini-3-flash-preview
    github-copilot/gemini-3-pro-preview
    github-copilot/gpt-4.1
    github-copilot/gpt-4o
    github-copilot/gpt-5
    github-copilot/gpt-5-mini
    github-copilot/gpt-5.1
    github-copilot/gpt-5.1-codex
    github-copilot/gpt-5.1-codex-max
    github-copilot/gpt-5.1-codex-mini
    github-copilot/gpt-5.2
    github-copilot/gpt-5.2-codex
    github-copilot/grok-code-fast-1
  6. polyrand commented on Jan 25, 2026

    @polyrand
    Author

    I tried deleting ~/.cache/opencode/models.json, and also deleting ~/.cache/opencode completely. But the issue persists. I have also upgraded to v1.1.35.

  7. polyrand commented on Jan 29, 2026

    @polyrand
    Author

    Ok, I managed to resolve the issue.

    It was 100% an error on my side. I had made a typo on enabled_providers in the config. I'll close the issue now, I apologize for taking people's time with this.

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

Metadata

Metadata

Assignees

No one assigned

    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