Knowledge Base Sections ▾

Tools

Tools

Aider + Gonka AI - pair programming with AI

Aider - one of the best terminal AI coding assistants. Works with Git, understands project structure, creates commits, edits multiple files simultaneously. This is not just a chat with AI - it's full-fledged pair programming, where an AI partner reads your code, suggests changes, and applies them.

Aider supports OpenAI-compatible APIs out of the box. Connecting to JoinGonka Gateway - 2 environment variables, 30 seconds of setup. After that - unlimited pair programming for $0.001/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 aider

API Key: register at gate.joingonka.ai/register, get 10M free tokens, create a jg-xxx key.

Step 2: Configure Aider

Method 1: Environment variables (the simplest way):

export OPENAI_API_BASE=https://gate.joingonka.ai/v1
export OPENAI_API_KEY=jg-your-key

Run:

aider --model openai/Qwen/Qwen3-235B-A22B-Instruct-2507-FP8

Method 2: Settings file .aider.model.settings.yml in the project root:

# .aider.model.settings.yml
- name: openai/Qwen/Qwen3-235B-A22B-Instruct-2507-FP8
  edit_format: diff
  use_repo_map: true
  send_undo_reply: true
  extra_params:
    max_tokens: 8192  # Qwen3-235B ceiling via Gateway

Method 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/Qwen/Qwen3-235B-A22B-Instruct-2507-FP8'

Verification: Go to a Git repository and run gonka-aider. Aider will show model information and suggest adding 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's a full-fledged tool for AI pair programming:

  • Git integration: Aider automatically creates commits for each change. Easily revert any AI decision via git undo.
  • Project context: Aider builds a repository map (repo map) — it understands dependencies between files, imports, and project structure. Qwen3-235B gets the full context.
  • Multi-file edits: Can simultaneously change 5-10 files to implement a feature. Each file is a separate diff, each edit is traceable.
  • Voice input: Supports --voice — dictate tasks instead of typing.
  • Linting and tests: Integrates with linters and testing 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 through JoinGonka Gateway. With OpenAI — $50-200 for the same session.

Alternative terminal tools: Claude Code, OpenCode.

Model parameters: Qwen3-235B's context window is 128K tokens, the maximum response length through the Gateway is up to 8192 tokens (Kimi K2.6 – 3072, MiniMax M2.7 – 4096). For most pair programming tasks, this is sufficient.

Aider + Gonka = professional AI-powered pair programming for pennies. Git integration, multi-file edits, project context — all for $0.01-0.03/session instead of $50-200 at OpenAI.

Want to learn more?

Explore other sections or start earning GNK right now.

Get 10M free tokens →