Skip to content

Connecting Qwen Code to NordRouter ​

Qwen Code can use an arbitrary OpenAI-compatible endpoint.

Quick start ​

powershell
qwen --openai-api-key "$env:NORDROUTER_API_KEY" `
  --openai-base-url "https://nordrouter.com/v1" `
  --model "anthropic/claude-sonnet-4.6"

For macOS/Linux, replace the PowerShell wraps with \ and the variable with $NORDROUTER_API_KEY.

Constant customization ​

In the configuration, add OpenAI-compatible provider with the address https://nordrouter.com/v1, the key variable NORDROUTER_API_KEY and the full model ID. It is better to store the key in an environment variable rather than directly in JSON.

Official information:Model Providers in Qwen Code.

All programs·Common mistakes