Knowledge Base Sections ▾
Navigation
▸ Start here By rolesCategories
- Cursor + Gonka AI - cheap LLM for coding
- Claude Code + Gonka AI - LLM for the terminal
- OpenClaw + Gonka AI - affordable AI agents
- OpenCode: your own model in the terminal
- Continue.dev + Gonka AI - AI for VS Code/JetBrains
- Cline + Gonka AI - AI agent in VS Code
- Aider + Gonka AI - pair programming with AI
- LangChain + Gonka AI - AI applications for pennies
- n8n + Gonka AI - automation with cheap AI
- Open WebUI + Gonka AI - your own ChatGPT
- LibreChat + Gonka AI — open-source ChatGPT
- Hermes Agent + DeepSeek on the Gonka network — an autonomous agent for pennies
- Kilo Code + Gonka AI — AI-Agent in VS Code
- Roo Code + Gonka AI — Autonomous AI Agent in VS Code
- LlamaIndex + Gonka AI — RAG applications for pennies
- PydanticAI + Gonka — typed AI agents for pennies
- Vercel AI SDK + Gonka AI — AI applications in TypeScript for pennies
- TanStack AI + Gonka — AI applications in TypeScript for pennies
- API quick start — curl, Python, TypeScript
- JoinGonka Gateway — a full overview
- Management Keys — SaaS on Gonka
- Cheapest AI API: Provider Comparison 2026
- How to buy AI tokens and an API key: 3 methods in 2026
- Cursor Pro request limit reached — breakdown and cheaper alternative
- Claude Code is cheaper — bill breakdown and switching
- Cline is burning money — why the agent spends so much
- OpenClaw is expensive — why the agent burns through tokens and how to save
- OpenRouter: Cheap Alternative — Comparison with JoinGonka Gateway
- Best AI model for coding in 2026: comparison and prices
- Cheap alternative to GitHub Copilot without limits
- A cheap Windsurf alternative without credits or limits
- The cheapest API for AI agents in 2026
- ZCode: Cheap GLM inference instead of GLM Coding Plan
- JetBrains IDE + JoinGonka Gateway — your own endpoint instead of credits
- GitHub Copilot BYOK — own models instead of quotas
- Zed + JoinGonka Gateway — cheap inference in your editor
- Pi + JoinGonka Gateway — terminal agent on cheap inference
- Codex CLI: your own key instead of a subscription
- DeepSeek Harness: Your Own Provider via JoinGonka Gateway
- MiniMax Code: MiniMax agent with your own key via Gonka
- Warp + JoinGonka Gateway — terminal agent on your own endpoint
- Trae + JoinGonka Gateway — Gonka network models in AI-IDE
- Cherry Studio + JoinGonka Gateway — desktop AI client
- omp (Oh My Pi) + JoinGonka Gateway: an agent with model roles
- OpenHands + JoinGonka Gateway: agent on your own endpoint
- Qwen Code after the closure of qwen-oauth: working via JoinGonka Gateway
- Goose + JoinGonka Gateway: your own provider and key in the keyring
- Crush + JoinGonka Gateway: Charm agent on Gonka network models
- Zoo Code + JoinGonka Gateway: Migrating from Roo Code to Gonka models
- Kimi Code CLI: Moonshot AI agent on your key via Gonka
- Factory Droid + JoinGonka Gateway: BYOK on Gonka network models
- MiMo Code + JoinGonka Gateway: Xiaomi agent on Gonka network models
Tools
OpenCode: your own model in the terminal
OpenCode is an open-source AI coding assistant that works right in your terminal. No subscriptions, no vendor lock-in. It supports autocomplete, code generation, refactoring, and explanations — all through an OpenAI-compatible API.
Unlike proprietary tools (GitHub Copilot, Cursor Pro), OpenCode is completely free and open. The only expense is the API provider for the LLM. With JoinGonka Gateway, that expense shrinks to $0.30 a month.
Setup takes a couple of minutes — either a one-command installer or manually with OpenCode's native tools, with no need to edit environment variables.
Step 1: Get API Key
Standard procedure for all tools:
- Register at gate.joingonka.ai/register.
- A 3M free token bonus is credited automatically.
- Create an API key (format
jg-xxx) in the Dashboard.
The same key works with Cursor, Cline, Continue.dev and any OpenAI-compatible client.
Step 2: Configure OpenCode
The easiest way is to set it up with a one-command installer. For CLI/file tools, it will automatically register the JoinGonka provider (baseUrl, models) and save the key to the native OpenCode storage without touching environment variables; for UI tools, it will display the values ready for input:
npx @joingonka/setup --tool opencodeThe installer is universal (if no flag is provided, it will ask to select a tool from the list), it will ask for a jg-… key, and after configuration, it will perform a live check with a request to the gateway. It does not touch other settings. Below is the manual method if you prefer to set it up yourself.
Configure manually (Plan B)
OpenCode stores keys natively and describes providers in its own config — so manual setup also does not touch environment variables, and your other OpenAI-compatible tools will continue to work as before.
Step 1 — save the key. Run opencode auth login, select Other, enter the provider id joingonka and paste the jg-… key. OpenCode will save it to ~/.local/share/opencode/auth.json.
Step 2 — describe the provider. Add to ~/.config/opencode/opencode.json (the joingonka id must match step 1):
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"joingonka": {
"npm": "@ai-sdk/openai-compatible",
"name": "JoinGonka (Gonka)",
"options": { "baseURL": "https://gate.joingonka.ai/v1" },
"models": {
"MiniMaxAI/MiniMax-M2.7": { "name": "MiniMax M2.7" },
"deepseek-ai/DeepSeek-V4-Flash-0731": { "name": "DeepSeek V4 Flash" },
"zai-org/GLM-5.3-Flash": { "name": "GLM-5.3 Flash" }
}
}
}
}You do not need to add the apiKey field to this file — OpenCode will use the key from auth.json via the matching id.
Model selection: by default, joingonka/MiniMaxAI/MiniMax-M2.7 is recommended; for reasoning tasks and the longest network context (390K) — joingonka/zai-org/GLM-5.3-Flash; large prompts without reasoning and the longest output — joingonka/deepseek-ai/DeepSeek-V4-Flash-0731 (380K, the second longest context).
Verification: run opencode and ask it to write a function. If the response arrives, the configuration is complete.
Why OpenCode + Gonka is the best combination
Three reasons why the OpenCode + Gonka combination is optimal for developers:
- Fully open-source: both OpenCode and Gonka Network are open source. No vendor lock-in, no proprietary dependencies. You control every component.
- Cost: $0.0069/1M tokens — thousands of times cheaper than any proprietary analog. GitHub Copilot costs $19-39/mo with limits. OpenCode + Gonka — no limits, for pennies.
- Privacy: your code is not sent to Microsoft/OpenAI/Anthropic servers. Requests go through a decentralized network — there is no single storage for your data.
OpenCode supports many LLM providers, but with JoinGonka Gateway, you get an optimal balance of price, quality, and privacy. Alternative terminal tools: Claude Code, Aider.
Model parameters: context window — 200K tokens for MiniMax M2.7 (380K for DeepSeek V4 Flash, 390K for GLM-5.3 Flash), maximum response length — up to 8192 tokens (for DeepSeek V4 Flash — up to 32768). Current list of models: GET https://gate.joingonka.ai/v1/models.