Missing providers #7208

Closed
opened 2026-02-16 18:06:27 -05:00 by yindo · 7 comments
Owner

Originally created by @polyrand on GitHub (Jan 22, 2026).

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

Originally created by @polyrand on GitHub (Jan 22, 2026). ### Description When I run `opencode` with `--model=zai-coding-plan/glm-4.7`. I get this message: <img width="399" height="92" alt="Image" src="https://github.com/user-attachments/assets/b296524f-6ccc-4188-b1ac-36f1ea6661cb" /> And if I try to `/connect` again, it doesn't even find the provider: <img width="486" height="163" alt="Image" src="https://github.com/user-attachments/assets/8b9e5a5e-e8fc-4309-8f7d-6929bdc673b7" /> ### 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
yindo added the bug label 2026-02-16 18:06:27 -05:00
yindo closed this issue 2026-02-16 18:06:27 -05:00
Author
Owner

@polyrand commented on GitHub (Jan 22, 2026):

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
  }
}
@polyrand commented on GitHub (Jan 22, 2026): The model has the same identifier in models.dev: ```sh curl -Ss https://models.dev/api.json | jq '."zai-coding-plan".models."glm-4.7"' ``` Output: ```json { "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 } } ```
Author
Owner

@cravenceiling commented on GitHub (Jan 22, 2026):

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

@cravenceiling commented on GitHub (Jan 22, 2026): Do you have the `ZHIPU_API_KEY` env var set? It's required for that provider/model.
Author
Owner

@polyrand commented on GitHub (Jan 22, 2026):

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)

@polyrand commented on GitHub (Jan 22, 2026): 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)
Author
Owner

@rekram1-node commented on GitHub (Jan 22, 2026):

@polyrand can you show me output of:

opencode auth list

opencode models

@rekram1-node commented on GitHub (Jan 22, 2026): @polyrand can you show me output of: `opencode auth list` `opencode models`
Author
Owner

@polyrand commented on GitHub (Jan 22, 2026):

> 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
@polyrand commented on GitHub (Jan 22, 2026): ```sh > opencode auth list ┌ Credentials ~/.local/share/opencode/auth.json │ ● Z.AI api │ ● Z.AI Coding Plan api │ ● GitHub Copilot oauth │ └ 3 credentials ``` ```sh > 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: ```sh > 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 ```
Author
Owner

@polyrand commented on GitHub (Jan 25, 2026):

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.

@polyrand commented on GitHub (Jan 25, 2026): 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`.
Author
Owner

@polyrand commented on GitHub (Jan 29, 2026):

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.

@polyrand commented on GitHub (Jan 29, 2026): 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7208