Aider records its edits in Git, which makes it a practical client for testing Qwen3.8-Max on an existing repository. Alibaba exposes an OpenAI-compatible workspace endpoint, so Aider can connect without a proxy.
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. WSL is also an option when the project already uses Linux tools. 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.8-max
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.8-Max has a 1 million-token context window, but Aider still works best when you add only relevant files. A smaller working set costs less and makes the resulting diff easier to review.
Qwen models with Aider
| openai/qwen3.8-max | Current flagship with tools, vision, and 1M context |
|---|---|
| openai/qwen3.7-plus | Lower-cost model for routine text and code work |
| --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.8-max
weak-model: openai/qwen3.7-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’s Token Plan uses credits. Current prices and model multipliers are listed on the purchase page.
For heavy daily pair programming, the plan usually wins. See Alibaba Coding Plan vs pay-per-token. Confirm current terms on Model Studio.
Troubleshooting
- If requests reach OpenAI,
OPENAI_API_BASEis not set to the Alibaba workspace URL. - For authentication errors, check the region endpoint and
OPENAI_API_KEY. - If the model is not found, confirm that
qwen3.8-maxis available in your workspace region. - If
aideris 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.8-max
- Started from a clean git working tree
Verify the setup
Ask Aider to explain one file before requesting an edit. Then inspect the first commit it creates. If authentication fails, check that the API key and the workspace endpoint come from the same Alibaba region.
To use Qwen with other tools, see run Qwen3-Coder with Claude Code or Qwen Code CLI on Windows.