Open sourceOpenAI-compatibleAlibaba Qwen
Qwen Code
Open-source agent tuned for Qwen, OpenAI-compatible.
Qwen Code reads three environment variables for OpenAI-compatible access: the key, the base URL, and the model. That's all it takes to point it at any compatible provider.
Setup steps
- 1
Install Qwen Code
Requires Node.js 20 or newer. Installs the global qwen command.
bashnpm install -g @qwen-code/qwen-code - 2
Set the three variables
Provide your key, the endpoint URL, and the model id. On Windows use setx and reopen the terminal.
bash / zshexport OPENAI_API_KEY="your-api-key" export OPENAI_BASE_URL="https://api.example.com/v1" export OPENAI_MODEL="your-model-name" - 3
Start coding
Run it inside your project folder to start working with the model.
bashqwen
Tip: It works with DashScope, OpenRouter, ModelScope and self-hosted servers, anything exposing an OpenAI-compatible endpoint.
Pick a cheaper model or provider first, then plug its key and endpoint into the steps above. Compare prices · Browse providers