Skip to content

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

@vladnicula

Description

@vladnicula

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions