Alibaba Qwen (Model Studio / Qwen Code)
Use Qwen in your coding tools
Step-by-step setup for Qwen in 11 coding tools: Aider, Claude Code, Cline, Codex CLI, Continue, Cursor, Goose, Kilo Code, OpenCode, Roo Code and Zed. Every step comes from official docs, read on .
Qwen setup guides
- From Qwen and Aider docsUse Qwen in AiderAider documents connecting to any OpenAI-compatible endpoint via OPENAI_API_BASE and OPENAI_API_KEY, with the model prefixed openai/. Model Studio documents the OpenAI-compatible base URLs and Qwen model ids.{workspaceid}.ap-southeast-1.maas.aliyuncs.com3 steps
- Documented by QwenUse Qwen in Claude CodeAlibaba Cloud Model Studio publishes a dedicated Claude Code guide. Claude Code talks to Model Studio's Anthropic-compatible endpoint (/apps/anthropic) via ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN in ~/.claude/settings.json, with Qwen model ids mapped to the Haiku/Sonnet/Opus roles. Works with Pay-as-you-go, Coding Plan, and Token Plan keys.{workspaceid}.ap-southeast-1.maas.aliyuncs.com7 steps
- From Qwen and Cline docsUse Qwen in ClineBoth 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.{workspaceid}.ap-southeast-1.maas.aliyuncs.com7 steps
- Documented by QwenUse Qwen in Codex CLIModel Studio documents Codex CLI setup through a custom model_provider in ~/.codex/config.toml pointing at the OpenAI-compatible endpoint (/compatible-mode/v1), with OPENAI_API_KEY as env_key. Models that support the Responses API work with the latest Codex; Chat/Completions-only models (and the whole Coding Plan) need Codex 0.80.0 with wire_api = "chat".{workspaceid}.ap-southeast-1.maas.aliyuncs.com8 steps
- From Qwen and Continue docsUse Qwen in ContinueContinue documents using any OpenAI API compatible provider by setting provider: openai with a custom apiBase in config.yaml. Model Studio documents its OpenAI-compatible base URLs and Qwen model ids, so the two combine directly.{workspaceid}.ap-southeast-1.maas.aliyuncs.com2 steps
- Documented by QwenUse Qwen in CursorModel Studio's Cursor guide uses Cursor's OpenAI API Key plus Override OpenAI Base URL settings to point Cursor at the Model Studio OpenAI-compatible endpoint, then adds Qwen model names. Custom models need Cursor Pro or higher.{workspaceid}.ap-southeast-1.maas.aliyuncs.com6 steps
- From Qwen and Goose docsUse Qwen in Goosegoose documents custom providers (OpenAI, Anthropic or Ollama compatible) through goose configure, the Desktop UI, or a JSON file in ~/.config/goose/custom_providers/. Model Studio documents its OpenAI-compatible base URLs and Qwen model ids, so a custom OpenAI-compatible provider covers it.{workspaceid}.ap-southeast-1.maas.aliyuncs.com3 steps
- Documented by QwenUse Qwen in Kilo CodeModel Studio documents Kilo CLI, the command-line client for Kilo Code, using a custom provider in ~/.config/kilo/config.json. Pay-as-you-go uses @ai-sdk/openai-compatible against /compatible-mode/v1; the Coding Plan and Token Plan use @ai-sdk/anthropic against /apps/anthropic/v1. Model Studio also lists the Kilo Code extension as supported in VS Code and JetBrains IDEs.{workspaceid}.ap-southeast-1.maas.aliyuncs.com5 steps
- Documented by QwenUse Qwen in OpenCodeModel Studio's OpenCode guide adds a custom provider to ~/.config/opencode/opencode.json using the @ai-sdk/anthropic package against Model Studio's Anthropic-compatible endpoint (/apps/anthropic/v1), with Qwen models declared in the models map.{workspaceid}.ap-southeast-1.maas.aliyuncs.com5 steps
- From Qwen and Roo Code docsUse Qwen in Roo CodeRoo 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.{workspaceid}.ap-southeast-1.maas.aliyuncs.com4 steps
- From Qwen and Zed docsUse Qwen in ZedZed documents OpenAI-compatible (and Anthropic-compatible) providers under language_models in settings.json or through Agent Settings > Add Provider. Model Studio documents both its OpenAI-compatible and Anthropic-compatible base URLs plus Qwen model ids.{workspaceid}.ap-southeast-1.maas.aliyuncs.com3 steps
No verified Qwen guide yet for GitHub Copilot. We only publish a pairing once official docs cover it.
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.