Knowledge Base Sections ▾
For Beginners
For Investors
- Where does GNK token value come from
- Gonka vs Competitors: Render, Akash, io.net
- The Libermans: from biophysics to decentralized AI
- GNK Tokenomics
- Risks and Prospects of Gonka: Objective Analysis
- Gonka vs Render Network: Detailed Comparison
- Gonka vs Akash: AI Inference vs Containers
- Gonka vs io.net: Inference vs GPU Marketplace
- Gonka vs Bittensor: A Detailed Comparison of Two Approaches to AI
- Gonka vs Flux: Two Approaches to Useful Mining
- Governance in Gonka: How a Decentralized Network is Managed
- How to buy GNK token: step-by-step guide
Technical
- Gonka Network Architecture: Sprint, Transfer Agents, DiLoCo
- Developers: How to Earn GNK
- Self-hosting: Step-by-step guide
- Choosing a GPU for Gonka: Hardware Recommendations
- Qwen3-235B: the model previously served by Gonka
- Kimi K2.6: The Second Model in the Gonka Network
- MiniMax M2.7: Gonka Network Model
Analytics
Tools
- 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
Tools
ZCode: Cheap GLM inference instead of GLM Coding Plan
In June 2026, Z.ai released ZCode 3.0 — a desktop agentic development environment which the company calls the «Official Harness for GLM-5.2». The product quickly gained attention: its own agent core, autonomous tasks via /goal, multi-agent mode, and remote session control straight from Telegram. However, along with the wave of reviews came a wave of questions from early GLM Coding Plan subscribers: quotas are calculated in "prompts" within 5-hour windows, usage is tripled during peak hours, lower plans allow only one concurrent request, and users on Hacker News complain about sudden blocks after a heavy day of work.
The good news: ZCode officially supports a custom provider — you can connect any OpenAI- or Anthropic-compatible API and pay for actual tokens instead of subscription quotas. In this guide, we will break down what ZCode is and how the GLM Coding Plan is structured, then step-by-step configure ZCode for the JoinGonka Gateway — a gateway for the decentralized Gonka network, which has already added GLM-5.2 to its registry. The result: the same tool, the same open-weight models, but the economics are based on tokens and are hundreds of times cheaper than centralized APIs.
What is ZCode: Agentic development environment from Z.ai
ZCode is not a «chat sidebar editor», but an ADE: you describe a goal, the agent creates a plan, edits files, runs checks, and iterates until the result is achieved. It works as a desktop application on macOS and Windows (Linux build is in beta status).
Key features of version 3.0:
- ZCode Agent — native agent core with deep GLM-5.2 integration; in addition to it, you can connect third-party agents (Claude Code, Codex, Gemini CLI, and others);
- Goal-mode (
/goal) — long autonomous tasks: plan → execution → step-by-step verification; - Multi-agent — parallel work of multiple agents on a project;
- Remote control — starting and controlling sessions from Telegram, WeChat, and Feishu: the agent runs on your machine, and you answer questions from your phone.
The client itself is free, and Z.ai gives new users a daily GLM-5.2 token quota for trial. After that — either a GLM Coding Plan subscription or your own API key. And this is where it is worth diving into the details, as the subscription model is the most discussed part of the product.
GLM Coding Plan: Price, limits, and quotas
GLM Coding Plan is a Z.ai subscription that provides access to GLM models in ZCode and two dozen other third-party tools. As of the publication date (July 2026), the basic grid looks like this — but prices and promos change, so verify with the live page z.ai/subscribe:
| Plan | Price, $/mo | Quota | Concurrent requests |
|---|---|---|---|
| Lite | $18 (on promo — from ~$12.6) | «Prompts» in 5h windows + weekly cap | 1 |
| Pro | $72 | ×4 of Lite | 1 |
| Max | $160 | ×16 of Lite | up to 30 |
What subscribers are complaining about (Hacker News and GitHub threads):
- Peak multiplier. During peak hours (14:00—18:00 UTC+8 — evening in Asia, morning/day in Europe), each request deducts quota with a ×3 coefficient, off-peak — ×2. You have to plan consumption according to Beijing time zone.
- Quota in «prompts», not tokens. It is opaque exactly how many tokens are left; there are stories in threads like «I burned ~17M tokens on GLM — and got a four-day block».
- One concurrent request on Lite and Pro. For an agentic environment, this is significant: ZCode's own multi-agent mode and any parallel sub-agents are bottle-necked by the queue.
- GLM-5.2 consumes quota faster than smaller models — the flagship burns the limit with its own multiplier.
The conclusion is simple: for calm solo development, the subscription works honestly. But the more «agentic» your workflow is — parallel tasks, long autonomous sessions, overnight runs — the more often the quota model turns into a lottery. The alternative is paying for actual tokens: no windows, multipliers, or queues — however much the agent consumed, that much is deducted. This is exactly the model that the built-in ZCode custom provider mechanism provides, and it can be set up in five minutes.
BYOK in ZCode: Your own API key and custom provider
ZCode officially has built-in support for BYOK: the documentation expressly permits adding "any service compatible with OpenAI or Anthropic protocols" — public APIs, enterprise channels, and even self-hosted installations. It can be configured in three ways:
- Connect button on the welcome screen → "Set Your API Key";
- Manage Models in the model selector;
- Gear icon → Settings → Model Settings → Add Provider.
Specify the OpenAI Base URL and/or Anthropic Base URL plus the API Key for the provider — ZCode will automatically fetch the list of available models.
Three common stumbling blocks:
- Z.ai endpoints differ. The Coding Plan subscription only works via the coding-endpoint
https://api.z.ai/api/coding/paas/v4; the general/api/paas/v4with a subscription key will return an error — a classic reason for "I'm getting 401/429 even though my plan is paid". - "Works in Claude Code ≠ works in ZCode". Environment variables like
ANTHROPIC_BASE_URLused to configure Claude Code are not read by ZCode: it has its own provider settings storage. Configure it specifically via Settings. - "Model is visible in the selector ≠ key has quota". The model list is fetched from the provider's API, while availability depends on the balance and limits of your specific key.
Next steps — practice: connect the JoinGonka gateway to ZCode and get the GLM stack for tokens.
Setting up JoinGonka Gateway in ZCode: GLM for tokens
JoinGonka Gateway is a gateway to the decentralized Gonka network with two native protocols: OpenAI-compatible /v1/chat/completions and Anthropic Messages /v1/messages. For ZCode, this means it connects directly to both custom provider fields without proxy layers. The economics are pay-per-token: no 5-hour windows, no ×3 peak multipliers, and no single parallel request limit; consumption is visible in the dashboard in real-time, and the gateway does not store prompt content.
Step-by-step:
| Step | Action |
|---|---|
| 1. Key | Register at gate.joingonka.ai/register (10M free tokens for new accounts), create an API key in the Keys section. More on keys and your first request in API Quick Start. |
| 2. Provider | ZCode → Settings → Model Settings → Add Provider (or Connect → "Set Your API Key" on the welcome screen). |
| 3. OpenAI Base URL | https://gate.joingonka.ai/v1 |
| 4. Anthropic Base URL | https://gate.joingonka.ai (the client will add the /v1/messages endpoint itself) |
| 5. API Key | your key in the format jg-… |
| 6. Model | Select from the fetched list: today these are moonshotai/Kimi-K2.6 and MiniMaxAI/MiniMax-M2.7; once GLM-5.2 is enabled, zai-org/GLM-5.2-FP8 will appear in the list. |
Check: ask the agent any question. If you get a response, everything is working; error 401 — check your key, 402 — account balance.
Price Comparison: Coding Plan, Z.ai API, OpenRouter, and Gonka
How much does GLM inference cost on different channels (prices per 1M tokens; competitor prices fixed as of July 2026, JoinGonka price is pulled live to the page from the gateway API):
| Channel | Input, $/1M | Output, $/1M | Billing Model |
|---|---|---|---|
| Z.ai API (GLM-5.2) | $1.40 (cached input — $0.26) | $4.40 | per token |
| GLM Coding Plan | $18—160/mo | subscription: "prompt" quotas, ×3 peak multiplier, concurrency limits | |
| OpenRouter (z-ai/glm-5.2) | $0.93 | $3.00 | per token; no free GLM-5.2 option available |
| JoinGonka Gateway | $0.003 | $0.009 | per token, Gonka network |
The difference of two to three orders of magnitude is not marketing rounding, but a different economic model: computations are performed by participants of a decentralized network who earn from the work itself, not from data center margins. A detailed analysis of how this works and where its applicability boundaries lie can be found in the article on the cheapest AI API.
Fair disclaimer regarding GLM-5.2: the exact price of the model will be set by the network at the moment of activation (the table above shows the current live network model price). The figures on this page update automatically; no manual recalculation required.
GLM-5.2 in the Gonka network: Status and FAQ
The zai-org/GLM-5.2-FP8 model has already been added to the Gonka network on-chain registry: the configuration specifies a context window of up to 400K tokens, and the model itself is heavy (requiring more than a terabyte of VRAM per replica). Rollout is currently in progress: network nodes are warming up the weights. As soon as the checks turn green, the model will automatically appear in the gateway's model list — the base URL and key remain unchanged; you will just need to select it in the ZCode selector.
About the model: open weights under the MIT license, MoE architecture with ~750B parameters (about 40B active per token), and a native window of up to 1M tokens. According to Z.ai, the model scores 62.1 on SWE-bench Pro — higher than GPT-5.5, and on FrontierSWE it lags behind Claude Opus 4.8 by about one percent. For an open-weight model, this is the top spot in coding.
FAQ:
- Why do 429s happen right after a new model is enabled? — This is the rollout phase: some nodes are still loading weights. Retry your request in a few seconds — the balancer will find an active node.
- What is available today? — Kimi K2.6 and MiniMax M2.7: both models work in ZCode via the same custom provider, and the configuration from this guide is fully functional right now.
- What about privacy? — The gateway does not store the content of prompts and responses; statistics only include consumption aggregates.
- When is the Coding Plan more cost-effective? — If you work solo, stay within the Lite quota, and do not run parallel agents, a subscription with a fixed bill is convenient and predictable. Calculate based on your usage profile: with active agent tasks, paying per token through the network is orders of magnitude cheaper, whereas for light code edits a couple of times a day, the difference may not be noticeable.
- Does this work for other tools? — Yes: the same endpoint works in Claude Code, Cursor, Cline, and any OpenAI/Anthropic-compatible client.