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
Aider + Gonka AI - pair programming with AI
Aider is one of the best terminal AI coding assistants. It works with Git, understands project structure, creates commits, and edits multiple files simultaneously. It's not just a chat with AI — it's full-fledged pair programming where the AI partner reads your code, suggests changes, and applies them.
Aider supports OpenAI-compatible APIs out of the box. Connecting to JoinGonka Gateway takes 2 environment variables and 30 seconds of setup. After that — unlimited pair programming for $0.0069/1M tokens.
Step 1: Install Aider and get key
Installing Aider:
# pip
pip install aider-chat
# pipx (recommended)
pipx install aider-chat
# Homebrew (macOS)
brew install aiderAPI key: sign up at gate.joingonka.ai/register, get 3M free tokens, create a jg-xxx key.
Step 2: Configure Aider
The easiest way to get a ready-made config block is with the JoinGonka installer:
npx @joingonka/setup --tool aiderThe installer will ask for your jg-… key and print a block for .aider.conf.yml (address, key, model), plus an optional .aider.model.metadata.json with the model's real limits so Aider won't warn about an unknown context window. It doesn't write the files — paste the block yourself; the installer will verify the key and model with a live request to the gateway. Below is the same path, step by step.
Set up manually (plan B)
Option 1: environment variables (the simplest):
export OPENAI_API_BASE=https://gate.joingonka.ai/v1
export OPENAI_API_KEY=jg-your-keyRun:
aider --model openai/MiniMaxAI/MiniMax-M2.7Option 2: a per-project file .aider.conf.yml in the project root — the most native path: endpoint, key and model in one file, without touching global environment variables (a global OPENAI_* would hijack your other OpenAI-compatible tools):
# .aider.conf.yml
openai-api-base: https://gate.joingonka.ai/v1
openai-api-key: jg-your-key
model: openai/MiniMaxAI/MiniMax-M2.7Optionally — fine-tune the model's behavior in a separate .aider.model.settings.yml (it sets ONLY model parameters, not the endpoint or the key):
# .aider.model.settings.yml
- name: openai/MiniMaxAI/MiniMax-M2.7
edit_format: diff
use_repo_map: true
extra_params:
max_tokens: 8192 # Gateway output capOption 3: a shell alias for convenience:
alias gonka-aider='OPENAI_API_BASE=https://gate.joingonka.ai/v1 OPENAI_API_KEY=jg-your-key aider --model openai/MiniMaxAI/MiniMax-M2.7'Check: go to a Git repository and run gonka-aider. Aider will show model info and offer to add files to the context. Ask it to make a change to a file — if Aider creates a commit, everything works.
Aider + Gonka capabilities
Aider is not just a chat. It is a full-fledged AI-powered pair programming tool:
- Git integration: Aider automatically creates commits for every change. It's easy to rollback any AI decision via
git undo. - Project context: Aider builds a repository map (
repo map) — it understands dependencies between files, imports, and project structure. The model receives full context. - Multi-file edits: can modify 5-10 files simultaneously to implement a feature. Each file is a separate diff, each edit is tracked.
- Voice input:
--voicesupport — dictate tasks instead of typing. - Linting and tests: integration with linters and test frameworks — Aider sees errors and fixes them automatically.
With Gonka, all this costs pennies. A typical pair programming session (2-4 hours) consumes 10-30M tokens — that's $0.01-0.03 via JoinGonka Gateway. With OpenAI, it's $50-200 for the same session.
Alternative terminal tools: Claude Code, OpenCode.
Model parameters: MiniMax M2.7 context window is 200K tokens, DeepSeek V4 Flash is 380K; max response length via Gateway is 8192 tokens for MiniMax M2.7 and GLM-5.3 Flash, and 32768 for DeepSeek V4 Flash. For most pair programming tasks, this is sufficient.