Skip to content

Qwen Code ​

Support: pay-as-you-go Xiaoku APIs are supported.

Install the CLI ​

Node.js 18+ is required.

bash
npm install -g @qwen/qwen-code-cli

Check: qwen-code --version

Configure ​

bash
qwen-code config set provider openai
qwen-code config set api-key XIAOKU_API_KEY
qwen-code config set base-url https://api-ai.xiaoku.ai/v1
qwen-code config set model deepseek-v4-pro

Option 2 (interactive) ​

Run qwen-code auth, choose the OpenAI provider, and enter the settings when prompted.

Use ​

Run qwen-code to start, or qwen-code --tui for TUI mode.

VS Code extension ​

Search the VS Code marketplace for the Qwen Code extension and install it. Add this to settings.json:

json
{
  "qwen-code.apiKey": "XIAOKU_API_KEY",
  "qwen-code.baseUrl": "https://api-ai.xiaoku.ai/v1",
  "qwen-code.model": "deepseek-v4-pro"
}