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
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. This is not just a chat with AI — it's full-fledged pair programming where your AI partner reads your code, proposes 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, you get unlimited pair programming for $0.003/1M tokens.
Step 1: Install Aider and get key
Install Aider:
# pip
pip install aider-chat
# pipx (recommended)
pipx install aider-chat
# Homebrew (macOS)
brew install aiderAPI Key: register at gate.joingonka.ai/register, get 10M free tokens, create a jg-xxx key.
Step 2: Configure Aider
The easiest way is to set it up with the one-command installer. For CLI/file tools, it will configure the JoinGonka provider (baseUrl, models) itself, and for UI tools, it will show ready-made values for insertion:
npx @joingonka/setup --tool aiderThe installer is universal (without a flag, it will prompt you to choose a tool from the list), will ask for the jg-… key, and after configuration, performs a live check with a request to the gateway. It does not touch other settings. Below is the manual method if you prefer to set it up yourself.
Manual setup (Plan B)
Method 1: environment variables (easiest):
export OPENAI_API_BASE=https://gate.joingonka.ai/v1
export OPENAI_API_KEY=jg-your-keyRun:
aider --model openai/MiniMaxAI/MiniMax-M2.7Method 2: per-project file .aider.conf.yml in the project root — the most native way: endpoint, key, and model in a single file, without changing global environment variables (a global OPENAI_* would intercept 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 model behavior in a separate .aider.model.settings.yml (it defines ONLY model parameters, not the endpoint or key):
# .aider.model.settings.yml
- name: openai/MiniMaxAI/MiniMax-M2.7
edit_format: diff
use_repo_map: true
extra_params:
max_tokens: 8192 # output limit via GatewayMethod 3: 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'Verification: go to the Git repository and run gonka-aider. Aider will show model information and offer to add files to the context. Ask it to make a change to a file — if Aider creates a commit, everything is working.
Aider + Gonka capabilities
Aider is not just a chat. It is a full-fledged AI pair programming tool:
- Git integration: Aider automatically creates commits for every change. Easily roll back any AI decision via
git undo. - Project context: Aider builds a repo map (
repo map) — it understands dependencies between files, imports, and project structure. Kimi K2.6 receives full context. - Multi-file edits: can modify 5-10 files simultaneously to implement a feature. Each file is a separate diff, and every edit is trackable.
- Voice input: supports
--voice— dictate tasks instead of typing. - Linting and tests: integration with linters and test frameworks — Aider sees errors and fixes them automatically.
With Gonka, all of this costs pennies. A typical pair programming session (2-4 hours) consumes 10-30M tokens — that is $0.01-0.03 via JoinGonka Gateway. With OpenAI — $50-200 for the same session.
Alternative terminal tools: Claude Code, OpenCode.
Model parameters: Kimi K2.6 context window is 200K tokens, maximum response length via Gateway is up to 8192 tokens (for all network models). This is sufficient for most pair programming tasks.