Setup guide - From Qwen and Cline docs
Use Qwen in Cline
Both sides document it. Model Studio's Cline guide uses Cline's OpenAI Compatible provider with Model Studio base URLs. Cline's own docs also include a native "Alibaba Qwen" provider with an International/China region switch.
Last verified 7 steps4 official sources
Steps
- Step 1.
Open the Cline panel, click Bring my own API key, and set API Provider to OpenAI Compatible (if Cline is already configured, click the settings icon in the upper-right corner).
- Step 2.
Pay-as-you-go: Base URL below (replace {WorkspaceId}), API Key = your Model Studio API key, Model ID = for example qwen3.8-max or qwen3.8-flash.
Snippethttps://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1 - Step 3.
Coding Plan: Base URL below with the Coding Plan API key and a supported Coding Plan model id.
Snippethttps://coding-intl.dashscope.aliyuncs.com/v1 - Step 4.
Token Plan (Personal or Team Edition): Base URL below with the Token Plan API key.
Snippethttps://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1 - Step 5.
Verify: send a message in the Cline chat panel. A normal response confirms the configuration.
- Step 6.
If you use Qwen3 thinking mode or QwQ, click MODEL CONFIGURATION in settings and check Enable R1 messages format.
- Step 7.
Alternative from Cline's docs (native provider): open Cline Settings, choose "Alibaba Qwen" from the API Provider dropdown, choose "International" or "China" for region, paste the key into "Qwen API Key", then pick a model from the Model dropdown.
Caveats
401 Incorrect API key providedmeans the key and base URL come from different plans, or (pay-as-you-go) different regions.400 InternalError.Algo.InvalidParameter: enable Enable R1 messages format under MODEL CONFIGURATION.- Cline's native Alibaba Qwen provider page links to the China Bailian console and does not list a base URL or model ids; the Model Studio OpenAI Compatible path is the more fully documented one.
- The pay-as-you-go model ids come from the Model Studio Cline page; the Coding Plan ids come from the Coding Plan supported-models list.
More setup guides
Same tool, other providers
Related reading
- Qwen4-Max: Pricing, Benchmarks and What to TestQwen4-Max is live on QwenCloud at $1.50 input and $4.50 output per million tokens, down from $2 and $6 for Qwen3.8-Max. What is vendor-reported, what is missing, and a test plan.
- GVS5H: Can Qwen3.8-27B Match Fable 5 on Coding?GVS5H claims five Qwen3.8-27B instances match Fable 5 on LiveCodeBench Hard. What the harness does, why Hacker News doubts the benchmark, and what to copy.
- Run Qwen3.8-Flash-Next on a Gaming PC With StrataRun Qwen3.8-Flash-Next locally with Strata on a 12 GB GPU: hardware needs, speeds by quant, the license catch, and when the hosted API is the better call.
- Terminal-Universe Turns Agent Traces Into Training EnvironmentsTerminal-Universe, Qwen's paper on rebuilding terminal-agent trajectories into reusable environments, and why agent teams should keep replayable workspaces.
- Qwen3.8-27B vs Opus 4.6 Max: Local Agentic Coding BenchmarksQwen3.8-27B is a 27B dense Apache-2.0 model that beats Opus 4.6 Max on SWE-bench Pro (61.7 vs 53.4). Benchmarks, hardware, cost and when to run it.
- Qwen 3.8 Max Ships: 2.4T MoE, 1M Context, $2/$6 per MTok, Open Weights Next WeekQwen 3.8 Max is a 2.4T-parameter MoE with 95B active, a 1M context window and $2/$6 per million tokens on QwenCloud, with open weights promised next week.
FAQ
How do I use Qwen in Cline?
Both sides document it. Model Studio's Cline guide uses Cline's OpenAI Compatible provider with Model Studio base URLs. Cline's own docs also include a native "Alibaba Qwen" provider with an International/China region switch.
Which Qwen model ids work in Cline?
The official docs read for this guide list qwen3.8-max, qwen3.8-flash, qwen3.7-plus, qwen3.6-plus and qwen3.5-plus. Requests go to https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1.
Is this an official Qwen and Cline setup?
The steps draw on both Qwen's and Cline's docs. It was last checked against 4 official pages on November 8, 2026.
Sources
Last verified against 4 official pages.
- alibabacloud.comhttps://www.alibabacloud.com/help/en/model-studio/cline
- github.comhttps://github.com/cline/cline/blob/main/docs/provider-config/qwen.mdx
- github.comhttps://github.com/cline/cline/blob/main/docs/provider-config/openai-compatible.mdx
- alibabacloud.comhttps://www.alibabacloud.com/help/en/model-studio/coding-plan
Newsletter
New models, set up the day they ship
One email per week. New model releases, the coding tools that support them and how to wire them up.