Skip to main content
Watch: I Built an AI App Without Leaving Databricks

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 and says any tool that accepts custom OpenAI-compatible endpoints is supported. 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 shown, replace {WorkspaceId}; Beijing and US (Virginia) also available).

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

    Coding Plan alternative Base URL (use the Coding Plan dedicated key).

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

    API Key: enter the Model Studio key that matches the plan and region. Model: enter a Qwen model id such as qwen3.7-plus. 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 (More tools page) and model ids (Coding Plan, Kilo and Codex 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 and says any tool that accepts custom OpenAI-compatible endpoints is supported. 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.7-plus, qwen3.6-plus and qwen3.7-max. 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 October 17, 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.