Connect Cursor to Gonka Broker
Cursor is an AI code editor. It speaks the OpenAI API, so you can point it at Gonka Broker by overriding its OpenAI base URL and adding your own model. Your model then powers Cursor’s chat panel — both Ask and Agent modes — so you can chat about code and let the agent edit files, all on open-source models.
Prerequisites
Section titled “Prerequisites”- A Gonka API key (starts with
gnk-prx-). See Create a Gonka API Key. - Cursor installed and signed in.
Native integration
Section titled “Native integration”Cursor speaks the OpenAI API, so you can override its base URL and add your own model — no extension needed.
- Open Cursor Settings → Models. In the OpenAI API Key section, paste your Gonka key.
- Enable Override OpenAI Base URL and set it to
https://proxy.gonkabroker.com/v1, then click Verify. Cursor sends a test request to Gonka Broker to confirm the key and URL. - Click Add Custom Model and enter an exact Gonka Broker model id —
MiniMaxAI/MiniMax-M2.7ormoonshotai/Kimi-K2.6. Add as many as you want; each must match a Gonka-supported id (see Supported Models). - Open the chat panel (
Cmd/Ctrl + L), switch the model dropdown off Auto, and pick your model. Use it in Ask mode to chat about code or Agent mode to edit files and run commands.
Your Gonka Broker model runs everywhere in Cursor’s chat panel — Ask, Agent, Plan, and Debug. The one exception is Tab autocomplete (the inline gray suggestions), which always uses Cursor’s own built-in model and can’t be pointed at a custom endpoint.
Integration with an extension
Section titled “Integration with an extension”Because Cursor is built on VS Code, you can also run Gonka Broker through a coding extension, which gives you a full agent on your model.
Cline
An autonomous coding agent that edits files and runs commands.
Integration Guide
Continue
An open-source AI code assistant.
Integration Guide coming soon
Verify
Section titled “Verify”With your Gonka Broker model selected, send any message in Ask mode. A reply confirms the connection.
Troubleshooting
Section titled “Troubleshooting”- Verify fails / model not responding — re-check that Override OpenAI Base URL saved as
https://proxy.gonkabroker.com/v1and that the model id matches a model Gonka Broker serves exactly. - 401 / invalid API key — wrong or paused key. Create a fresh one from Create a Gonka API Key.
- Errors after adding the model — make sure the Gonka Broker model is the one selected in the chat dropdown (not Auto). If Cursor’s own models are also enabled, leaving only your custom model selected avoids validation conflicts.