Skip to main content

Qwen

Qwen is Alibaba’s model family. WednesdayAI integrates with Qwen through a portal OAuth flow (no API key required) that gives free-tier access to Qwen Coder and Qwen Vision models — up to 2,000 requests per day, subject to Qwen rate limits.

Prerequisites

Quick setup

1. Enable the plugin

openclaw plugins enable qwen-portal-auth
Restart the gateway after enabling:
openclaw gateway restart

2. Authenticate

openclaw models auth login --provider qwen-portal --set-default
This runs the Qwen device-code OAuth flow and writes a provider entry to your models.json, plus a qwen alias for quick switching.

3. Configure

{
  agents: {
    defaults: {
      model: { primary: "qwen-portal/coder-model" },
    },
  },
}

Provider settings

SettingValue
Provider IDqwen-portal
Base URLhttps://portal.qwen.ai/v1
AuthDevice-code OAuth (no API key)
Daily limit2,000 requests

Available models

Model IDNotes
qwen-portal/coder-modelQwen Coder — optimised for coding tasks
qwen-portal/vision-modelQwen Vision — multimodal input
Switch models:
openclaw models set qwen-portal/coder-model

Reuse existing Qwen Code CLI login

If you already logged in with the Qwen Code CLI, WednesdayAI syncs credentials from ~/.qwen/oauth_creds.json when it loads the auth store. You still need a models.providers.qwen-portal entry — run the login command above to create one.

Verification

openclaw models status --probe-provider qwen-portal

Troubleshooting

Tokens auto-refresh; if refresh fails, re-run openclaw models auth login --provider qwen-portal to re-authenticate.
The free tier allows 2,000 requests per day. Check your usage on the Qwen portal dashboard.
Ensure the qwen-portal-auth plugin is listed in openclaw plugins list. Re-enable with openclaw plugins enable qwen-portal-auth and restart the gateway.