Aider’s git-native, commit-every-change style is great for big refactors, and Qwen3-Coder’s large context window means it can hold a lot of your codebase at once. Put them together and you get cheap, safe pair programming on large repositories — Aider keeps the history clean while Qwen does the heavy lifting at budget rates.
This is the setup on Windows, including how to point Aider at Alibaba’s DashScope. For how Aider compares to other agents, see best cheap Claude Code alternatives.
Step 1: Install Aider
python -m pip install pipx
pipx install aider-chat
On Windows it works in PowerShell, but Aider leans on git and the shell, so WSL is smoother — see install Aider on Windows with WSL.
Step 2: DashScope key
Create an Alibaba Cloud Model Studio account and generate a DashScope API key. Use the international endpoint outside mainland China.
Step 3: Point Aider at Qwen
DashScope is OpenAI-compatible, so set Aider’s OpenAI client to DashScope’s endpoint and key, then choose the Qwen model:
export OPENAI_API_BASE="https://dashscope-intl.aliyuncs.com/compatible-mode/v1"
export OPENAI_API_KEY="sk-your-dashscope-key"
aider --model openai/qwen3-coder-plus
The openai/ prefix tells Aider to use its OpenAI-compatible client against the base URL you set. On PowerShell, set the variables with $env: first.
Step 4: Big-context editing
Qwen3-Coder’s large context is the reason to use it here. Add the files you’re working on and Aider can keep a lot of surrounding code in view, which improves edits on big repos. Aider commits each change, so you can review with git log and revert any step.
Qwen models with Aider
| openai/qwen3-coder-plus | Agentic coding, big context — best default |
|---|---|
| openai/qwen3.5-plus | Cheaper general model |
| --weak-model | Cheaper model for commit messages |
Save it in a config file
Avoid retyping flags by writing .aider.conf.yml in your home or project folder:
model: openai/qwen3-coder-plus
weak-model: openai/qwen3.5-plus
Keep the API key and base URL in environment variables, not in this file.
Pricing
Aider is free; Qwen bills two ways:
- Pay-per-token on DashScope with cache-hit discounts on repeated context.
- Alibaba Coding Plan — around $50/month for ~90k requests, including select third-party models.
For heavy daily pair programming, the plan usually wins. See Alibaba Coding Plan vs pay-per-token. Confirm current terms on Model Studio.
Troubleshooting
- Requests hitting OpenAI —
OPENAI_API_BASEisn’t set to DashScope. - Auth errors — wrong region endpoint, or
OPENAI_API_KEYunset. - Model errors — confirm
qwen3-coder-plusis current on Model Studio. aider: command not found— runpipx ensurepathand reopen the shell.
Qwen + Aider checklist
- Aider installed via pipx
- DashScope key from Model Studio (intl endpoint)
- OPENAI_API_BASE and OPENAI_API_KEY set to DashScope
- Run with --model openai/qwen3-coder-plus
- Started from a clean git working tree
Wrapping up
Qwen with Aider is cheap, git-safe pair programming for big repos: install Aider with pipx, point OPENAI_API_BASE and OPENAI_API_KEY at DashScope, and run aider --model openai/qwen3-coder-plus. Qwen’s large context handles the codebase; Aider’s per-change commits keep it reviewable. Choose pay-per-token or the coding plan by volume.
To use Qwen with other tools, see run Qwen3-Coder with Claude Code or Qwen Code CLI on Windows.