Knowledge Base Sections ▾

Navigation

▸ Start here By roles

Categories

Tools 54
Glossary 12

Tools

Roo Code + Gonka AI — Autonomous AI Agent in VS Code

Important: The Roo Code extension was discontinued on May 15, 2026. The repository has been archived, and there will be no further updates. Development is being continued by Zoo Code — a fork started by the Roo Code community: the provider configuration is identical, and for moving, there is a migration guide and our Zoo Code guide. Other open agents for VS Code include Kilo Code and Cline, from which Roo Code was originally forked. An already installed extension continues to work, and the instructions below are still relevant for it.

Roo Code is an autonomous AI agent for VS Code: it reads and edits files, executes terminal commands, interacts with the browser, and completes multi-step development tasks. It is a fork of Cline that went further: customizable modes (Architect, Code, Ask, Debug, and custom ones), project-specific instructions, and a flexible model configuration panel. In essence, it is an entire team of AI specialists inside your editor.

The main problem with such agents is token consumption. For a single task, Roo Code processes file contexts, command outputs, and tool results — amounting to tens of millions of tokens. At Anthropic's prices ($3-15 per 1M), a single full session turns into $30-1500. For daily work, this is unrealistic.

JoinGonka Gateway reduces the cost by thousands of times: the same session will cost $0.01-1.00. The Gateway resells inference from the decentralized Gonka network and supports both the OpenAI format ("OpenAI Compatible" provider) and the Anthropic format (endpoint /v1/messages) — Roo Code connects via either. This transforms Roo Code from an expensive demo into an everyday working tool.

Step 1: Install Roo Code and get a key

Installing Roo Code: in VS Code, open Extensions (Ctrl/Cmd+Shift+X), search for "Roo Code" and click Install. After installation, a kangaroo icon for Roo Code will appear in the sidebar. The extension is still in the Marketplace, but its last version — 3.54.0 from May 15, 2026 — will remain the final one.

JoinGonka API key: if you don't have a key yet — sign up at gate.joingonka.ai/register, get 3M free tokens, and create a key with the jg- prefix in the Dashboard.

Step 2: Configure Roo Code (OpenAI Compatible)

The easiest way is to set it up with the one-command installer. For CLI/file tools it will configure the JoinGonka provider itself (baseUrl, models), and for UI tools it will show ready-to-paste values:

npx @joingonka/setup --tool roo

The command first reminds you to close Roo Code and tells you where to go (--tool zoo, --tool cline, --tool kilo), then prints the values for those who still have the extension installed — along with the real context window and the model's response ceiling. The installer will ask for your jg-… key and finish with a live check via a request to the gateway. Below is the manual method if you prefer to configure it yourself.

Set up manually (Plan B)

Open the Roo Code panel and go to the settings (gear icon). In the provider section, set:

  1. API Provider — select OpenAI Compatible.
  2. Base URL — https://gate.joingonka.ai/v1
  3. API Key — jg-your-key
  4. Model (Model ID) — MiniMaxAI/MiniMax-M2.7

Below, in the Model Configuration block, you can fine-tune the model parameters manually:

  • Context Window — 180000 (180K tokens; for DeepSeek V4 Flash — 380000).
  • Max Output Tokens — 8192 for MiniMax M2.7 and GLM-5.3 Flash, 32768 for DeepSeek V4 Flash.
  • Input Price / Output Price — you can enter the real rates (≈$0.0062 per 1M input, output ×3) so that Roo Code calculates task costs correctly right in the interface.

Important about tool calling: Roo Code uses only native tool calling — there is no XML fallback here, unlike in older agents. So the model must support function calling. The network's models via our Gateway support native tool calling — Roo Code works with them out of the box.

Check: in the Roo Code chat, type “Create a hello.py file with a function that prints Hello World”. The agent will offer to create the file and show a diff for approval.

Comparing Agent Session Costs

Roo Code is an agentic tool: it does not just reply with one message, but executes a task — it reads files, writes code, runs tests, and fixes bugs. Each action is a model call. Let's compare the costs of typical sessions:

TaskTokensAnthropic ClaudeOpenAI GPTJoinGonka Gonka
Simple bug fix~5M$15 — $75$12 — $50$0.048
New feature (2-3 files)~20M$60 — $300$50 — $200$0.19
Module refactoring~50M$150 — $750$125 — $500$0.48
Full development session (4h)~100M$300 — $1,500$250 — $1,000$0.96

With JoinGonka Gateway, Roo Code becomes an everyday tool — you can run it for every ticket, every bug, every feature, without worrying about the bill. 3M free tokens at the start allow you to try the setup without a card.

Model parameters: MiniMax M2.7 — 180K window and up to 8192 response tokens, DeepSeek V4 Flash — 380K and up to 32768, GLM-5.3 Flash — 390K and up to 8192. If max_tokens for a non-stream request is not specified, the Gateway defaults to returning up to 1500 tokens (up to 3000 for GLM-5.3 Flash). Roo Code automatically breaks long generations into steps.

How Roo Code differs from Cline: modes and Anthropic format

Roo Code is a fork of Cline, but with notable differences that change the workflow:

  • Modes: switch the agent's role to match the task — Architect for planning, Code for writing code, Ask for project questions, Debug for finding bugs. You can create your own modes with separate instructions and a set of allowed tools.
  • Native tool calling only: unlike agents with text/XML parsing, Roo Code sends tools via the native OpenAI tools schema and receives calls as separate events — lower latency and more reliable results. The flip side: the model must support function calling (the network's models via our Gateway do).
  • Custom instructions and profiles: per-project rules (for example, via a rules file in the repository) and multiple saved provider configurations you can switch between easily.

Connecting via the Anthropic format. If you want to use our /v1/messages endpoint instead of the OpenAI format: in settings, select API Provider → Anthropic, check "Use custom base URL" and specify https://gate.joingonka.ai, paste the same jg-your-key key into the Anthropic API Key field, then set the model name (for example MiniMaxAI/MiniMax-M2.7). The key and balance are shared across both formats, and native tool_use in Anthropic mode also goes through the Gateway.

Roo Code + Gonka = an autonomous AI agent in VS Code with modes and native tool calling for pennies. A development session costs $0.10 instead of $300-1,500 with Anthropic, and the starting tokens let you try it without a credit card. The original extension was discontinued on May 15, 2026: for new installations, take Zoo Code — a community fork — or Kilo Code or Cline.

Want to learn more?

Explore other sections or start earning GNK right now.

Get free tokens →