I’d love to be able to connect my open code go account to cursor through Models → API Keys
Opencode go provides great models at such incredible prices, would be awesome to be able to utilise this through cursor.
Hi @Benjamin_Clatworthy Thank you for the post. There’s no dedicated OpenCode entry in the API Keys list today, but you may be able to wire this up right now through the OpenAI-compatible path. Note that I have not personally tested this, it may not work, and it’s not advised or recommended. Any use is at your own risk.
Open Cursor Settings → Models → API Keys and paste your OpenCode Go key into the OpenAI API Key field. That’s the field Cursor authenticates with, even when the endpoint isn’t OpenAI.
Turn on Override OpenAI Base URL and set it to https://opencode.ai/zen/go/v1.
Add the model ids you want to the model list, for example kimi-k3, glm-5.2, or deepseek-v4-flash. The full list is at https://opencode.ai/zen/go/v1/models. Use the bare id, not the opencode-go/ prefixed form from an opencode config.
One thing to know before you set this up: while the override is on, Cursor routes all OpenAI-compatible requests to that URL, so the built-in models from your Pro+ plan won’t be available at the same time. That’s by design, and toggling the key off in the same panel brings them back.
Providers we don’t list natively aren’t officially supported through the override, so I can’t promise it works or keeps working for you.
It doesn’t allow to add models with the same name that the ones already available in Cursor (kimi-k3 for example) Is there anything we can do about it ? @kevinn