Knowledge Base Sections ▾
Navigation
▸ Start here By rolesCategories
- OpenCode: free models, providers and API key
- Cursor + Gonka AI - cheap LLM for coding
- Claude Code + Gonka AI - LLM for the terminal
- DeepSeek Harness: Your Own Provider via JoinGonka Gateway
- Codex CLI: your own key instead of a subscription
- Pi + JoinGonka Gateway — terminal agent on cheap inference
- omp (Oh My Pi) + JoinGonka Gateway: an agent with model roles
- Zoo Code + JoinGonka Gateway: Migrating from Roo Code to Gonka models
- Kilo Code + Gonka AI — AI-Agent in VS Code
- ZCode: GLM Coding Plan tiers, prices and limits
- Hermes Agent + DeepSeek on the Gonka network — an autonomous agent for pennies
- OpenClaw + Gonka AI - affordable AI agents
- 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
- 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
- Free AI API: tokens on sign-up and for referrals
- Cursor Pro request limit reached — breakdown and cheaper alternative
- Cheaper Claude Code: GLM and DeepSeek instead of Claude
- Claude Code + DeepSeek V4 Flash: How to Connect It and What a Task Costs
- Cline is burning money — why the agent spends so much
- OpenClaw is expensive — why the agent burns through tokens and how to save
- OpenRouter alternative: the same models, many times cheaper
- 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
- 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
- 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
- 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
- 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
Hermes Agent + DeepSeek on the Gonka network — an autonomous agent for pennies
Hermes Agent is an open-source self-learning AI agent from Nous Research (MIT license). It is not just a chat: a full-fledged terminal CLI with memory, skills, a task scheduler, and a gateway to Telegram, Discord, Slack, and WhatsApp. The agent creates skills from experience, searches through past dialogues, and builds a user model between sessions. It runs on anything from a $5 VPS to a GPU cluster.
The problem with Hermes is the same as with any agentic tool: token consumption. The agent reads files, runs tool-calling cycles, compresses context, maintains memory — active work easily consumes tens of millions of tokens. On Anthropic or OpenAI models ($3-15 per 1M), this turns into tens or hundreds of dollars per day of autonomous work.
Hermes supports any provider by default: Nous Portal, OpenRouter, OpenAI, Anthropic — or your own endpoint. This is the entry point for JoinGonka Gateway: our OpenAI-compatible gateway delivers inference from the decentralized Gonka network at a price from $0.0062 per 1M tokens — hundreds and thousands of times cheaper. Hermes becomes a truly everyday tool, not an expensive demonstration.
Step 1: Install Hermes and Get Your Key
Installing Hermes (Linux, macOS, WSL2). The official installer will pull in Python, Node.js, ripgrep and ffmpeg for you:
# Linux / macOS / WSL2
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
# Windows (PowerShell)
iex (irm https://hermes-agent.nousresearch.com/install.ps1)After installation, reload your shell and verify it runs:
source ~/.bashrc # or ~/.zshrc
hermes # interactive CLIJoinGonka API key: if you don't have one yet, sign up at gate.joingonka.ai/register, confirm your address — 3M free tokens will land in your account — and create a key with the jg- prefix in the Dashboard. One key and one balance work across all models right away.
Step 2: Connect Gonka as a custom provider
Hermes works with any OpenAI-compatible endpoint: if the server responds to /v1/chat/completions, you can point Hermes at it. The JoinGonka Gateway is exactly that. There are three ways to set it up.
Method 1: our installer (one command, recommended). It writes the provider into the Hermes config, sets DeepSeek V4 Flash as the default model, and verifies with a live request that the gateway accepts the key and the model:
npx @joingonka/setup --tool hermesMethod 2: the setup wizard. Run it in the terminal outside an active session:
hermes modelFrom the provider list, choose "Custom endpoint (self-hosted / VLLM / etc.)" and enter three values:
- API base URL:
https://gate.joingonka.ai/v1 - API key:
jg-your-key - Model name:
deepseek-ai/DeepSeek-V4-Flash-0731
Method 3: editing the config. Hermes stores model settings in ~/.hermes/config.yaml (in the native Windows build — %LOCALAPPDATA%\hermes\config.yaml) — this is the single source of truth. Add a section:
# ~/.hermes/config.yaml
model:
provider: custom
default: deepseek-ai/DeepSeek-V4-Flash-0731
base_url: https://gate.joingonka.ai/v1
api_key: jg-your-keyThe model name goes in the default key — that is Hermes's canonical key. The model: line inside the block is only a fallback alias: it has no effect if default is already set (by the setup wizard, for example), so when editing manually, change default itself.
⚠️ The key goes only in model.api_key. The Hermes documentation allows OPENAI_API_KEY in ~/.hermes/.env, but for a custom endpoint this doesn't work: Hermes reads the key only from model.api_key, and with the key in .env the gateway will respond 401 Invalid API key. Verified on Hermes v0.20.4.
Verification: run hermes and type "Create a file hello.py with a hello world function". The agent should create the file and show the result. You can see the current configuration state with hermes config show | grep '^model\.' and hermes status.
Switching on the fly: inside a session, use the command /model custom:deepseek-ai/DeepSeek-V4-Flash-0731. And /model custom without a name will automatically pull the model from the endpoint if there's only one there.
Comparison of Autonomous Session Costs
Hermes is an agentic tool with memory and skills. It doesn't just respond with one line: it reads files, writes code, runs commands, compresses context, and performs long background tasks via a scheduler. Each action is an API call, and tens of millions of tokens accumulate over a day of autonomous work. Let's compare the costs of typical sessions:
| Task | Tokens | Anthropic Claude | JoinGonka Gonka |
|---|---|---|---|
| One-time task with tool-calling | ~5M | $15 — $75 | $0.048 |
| Background agent (several hours) | ~20M | $60 — $300 | $0.19 |
| Autonomous feature development | ~50M | $150 — $750 | $0.48 |
| Daily operation via gateway (Telegram + cron) | ~150M | $450 — $2,250 | $1.44 |
With JoinGonka Gateway, Hermes can be kept running 24/7: nightly reports, weekly audits, background tasks via a cron-scheduler — without worrying about the bill. At Anthropic prices, each such run would have to be calculated manually. The starting balance upon registration is enough to run the agent on a real task and see your own consumption before your first top-up.
Model selection and tool calling
Through the Gateway, three Gonka models are immediately available to the user — all of them support native tool calling (OpenAI function calling), so Hermes skills and tools work reliably without parsing text responses:
| Model name (for config) | Context | Max Response | When to choose |
|---|---|---|---|
deepseek-ai/DeepSeek-V4-Flash-0731 | 380K | 32768 | Default for Hermes: one of the longest contexts in the network and four times the response ceiling — the agent handles long tool-calling chains and large files in a single turn |
MiniMaxAI/MiniMax-M2.7 | 180K | 8192 | Balanced all-rounder for short tasks and quick edits |
zai-org/GLM-5.3-Flash | 390K | 8192 | Reasoning model with the longest context in the network: it reasons before responding — for complex logic; part of the response is used for reasoning, so do not lower the response limit |
About token limits in Hermes. In config.yaml, the context_length field is the total context window (input + output), while max_tokens is the ceiling only for the response length. It is better not to set either: Hermes will determine the correct values from the provider itself. If you set max_tokens manually, keep it within the model limits: via Gateway, this is 32768 for DeepSeek V4 Flash and 8192 for MiniMax M2.7 and GLM-5.3 Flash. You can change the model at any time with the hermes model command or directly in a session via /model.
Similar terminal tools in our knowledge base: Claude Code, Cline.
Want to learn more?
Explore other sections or start earning GNK right now.
Get starting balance for free →