You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for Z.ai GLM Coding Plan (Anthropic-compatible provider) #2431
Zhipu recently introduced the GLM Coding Plan – see z.ai/subscribe.
OpenCode already supports Z.ai, but this is a new feature of Z.ai that is exposed only through the Anthropic-compatible endpoint.
It would be great if OpenCode could add support for the Coding Plan specifically, since many developers would love to use it as a more affordable alternative to Claude code
Opencode with GLM 4.5 String issue #1880: Opencode with GLM 4.5 String issue - Related technical issues with GLM 4.5 models that might be resolved by proper Z.ai support
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Sep 5, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
MasterTuto commentedon Sep 5, 2025
Originally posted by @Reidond in #2383
anuramat commentedon Sep 9, 2025
fyi they support openai type api with CoT in response:
https://docs.z.ai/scenario-example/develop-tools/opencode
{ "$schema": "https://opencode.ai/config.json", "provider": { "zhipuai": { "api": "https://api.z.ai/api/coding/paas/v4" } } }