Qwen
Qwen provides a free-tier OAuth flow for Qwen Coder and Qwen Vision models (2,000 requests/day, subject to Qwen rate limits).
Enable the plugin
Section titled “Enable the plugin”openclaw plugins enable qwen-portal-authRestart the Gateway after enabling.
Authenticate
Section titled “Authenticate”openclaw models auth login --provider qwen-portal --set-defaultThis runs the Qwen device-code OAuth flow and writes a provider entry to your models.json (plus a qwen alias for quick switching).
Model IDs
Section titled “Model IDs”qwen-portal/coder-modelqwen-portal/vision-model
Switch models with:
openclaw models set qwen-portal/coder-modelReuse Qwen Code CLI login
Section titled “Reuse Qwen Code CLI login”If you already logged in with the Qwen Code CLI, OpenClaw will sync credentials from ~/.qwen/oauth_creds.json when it loads the auth store. You still need a models.providers.qwen-portal entry (use the login command above to create one).
- Tokens auto-refresh; re-run the login command if refresh fails or access is revoked.
- Default base URL:
https://portal.qwen.ai/v1(override withmodels.providers.qwen-portal.baseUrlif Qwen provides a different endpoint). - See Model providers for provider-wide rules.