Aider + Chinese AI Models (2026)

Updated 2026-10-10

Aider is the terminal pair programmer that edits your repo directly. Because it accepts any OpenAI-compatible endpoint, you can drive it with Chinese frontier models — including ones that cost nothing — through NovAI.

One-line setup

pip install aider-install && aider-install

export NOVAI_API_KEY=sk-...   # https://aiapi-pro.com/register ($2 free)
aider --model openai/glm-4.7-flash \
      --openai-api-base https://aiapi-pro.com/v1 \
      --openai-api-key $NOVAI_API_KEY

The openai/ prefix tells Aider to use the OpenAI chat protocol against your base URL; the model list (121 models) is whatever id you pass.

Persistent config (.aider.conf.yml)

model: openai/kimi-k2.7-code
openai-api-base: https://aiapi-pro.com/v1
openai-api-key: $NOVAI_API_KEY

Model picks by task

TaskModel idCost
Zero-cost everyday editsglm-4.7-flashFree, unlimited
Fast code completionqwen3-coder-flashsee leaderboard
Balanced refactorsglm-5.3-flash$0.08 / $0.28 per 1M
Hard architecture workdeepseek-v4-pro / kimi-k2.7-codesee leaderboard

Free unlimited models right now: GLM-4.7-Flash, GLM-4.6V-Flash, GLM-4.1V-Thinking-Flash, CogView3-Flash, CogVideoX-Flash. Live per-model pricing: leaderboard / JSON. NovAI adds 0% platform fee.

Tips

Get $2 free credit · Live price leaderboard · API docs

Related: Claude Code · Cline & Roo Code · Cursor · Open WebUI