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 + Gonka AI - free AI for code
- 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 + Gonka AI — 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
- 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
zed.tag
Zed + JoinGonka Gateway — cheap inference in your editor
Zed is a fast open-source editor with an Agent Panel that supports any OpenAI-compatible provider: just specify your api_url and a list of models. This means Zed's agent functions can run on models from the decentralized Gonka network via JoinGonka Gateway — at real-time network prices, hundreds of times lower than vendor card prices, with 10M free starter tokens and no credit card required.
Step 1: Get a JoinGonka key
Register on the gateway and create a key starting with jg-…. The current list of network models is always available via GET https://gate.joingonka.ai/v1/models; currently, these are moonshotai/Kimi-K2.6, MiniMaxAI/MiniMax-M2.7, and deepseek-ai/DeepSeek-V4-Flash-0731.
Step 2: Add a provider via UI or settings.json
Via installer (fastest):
npx @joingonka/setup --tool zedIt will add 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, key jg-… and models. The key goes into the system storage (keychain), not the text config.
Via settings.json (command zed: open settings) — block language_models.openai_compatible:
api_url | https://gate.joingonka.ai/v1 |
available_models | array of models; for each — name, max_tokens (this is CONTEXT, not output limit) and max_output_tokens |
Correct limits for network models: DeepSeek V4 Flash — context 380000, output 32768; Kimi K2.6 and MiniMax M2.7 — context 200000, output 8192.
Key. It is not written to settings.json — Zed documentation explicitly forbids it, and there is no field for it in the schema. Provide the key in one of two ways: via the environment variable JOINGONKA_API_KEY (Zed derives the name from the provider id) or paste it in the provider panel — then it will be stored in the keychain.
Step 3: Select a model and start working
The added models appear in the Agent Panel model selector, where you can pick a model for your 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: it offers the longest network context and output up to 32768 tokens.
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 charged based on live Gonka network prices — see the gateway pricing list for current values. A unified rate for all network models and 10M free starter tokens allow you to test the Zed agent on real tasks before your first top-up.