Skip to main content
Watch: Anthropic Just Hit the Brakes on Its Next AI Model

Setup guide - From Qwen and Roo Code docs

Use Qwen in Roo Code

Roo Code documents an OpenAI Compatible provider (Base URL, API Key, Model). Model Studio documents its OpenAI-compatible base URLs for connecting third-party tools that support the OpenAI API. Combine the two to use Qwen models in Roo Code.

Last verified 4 steps4 official sources

Steps

  1. Step 1.

    Open Roo Code settings (gear icon) and set API Provider to "OpenAI Compatible".

  2. Step 2.

    Base URL: enter the Model Studio OpenAI-compatible URL for your plan (pay-as-you-go Singapore shown, replace {WorkspaceId}).

    Snippet
    https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1
  3. Step 3.

    Coding Plan alternative Base URL (use the Coding Plan key and a Coding Plan model such as qwen3.7-plus).

    Snippet
    https://coding-intl.dashscope.aliyuncs.com/v1
  4. Step 4.

    API Key: enter the Model Studio key that matches the plan. Model: enter a Qwen model id such as qwen3.8-max. Optionally set Max Output Tokens, Context Window and Image Support under Model Configuration.

Caveats

  • Combined setup: Roo Code's documented OpenAI Compatible provider plus Model Studio's documented OpenAI-compatible base URLs and model ids (More tools and Coding Plan pages). Neither side publishes a Roo-specific Model Studio guide.
  • Roo Code uses native tool calling only; the selected model must support OpenAI-compatible tool calling.
  • Roo Code also has a separate "Qwen Code CLI API" provider that reuses OAuth credentials from ~/.qwen/oauth_creds.json; its docs describe a free tier "available during a promotional period". That is a different path from a Model Studio API key.
  • Roo Code docs now live in the Roo-Code repo under apps/docs.

FAQ

How do I use Qwen in Roo Code?

Roo Code documents an OpenAI Compatible provider (Base URL, API Key, Model). Model Studio documents its OpenAI-compatible base URLs for connecting third-party tools that support the OpenAI API. Combine the two to use Qwen models in Roo Code.

Which Qwen model ids work in Roo Code?

The official docs read for this guide list qwen3.8-max, qwen3.8-flash, qwen3.7-plus and qwen3.6-plus. Requests go to https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1.

Is this an official Qwen and Roo Code setup?

The steps draw on both Qwen's and Roo Code's docs. It was last checked against 4 official pages on November 8, 2026.

Sources

Last verified against 4 official pages.

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.