Skip to content

Opencode Go does not work with Cursor due to using same names for models #39801

Description

@petralian

Description

Opencode Go does not work with Cursor... You can see here:
https://forum.cursor.com/t/cursor-native-agent-fails-with-glm-5-2-via-openai-compatible-provider-while-other-agents-work/163986
Would it be possible to change the model names or add aliases like z-ai/glm-5.2 so Cursor will accept? I cannot continue my Opencode plan otherwise.

Plugins

None

OpenCode version

OpenCode Go

Steps to reproduce

Configure an OpenAI-compatible custom provider in Cursor.
Use the following chat completions endpoint:
https://opencode.ai/zen/go/v1/
Use a valid OpencodeGo API key.
Set the model ID to:
glm-5.2
Start a Cursor Native Agent request.
Cursor fails with:
ERROR_BAD_USER_API_KEY
Invalid API key.
Unauthorized User API key
Control checks:

  • The same API key and endpoint work in Cursor with kimi-k2.7-code.
  • The same glm-5.2 model works in Mimo Code.
  • The same glm-5.2 model works in Z Code.
  • The same glm-5.2 model works in OpenCode’s own tooling.
  • The provider’s /models endpoint lists glm-5.2.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Cursor

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions