详细设置页:GitHub - QwenLM/qwen-code: Qwen Code is a coding agent that lives in the digital world.
Authorization
Choose your preferred authentication method based on your needs:
1. Qwen OAuth (
Recommended - Start in 30 seconds)
The easiest way to get started - completely free with generous quotas:
# Just run this command and follow the browser authentication
qwen
What happens:
- Instant Setup: CLI opens your browser automatically
- One-Click Login: Authenticate with your qwen.ai account
- Automatic Management: Credentials cached locally for future use
- No Configuration: Zero setup required - just start coding!
Free Tier Benefits:
2,000 requests/day (no token counting needed)
60 requests/minute rate limit
Automatic credential refresh
Zero cost for individual users
Note: Model fallback may occur to maintain service quality
2. OpenAI-Compatible API
ModelScope (Free Tier) (Apply for API Key)
2,000 free API calls per day
Connect your Aliyun account to avoid authentication errors
export OPENAI_API_KEY="your_api_key_here"
export OPENAI_BASE_URL="https://api-inference.modelscope.cn/v1"
export OPENAI_MODEL="Qwen/Qwen3-Coder-480B-A35B-Instruct"
OpenRouter (Free Tier Available) (Apply for API Key)
export OPENAI_API_KEY="your_api_key_here"
export OPENAI_BASE_URL="https://openrouter.ai/api/v1"
export OPENAI_MODEL="qwen/qwen3-coder:free"

