Skip to main content
Use in AI Tools

Qwen Code

Use Coding Plan with Qwen Code

Install Qwen Code

  • macOS/Linux
  • Windows
Install Qwen Code (version >= 0.11.1):
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh | bash
Verify installation:
qwen --version

Connection settings

  1. Enter qwen to start Qwen Code.
    Run in your project directory to provide context-aware suggestions.
qwen
  1. Use the up or down arrow key to select Alibaba Cloud Coding Plan and press Enter.
    If the Coding Plan option appears by default, skip this step.If the chat window appears directly, run /auth to open the settings page.
  2. Select Alibaba Cloud (alibabacloud.com) and press Enter.
  3. Enter your Coding Plan API key.
  4. Start a conversation in Qwen Code.

Common commands

These commands are for Qwen Code CLI. IDE extensions support only a subset.
CommandDescriptionExample
/modelSwitch the model used in the current session./model
/authChange the authentication method./auth
/initAnalyze the current directory and create a context file (QWEN.md) with project-level instructions./init
/clearClear the screen and start a new chat session./clear
/compressReplace the chat history with a summary to save tokens./compress
/settingsOpen settings (language, theme, etc.)./settings
/summaryGenerate a project summary from the chat history./summary
/resumeResume a previous chat session./resume
/statsShow session statistics./stats
/helpShow available commands./help or /?
/quitExit Qwen Code./quit
For more commands and usage details, see the official Qwen Code docs.

Switch models (optional)

Enter /model to switch between models supported by Coding Plan. If your preferred model (such as MiniMax-M2.5, glm-5) doesn't appear, update Qwen Code.
  1. Enter /quit to exit Qwen Code.
  2. Update Qwen Code:
    The curl installer uses npm internally, so npm updates work for both installation methods.
npm install -g @qwen-code/qwen-code@latest
  1. Restart Qwen Code:
qwen
  1. Use /model to select models.

Use Qwen Code IDE extension (optional)

Add AI-powered coding to VS Code and JetBrains IDEs with Qwen Code extensions.
  • VS Code
  • JetBrains
Requires VS Code 1.85.0 or later.
  1. Search for Qwen Code Companion in VS Code extensions and install it.
  2. Edit or create settings.json (paths below). Replace YOUR_API_KEY with your Coding Plan API key:
    • macOS / Linux: ~/.qwen/settings.json
    • Windows: C:\Users\your-username\.qwen\settings.json
    Skip this if you already configured Qwen Code CLI—the extension reads from the same settings.json file.
{
  "env": {
    "CODING_PLAN_API_KEY": "YOUR_API_KEY"
  },
  "modelProviders": {
    "openai": [
      {
        "id": "qwen3.5-plus",
        "name": "[Qwen Cloud Coding Plan] qwen3.5-plus",
        "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/v1",
        "envKey": "CODING_PLAN_API_KEY",
        "generationConfig": {
          "extra_body": {
            "enable_thinking": true
          }
        }
      },
      {
        "id": "qwen3-coder-plus",
        "name": "[Qwen Cloud Coding Plan] qwen3-coder-plus",
        "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/v1",
        "envKey": "CODING_PLAN_API_KEY"
      },
      {
        "id": "qwen3-coder-next",
        "name": "[Qwen Cloud Coding Plan] qwen3-coder-next",
        "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/v1",
        "envKey": "CODING_PLAN_API_KEY"
      },
      {
        "id": "qwen3-max-2026-01-23",
        "name": "[Qwen Cloud Coding Plan] qwen3-max-2026-01-23",
        "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/v1",
        "envKey": "CODING_PLAN_API_KEY",
        "generationConfig": {
          "extra_body": {
            "enable_thinking": true
          }
        }
      },
      {
        "id": "glm-4.7",
        "name": "[Qwen Cloud Coding Plan] glm-4.7",
        "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/v1",
        "envKey": "CODING_PLAN_API_KEY",
        "generationConfig": {
          "extra_body": {
            "enable_thinking": true
          }
        }
      },
      {
        "id": "glm-5",
        "name": "[Qwen Cloud Coding Plan] glm-5",
        "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/v1",
        "envKey": "CODING_PLAN_API_KEY",
        "generationConfig": {
          "extra_body": {
            "enable_thinking": true
          }
        }
      },
      {
        "id": "MiniMax-M2.5",
        "name": "[Qwen Cloud Coding Plan] MiniMax-M2.5",
        "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/v1",
        "envKey": "CODING_PLAN_API_KEY",
        "generationConfig": {
          "extra_body": {
            "enable_thinking": true
          }
        }
      },
      {
        "id": "kimi-k2.5",
        "name": "[Qwen Cloud Coding Plan] kimi-k2.5",
        "baseUrl": "https://coding-intl.dashscope.aliyuncs.com/v1",
        "envKey": "CODING_PLAN_API_KEY",
        "generationConfig": {
          "extra_body": {
            "enable_thinking": true
          }
        }
      }
    ]
  },
  "security": {
    "auth": {
      "selectedType": "openai"
    }
  },
  "codingPlan": {
    "region": "global",
    "version": "b52d5e055670583e6835f2fa5494bdc1b83c6c63516151eaa828774068fccb51"
  },
  "model": {
    "name": "qwen3.5-plus"
  },
  "$version": 3
}
  1. Click the icon in the upper-right to start Qwen Code. Switch models: enter /Switch model.

Learn more

For advanced features such as sub-agents, MCP, and skills, see the official Qwen Code docs.
Qwen Code | Qwen Cloud