For the best Qwen model for coding in the cloud, Alibaba points to qwen3.8-max, which it lists for complex reasoning and coding; no independent leaderboard run or practitioner report on it turned up on 7 November 2026, so that pick rests on Alibaba’s own description. For cheap, fast edits use qwen3.8-flash; for a balance, qwen3.7-plus. Locally, qwen3.8:27b is the pick with 24 GB of memory, qwen3.5:9b with 12 GB, and qwen3-coder-next with 64 GB or more. These names were checked on 5 November 2026.
Which cloud Qwen model for which job?
| Job | Model | Why |
|---|---|---|
| Agentic coding, planning, hard bugs | qwen3.8-max |
Alibaba’s own description: complex reasoning and coding |
| Everyday work | qwen3.7-plus |
Listed for balanced performance, speed and cost |
| Cheap bulk, small edits, sub-agents | qwen3.8-flash |
Listed as fast and cost-effective |
| Older models, on some plans | qwen3.6-flash, qwen3.6-plus, qwen3.5-plus |
Only on the plans that still list them |
Alibaba’s own Claude Code setup for Token Plan uses this split: Max for the Opus slot, Flash for Sonnet, and qwen3.6-flash for Haiku. That is a good pattern for any agent with a strong-model and a cheap-model slot.
The same Model Studio page also lists models you don’t want for code, such as the omni, audio, image and embedding models. A name that contains omni or audio is not a coding model.
The retired-name trap: Alibaba retires models. Ones marked “Upcoming deprecation” in the Model Gallery return a 403 AccessDenied. If an old config suddenly fails, check the name against the current list before you suspect your key. On Coding Plan, only the exact versions Alibaba lists are supported.
What about long context?
Qwen3.8-27B has 262,144 tokens of native context, and its card says it can reach 1,000,000 with YaRN scaling, with a warning that this may hurt performance on shorter texts. For the hosted models, Alibaba’s Token Plan Claude Code setup sets CLAUDE_CODE_MAX_CONTEXT_TOKENS to 983616, and says that for 1M you set it to 1000000 or add [1m] to supported model names. Alibaba’s page doesn’t say which models those are, so test one before you rely on it.
A longer context costs more per request, because the agent resends it every turn. See AI coding costs.
Which Qwen model for coding runs locally?
Open weights are Apache-2.0 for Qwen3.8-27B and Qwen3-Coder-Next. These tags, sizes and contexts were checked against Ollama’s library, and they all carry the tools label:
| Your memory | Pick | Download | Context |
|---|---|---|---|
| 12 GB | qwen3.5:9b |
6.6 GB | 256K |
| 16 GB | qwen3.5:9b-q8_0 |
10 GB | 256K |
| 24 GB | qwen3.8:27b |
18 GB | 256K |
| 48 GB | qwen3.8:27b-q8_0 |
30 GB | 256K |
| 64 GB and up | qwen3-coder-next |
52 GB | 256K |
The download isn’t the memory you need: the context lives beside the model. The sizes at 64k and 128k, the Ollama context default and the tags for 8 GB are all in best Ollama models for coding.
Other tags worth knowing:
qwen3-coder:30b(19 GB): the older Coder model, no thinking, fast on small turns.qwen3-coder:480b(290 GB at 4 bits): for a server, not a laptop.qwen3.5:27b(17 GB) andqwen3.5:35b-a3b(22 GB): the previous generation.qwen3.8:27b-mlx(18 GB): built for Apple silicon.
Small models read prompts literally: a task file or custom instruction written against a hosted model is the first thing to retest on
qwen3.5:9b. A keyword-extraction prompt that worked on GPT-4o fell apart on a 1.5B model, and a 9B model is far stronger, but the habit is the same; the case and the four checks that fixed it are in what is RAG?.
How good are they?
Qwen reports these numbers on the model cards, run by Qwen in its own setups:
| Model | Reported |
|---|---|
qwen3.8:27b |
SWE-bench Pro 61.7, run in the Claude Code harness, and Terminal-Bench 2.1 73.0, run with Terminus |
qwen3-coder-next |
SWE-bench Verified 70.6, SWE-bench Pro 44.3, Terminal-Bench 2.0 36.2 |
The two rows use different benchmarks and different versions, so don’t subtract one from the other. AI coding benchmarks, explained says why. Only your own repo settles it: give each model one small fix and one change across several files.
The useful question there is whether a model is good enough for the job, not whether it beats the others. The LinkedIn article The God Model Fallacy: Why the AI Future Looks Like 1987 expects small open models to take over specific jobs much as cheap workstations overtook the 1980s Lisp machines, and names the catch: splitting work across several models trades token cost for an integration tax of routing, latency and error handling. Running a local Qwen for routine edits and a hosted one for hard bugs is the cheap end of that trade.
Which agent runs them?
Qwen Code, Claude Code, Codex CLI, OpenCode, Cline and Kilo Code all connect: see the Qwen page for the cloud setup and the Ollama page for local. Which plan covers which model is in Qwen Coding Plan and Token Plan.
Contenox
Contenox lists the cloud models above in its Model chip once the Alibaba Cloud Model Studio provider is connected, and the local ones through Ollama, so one session can switch between qwen3.8-max in the cloud and qwen3.8:27b on your GPU. Setup: Qwen coding agent.
Related guides
- Best Ollama models for coding: all local picks by VRAM
- Qwen Coding Plan and Token Plan: which models each plan includes
- Alibaba Cloud Model Studio for coding agents: endpoints and keys
- How to choose a model for coding: test on your own tasks