Z.ai subscription API fails to work in opencode but works in other agents #5886

Closed
opened 2026-02-16 17:58:00 -05:00 by yindo · 0 comments
Owner

Originally created by @vladnicula on GitHub (Jan 14, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Image

I have a Z.Ai subscription and am using the same API KEY in opencode and other agents.

About an hour ago the Z.Ai integration stopped working in opencode.

The same API Key and Z.Ai model was used successfully in other AI Agents clis or IDE integrations while the opencode agent continued to fail with this error.

Plugins

No response

OpenCode version

1.1.20

Steps to reproduce

  1. Setup an API KEY from Z.Ai subscription using GLM 4.7
  2. Attempt to use it.
  3. Inspect results.
    Expected: AI requests work
    Current: AI requests fail with the attached screenshot.

IMPORTANT: The same account/api key and model work fine in other AI Agents or IDE integrations, while the opencode one fails.

Screenshot and/or share link

Image

Operating System

mac os 14.4.1 (23E224)

Terminal

cursor zsh

Originally created by @vladnicula on GitHub (Jan 14, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description <img width="943" height="106" alt="Image" src="https://github.com/user-attachments/assets/71c47e5b-1ff7-44ab-9238-5032feaa64ff" /> I have a Z.Ai subscription and am using the same API KEY in opencode and other agents. About an hour ago the Z.Ai integration stopped working in opencode. The same API Key and Z.Ai model was used successfully in other AI Agents clis or IDE integrations while the opencode agent continued to fail with this error. ### Plugins _No response_ ### OpenCode version 1.1.20 ### Steps to reproduce 1. Setup an API KEY from Z.Ai subscription using GLM 4.7 2. Attempt to use it. 3. Inspect results. Expected: AI requests work Current: AI requests fail with the attached screenshot. IMPORTANT: The same account/api key and model work fine in other AI Agents or IDE integrations, while the opencode one fails. ### Screenshot and/or share link <img width="943" height="106" alt="Image" src="https://github.com/user-attachments/assets/6b4a7834-9555-451b-8889-dcc6ae0307d9" /> ### Operating System mac os 14.4.1 (23E224) ### Terminal cursor zsh
yindo added the bug label 2026-02-16 17:58:00 -05:00
yindo closed this issue 2026-02-16 17:58:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5886