anomalyco / anomalyco/opencode
Opencode Go does not work with Cursor due to using same names for models
@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
Operating System
Windows 11
Terminal
Cursor
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.