anomalyco / anomalyco/opencode

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

Open
#39,801 1 comment 0 reactions 1 assignee View on GitHub

@StarpTech is already working on this.

Since Jul 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.