Qwen Code CLI
Qwen Code CLI is Alibaba's command-line coding agent for Qwen models. It uses the OpenAI-compatible API and can be pointed at any compatible endpoint.
Mode
Direct mode only. Qwen Code uses standard OpenAI-compatible environment variables.
1. Install and configure
bash
npm install -g @qwen-code/qwen-code
export OPENAI_BASE_URL="https://your-corveil-host/v1"
export OPENAI_API_KEY="sk-citadel-your-key-here"
export OPENAI_MODEL="qwen3-coder-plus"Replace qwen3-coder-plus with any Qwen model exposed by your Corveil instance.
2. Launch
bash
qwenTroubleshooting
- Model not found: Confirm the requested Qwen model is configured in your Corveil instance
- Connection refused: Ensure
OPENAI_BASE_URLincludes the/v1suffix