[FEATURE]: Z.ai Coding Plan endpoint override #7921

Closed
opened 2026-02-16 18:08:40 -05:00 by yindo · 3 comments
Owner

Originally created by @ByungHyun21 on GitHub (Jan 29, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The Z.ai coding plan uses a different api endpoint.
However, it appears to be fixed to the default endpoint address.

This limits the number of simultaneously requestable llm calls to one (for GLM-4.7 models)

This is a temporary solution.

opencode.json

"provider": {
"zai-coding-plan": {
"name": "Z.AI Coding Plan",
"api": "https://api.z.ai/api/coding/paas/v4",
"env": ["ZAI_CODING_API_KEY"]
},

~/.bashrc

export ZAI_CODING_API_KEY="2c0.......NI"

After setting this up, I experienced a quick response when I restarted the opencode.

Originally created by @ByungHyun21 on GitHub (Jan 29, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request The Z.ai coding plan uses a different api endpoint. However, it appears to be fixed to the default endpoint address. This limits the number of simultaneously requestable llm calls to one (for GLM-4.7 models) This is a temporary solution. opencode.json "provider": { "zai-coding-plan": { "name": "Z.AI Coding Plan", "api": "https://api.z.ai/api/coding/paas/v4", "env": ["ZAI_CODING_API_KEY"] }, ~/.bashrc export ZAI_CODING_API_KEY="2c0.......NI" After setting this up, I experienced a quick response when I restarted the opencode.
yindo added the discussionzen labels 2026-02-16 18:08:40 -05:00
yindo closed this issue 2026-02-16 18:08:40 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2026):

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

  • #9559: [Bug] glm-4.7 model triggers 'High concurrency' error on first launch - This is the exact problem your endpoint override would solve
  • #4349: Z.ai coding model connection issue - Related to the same Z.ai endpoint configuration
  • #10217: Z.ai GLM-4.7 free model not supported error - Related to Z.ai provider configuration issues

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

@github-actions[bot] commented on GitHub (Jan 29, 2026): This issue might be a duplicate of existing issues. Please check: - #9559: [Bug] glm-4.7 model triggers 'High concurrency' error on first launch - This is the exact problem your endpoint override would solve - #4349: Z.ai coding model connection issue - Related to the same Z.ai endpoint configuration - #10217: Z.ai GLM-4.7 free model not supported error - Related to Z.ai provider configuration issues Feel free to ignore if none of these address your specific case.
Author
Owner
@kiddten commented on GitHub (Jan 29, 2026): Defalut url exactly the same https://github.com/anomalyco/models.dev/blob/0c0d9177199ff9a45c32611da8a5b4d73479ea5e/providers/zai-coding-plan/provider.toml#L5C7-L5C44
Author
Owner

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

Thanks. maybe Z.ai server busy...

@ByungHyun21 commented on GitHub (Jan 29, 2026): Thanks. maybe Z.ai server busy...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7921