Qwen Code
Qwen Code를 DeepSeek API에 연결하기
Connect Qwen Code to the DeepSeek API with its built-in third-party provider — just add your API key and pick a model. This guide covers installation, configuration, troubleshooting, and low-cost coding agent workflows.
- GitHub: https://github.com/QwenLM/qwen-code
- Docs: https://qwenlm.github.io/qwen-code-docs/en/users/overview/
1. Install Qwen Code
- Install Node.js 20 or later.
- Install Qwen Code:
npm install -g @qwen-code/qwen-code@latest
Or via the quick-install script:
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash
Or Homebrew:
brew install qwen-code
- Verify:
qwen --version
2. Get a DeepSeek API Key
Go to the DeepSeek Platform, create an API key, and copy it.
3. Configure DeepSeek via /auth
Launch Qwen Code, then run the /auth command:
qwen
Inside the interactive session:
/auth
The /auth menu will appear. Follow these steps:
- Select Third-party Providers
- Select DeepSeek API Key
- Step 1/2 — paste your DeepSeek API key and press Enter
- Step 2/2 — confirm the model IDs:
deepseek-v4-pro, deepseek-v4-flash(or edit if needed), press Enter
After confirmation, you'll see: Successfully configured DeepSeek API Key.
4. Switch to a DeepSeek Model
Run the /model command and select deepseek-v4-pro or deepseek-v4-flash:
/model
You're ready to go. Qwen Code will now use DeepSeek V4 models for coding.
Tip: Use
/modelto switch between models at any time. Use/authagain if you need to reconfigure your API key.