Skip to content

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).

  • 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).
  1. 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.
  2. 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.
  3. In API Provider, select OpenAI Compatible.
  4. Set Base URL to https://proxy.gonkabroker.com/v1 and paste your Gonka key in API Key.
  5. In the Model field, enter an exact Gonka Broker model id — moonshotai/Kimi-K2.6 (recommended for agentic coding) or MiniMaxAI/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.

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.

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.

  • No response / connection error — re-check that Base URL is exactly https://proxy.gonkabroker.com/v1 and 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.