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
Zed + JoinGonka Gateway — cheap inference in your editor
Zed is a fast open editor with an Agent Panel, and it supports any OpenAI-compatible provider: just specify your api_url and a list of models. This means Zed's agent features can run on Gonka decentralized network models via JoinGonka Gateway — at live network prices, hundreds of times lower than vendor card prices, with starting 3M free tokens without needing a credit card.
Step 1: Get a JoinGonka key
Register at the gateway and create a jg-… key. The current list of network models is always available via GET https://gate.joingonka.ai/v1/models; today these are MiniMaxAI/MiniMax-M2.7, deepseek-ai/DeepSeek-V4-Flash-0731, and zai-org/GLM-5.3-Flash.
Step 2: Add a provider via UI or settings.json
Via installer (fastest):
npx @joingonka/setup --tool zedThis will append the provider and model catalog directly to settings.json, preserving your comments and other editor settings. The key is not placed there — Zed does not read it from there (see below).
Via UI: Open agent settings (command agent: open settings) → in the "LLM Providers" section, click Add Provider → fill in the fields: provider name, api_url = https://gate.joingonka.ai/v1, the jg-… key, and the models. The key goes into the system keychain, not the text config.
Via settings.json (command zed: open settings) — the language_models.openai_compatible block:
api_url | https://gate.joingonka.ai/v1 |
available_models | array of models; for each — name, max_tokens (this is the CONTEXT, not the output limit) and max_output_tokens |
Correct limits for network models: DeepSeek V4 Flash — context 380000, output 32768; MiniMax M2.7 — context 200000, output 8192; GLM-5.3 Flash — context 390000, output 8192 (reasoning model: part of the output is used for reasoning, do not lower the limit).
Key. It is not written to settings.json — Zed documentation explicitly forbids this, and there is no field for it in the schema. Provide the key in one of two ways: via the JOINGONKA_API_KEY environment variable (Zed derives the name from the provider ID) or insert it in the provider panel — then it will be stored in the keychain.
Step 3: Select a model and start working
Added models appear in the Agent Panel model switcher—the model is selected per conversation. All three network models support tool calling, so Zed's agent functions (code edits, multi-step tasks) work as expected. For large repositories and long sessions, use DeepSeek V4 Flash: one of the longest contexts in the network (380K) and output up to 32768 tokens. Formally, the longest context (390K) belongs to GLM-5.3 Flash, but part of its response budget goes to reasoning.
What works on a custom endpoint and what doesn't
Agent Panel, chat, and inline assist work with your provider. Edit predictions (Zeta autocomplete) remain on Zed's own models — third-party APIs cannot be connected there; this is a limitation of the editor, not the gateway. Vision tasks do not work through the gateway: network models are text-based.
How much does it cost
Inference is billed at live Gonka network prices — see current values in the gateway price list. A uniform rate for all network models and starting 3M free tokens allow you to test the Zed agent on real tasks before your first top-up.