Use Coding Plan with Qwen Code
Install Qwen Code
- macOS/Linux
- Windows
Install Qwen Code (version Verify installation:
>= 0.11.1):Connection settings
-
Enter
qwento start Qwen Code.Run in your project directory to provide context-aware suggestions.
-
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
/authto open the settings page. - Select Alibaba Cloud (alibabacloud.com) and press Enter.
- Enter your Coding Plan API key.
- Start a conversation in Qwen Code.
Common commands
These commands are for Qwen Code CLI. IDE extensions support only a subset.
| Command | Description | Example |
|---|---|---|
/model | Switch the model used in the current session. | /model |
/auth | Change the authentication method. | /auth |
/init | Analyze the current directory and create a context file (QWEN.md) with project-level instructions. | /init |
/clear | Clear the screen and start a new chat session. | /clear |
/compress | Replace the chat history with a summary to save tokens. | /compress |
/settings | Open settings (language, theme, etc.). | /settings |
/summary | Generate a project summary from the chat history. | /summary |
/resume | Resume a previous chat session. | /resume |
/stats | Show session statistics. | /stats |
/help | Show available commands. | /help or /? |
/quit | Exit Qwen Code. | /quit |
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.
-
Enter
/quitto exit Qwen Code. -
Update Qwen Code:
The curl installer uses npm internally, so npm updates work for both installation methods.
- Restart Qwen Code:
- Use
/modelto 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.
-
Search for
Qwen Code Companionin VS Code extensions and install it. -
Edit or create
settings.json(paths below). ReplaceYOUR_API_KEYwith 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. - macOS / Linux:
- Click the icon in the upper-right to start Qwen Code. Switch models: enter
/→Switch model.