GLM 5 just came out, it's available in the z.ai coding plan. How do I use it if OpenCode is not aware of this model? #9091

Closed
opened 2026-02-16 18:11:37 -05:00 by yindo · 19 comments
Owner

Originally created by @sergiotapia on GitHub (Feb 11, 2026).

Originally assigned to: @fwang on GitHub.

Question

Sorry for such a basic question, if someone could please help!

The model is available now, but since opencode isn't aware of it I'm stuck waiting for an opencode update. Is there a way to have opencode use GLM-5?

Originally created by @sergiotapia on GitHub (Feb 11, 2026). Originally assigned to: @fwang on GitHub. ### Question Sorry for such a basic question, if someone could please help! The model is available now, but since opencode isn't aware of it I'm stuck waiting for an opencode update. Is there a way to have opencode use GLM-5?
yindo added the zen label 2026-02-16 18:11:37 -05:00
yindo closed this issue 2026-02-16 18:11:37 -05:00
Author
Owner

@R44VC0RP commented on GitHub (Feb 11, 2026):

In opencode we source our models via models.dev (https://github.com/anomalyco/models.dev). So if you want to access it via the z.ai coding plan under models.dev then it will be available via OpenCode.

We will add it to OpenCode Zen when a good provider comes up.

@R44VC0RP commented on GitHub (Feb 11, 2026): In opencode we source our models via models.dev (https://github.com/anomalyco/models.dev). So if you want to access it via the z.ai coding plan under models.dev then it will be available via OpenCode. We will add it to OpenCode Zen when a good provider comes up.
Author
Owner

@sergiotapia commented on GitHub (Feb 11, 2026):

So once this is merged, it will show up on opencode because it pulls from that repo automatically? https://github.com/anomalyco/models.dev/pull/855

@sergiotapia commented on GitHub (Feb 11, 2026): So once this is merged, it will show up on opencode because it pulls from that repo automatically? https://github.com/anomalyco/models.dev/pull/855
Author
Owner

@redzrush101 commented on GitHub (Feb 11, 2026):

theyre already a pull request wait till it gets merged then run opencode models --refresh

@redzrush101 commented on GitHub (Feb 11, 2026): theyre already a pull request wait till it gets merged then run opencode models --refresh
Author
Owner

@sergiotapia commented on GitHub (Feb 11, 2026):

Thank you, this is quite exciting. The best agent harness + GLM 5! WOOO 🏄

@sergiotapia commented on GitHub (Feb 11, 2026): Thank you, this is quite exciting. The best agent harness + GLM 5! WOOO 🏄
Author
Owner

@hrdkbhatnagar commented on GitHub (Feb 11, 2026):

is there an ETA on when this GLM5 could be added to Zen?

@hrdkbhatnagar commented on GitHub (Feb 11, 2026): is there an ETA on when this GLM5 could be added to Zen?
Author
Owner

@hutaoshusband commented on GitHub (Feb 11, 2026):

Same here! hyped guys

@hutaoshusband commented on GitHub (Feb 11, 2026): Same here! hyped guys
Author
Owner

@esafak commented on GitHub (Feb 11, 2026):

Should not take more than a day or two.

It's done.

@esafak commented on GitHub (Feb 11, 2026): ~~Should not take more than a day or two~~. It's done.
Author
Owner

@sergiotapia commented on GitHub (Feb 11, 2026):

Image Image
@sergiotapia commented on GitHub (Feb 11, 2026): <img width="717" height="582" alt="Image" src="https://github.com/user-attachments/assets/ddfb42a3-a1b3-4129-9aec-66a6c47f2c7b" /> <img width="1852" height="447" alt="Image" src="https://github.com/user-attachments/assets/1b3ef24c-be44-4aa3-b6f1-91d80fc84c61" />
Author
Owner

@LeoNardo-LB commented on GitHub (Feb 11, 2026):

Image

Why does my coding plan show that the account has reached the rate limit?

@LeoNardo-LB commented on GitHub (Feb 11, 2026): <img width="1496" height="1390" alt="Image" src="https://github.com/user-attachments/assets/2123a1d0-1d23-4e9d-b07d-783a91b929f2" /> Why does my coding plan show that the account has reached the rate limit?
Author
Owner

@michalwilk123 commented on GitHub (Feb 11, 2026):

it is under Zhipu AI coding plan so it looks the chinese-only version is available

@michalwilk123 commented on GitHub (Feb 11, 2026): it is under Zhipu AI coding plan so it looks the chinese-only version is available
Author
Owner

@cperion commented on GitHub (Feb 11, 2026):

Same error here

@cperion commented on GitHub (Feb 11, 2026): Same error here
Author
Owner

@dspachos commented on GitHub (Feb 11, 2026):

Same rate limit error as well (GLM-5 Z.AI Coding plan)

@dspachos commented on GitHub (Feb 11, 2026): Same rate limit error as well (GLM-5 Z.AI Coding plan)
Author
Owner

@LeoNardo-LB commented on GitHub (Feb 11, 2026):

What packages do you all have? Max, Plus, or Lite?

@LeoNardo-LB commented on GitHub (Feb 11, 2026): What packages do you all have? Max, Plus, or Lite?
Author
Owner

@cperion commented on GitHub (Feb 11, 2026):

I have plus

@cperion commented on GitHub (Feb 11, 2026): I have plus
Author
Owner

@esafak commented on GitHub (Feb 11, 2026):

For GLM Coding Plan subscribers: Due to limited compute capacity, we’re rolling out GLM-5 to Coding Plan users gradually.

Max plan users: You can enable GLM-5 now by updating the model name to "GLM-5" (e.g. in ~/.claude/settings.json for Claude Code).
Other plan tiers: Support will be added progressively as the rollout expands.
Quota note: Requests to GLM-5 consume more plan quota than GLM-4.7.

Emphasis mine. https://z.ai/blog/glm-5

@esafak commented on GitHub (Feb 11, 2026): > For GLM Coding Plan subscribers: Due to limited compute capacity, we’re rolling out GLM-5 to Coding Plan users gradually. > > **Max plan users: You can enable GLM-5 now** by updating the model name to "GLM-5" (e.g. in ~/.claude/settings.json for Claude Code). > **Other plan tiers: Support will be added progressively** as the rollout expands. > Quota note: Requests to GLM-5 consume more plan quota than GLM-4.7. > Emphasis mine. https://z.ai/blog/glm-5
Author
Owner

@dspachos commented on GitHub (Feb 11, 2026):

What packages do you all have? Max, Plus, or Lite?

I'm in GLM Coding Pro

@dspachos commented on GitHub (Feb 11, 2026): > What packages do you all have? Max, Plus, or Lite? I'm in GLM Coding Pro
Author
Owner

@LeoNardo-LB commented on GitHub (Feb 11, 2026):

I found the reason. I'm not sure what's going on with "zai", but currently, pro users of zhipu-coding-plan in China can't use it; they need to have max. It's said that pro and lite will be supported gradually later, but there's an additional "weekly call limit", and I don't know what's going on.

https://linux.do/t/topic/1606198
https://linux.do/t/topic/1606609

https://linux.do/tag/glm/1539

@LeoNardo-LB commented on GitHub (Feb 11, 2026): I found the reason. I'm not sure what's going on with "zai", but currently, pro users of zhipu-coding-plan in China can't use it; they need to have max. It's said that pro and lite will be supported gradually later, but there's an additional "weekly call limit", and I don't know what's going on. https://linux.do/t/topic/1606198 https://linux.do/t/topic/1606609 https://linux.do/tag/glm/1539
Author
Owner

@michalwilk123 commented on GitHub (Feb 11, 2026):

it is added now dev/providers/zai-coding-plan/models/glm-5.toml

just run opencode models --refresh and it should be there

@michalwilk123 commented on GitHub (Feb 11, 2026): it is added now [dev/providers/zai-coding-plan/models/glm-5.toml](https://github.com/anomalyco/models.dev/blob/dev/providers/zai-coding-plan/models/glm-5.toml?rgh-link-date=2026-02-11T18%3A41%3A13Z) just run `opencode models --refresh` and it should be there
Author
Owner

@sergiotapia commented on GitHub (Feb 11, 2026):

The model is INSANELY slow. They must be getting hammered?

Image
@sergiotapia commented on GitHub (Feb 11, 2026): The model is INSANELY slow. They must be getting hammered? <img width="1215" height="837" alt="Image" src="https://github.com/user-attachments/assets/3b8e1d7e-b3f6-4ff0-b4f4-b8a03b56565c" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9091