Connect Cline to Gonka Broker
Cline is an autonomous coding agent that runs as your IDE’s extension — for instance VS Code or JetBrains — and reads your code, edits files, and runs commands for you. It speaks the OpenAI API, so you can point it at Gonka Broker with the built-in OpenAI Compatible provider and run the whole agent on open-source models.
The steps below are shown in VS Code. Cline uses the same panel in every IDE, so the settings are identical — only how you open the Cline panel differs (see step 1).
Prerequisites
Section titled “Prerequisites”- A Gonka API key (starts with
gnk-prx-). See Create a Gonka API Key. - Cline installed in your IDE (from the VS Code Extensions marketplace or the JetBrains Marketplace).
Set up the OpenAI Compatible provider
Section titled “Set up the OpenAI Compatible provider”- Open the Cline panel. In VS Code, click the Cline icon in the Activity Bar (the column of icons on the far left); no icon there? Install the extension first, or run Cline: Open In New Tab from the Command Palette (
Cmd/Ctrl + Shift + P). In a JetBrains IDE, open the Cline tool window — click the Cline icon in the tool-window bar, or use View → Tool Windows → Cline. - On first run, Cline’s welcome screen offers Absolutely Free, ClinePass, Frontier Model, and Bring my own API key — choose Bring my own API key (the other options use Cline’s own hosted models, not your Gonka Broker key). Already using Cline? No need to reinstall: click the ⚙️ settings icon at the top of the Cline panel (the gear in Cline’s own header, not your IDE’s) — the API Provider dropdown there is the same choice.
- In API Provider, select OpenAI Compatible.
- Set Base URL to
https://proxy.gonkabroker.com/v1and paste your Gonka key in API Key. - In the Model field, enter an exact Gonka Broker model id —
moonshotai/Kimi-K2.6(recommended for agentic coding) orMiniMaxAI/MiniMax-M2.7. It must match a Gonka-supported id (see Supported Models). Under Model Configuration you can optionally set Max Output Tokens and Context Window size; the defaults work for a first run.
Open the Cline panel, type a task, and let the agent plan, edit files, and run commands — all on your Gonka Broker model.
Switching between models
Section titled “Switching between models”Cline keeps one active configuration, so there is no quick model picker for custom models — but you can keep two models on hand without re-editing settings. In ⚙️ settings, enable Use different models for Plan and Act and assign a model to each mode — for example MiniMaxAI/MiniMax-M2.7 for Plan and moonshotai/Kimi-K2.6 for Act. Switching Plan ↔ Act in the chat bar then swaps the model automatically. To run a different model, change the Model id in settings.
Verify
Section titled “Verify”Send any message in the Cline panel. A reply confirms the connection. For a real test, ask it to make a small edit in an open project and watch it act.
Troubleshooting
Section titled “Troubleshooting”- No response / connection error — re-check that Base URL is exactly
https://proxy.gonkabroker.com/v1and that the Model id matches a model Gonka Broker serves. - 401 / invalid API key — wrong or paused key. Create a fresh one from Create a Gonka API Key.
- Agent stalls or loops — try
moonshotai/Kimi-K2.6, which returns clean output for tool-driven agents. Some reasoning models emit their thinking inline, which a passthrough client like Cline does not strip.