Last updated

Qwen Plan in Codex — Alibaba Model Studio | Codex Router

Qwen Plan in Codex means routing the Alibaba Model Studio plan into the Codex picker through Codex Router. Provider id qwen-plan points at the token-plan endpoint and is key-only, because Alibaba discontinued the Qwen Code OAuth free tier on 2026-04-15.

What qwen-plan is

The plan endpoint uses an Alibaba Model Studio plan key and covers every chat model the Individual Plan serves, including cross-vendor models it resells. Since the OAuth free tier ended, the plan key is the sole Qwen surface. The provider is API-key only.

Enable the plan

Install Codex Router first (see the install guide), then store the plan key and enable the provider:

  1. Create a Model Studio plan key in the Alibaba console.
  2. Store it with the hidden prompt.
  3. Enable the provider and restart Codex.
./bin/model-router codex provider-key qwen-plan set
./bin/model-router codex providers enable qwen-plan

On Windows use ./model-router.ps1 codex with the same commands. Then fully quit Codex, reopen it, and create a new task.

Pay-as-you-go DashScope

A plan key is separate from a pay-as-you-go Model Studio key. To bill a DashScope key through the same provider, point the base URL at DashScope’s compatible mode:

export QWEN_PLAN_BASE_URL="https://dashscope-intl.aliyuncs.com/compatible-mode/v1"

The cross-vendor entries use DashScope’s compatible-mode request profile because DashScope rejects each vendor’s native thinking parameters. Plan keys use the sk-sp- prefix, and Alibaba reserves plan endpoints for interactive coding tools.

Registry models

These models ship in the registry:

Picker labelModel ID
Qwen3.8 Maxqwen-plan/qwen3.8-max
Qwen3.8 Max Previewqwen-plan/qwen3.8-max-preview
Qwen3.7 Maxqwen-plan/qwen3.7-max
Qwen3.7 Plusqwen-plan/qwen3.7-plus
Qwen3.6 Flashqwen-plan/qwen3.6-flash
DeepSeek V4 Proqwen-plan/deepseek-v4-pro
DeepSeek V4 Flashqwen-plan/deepseek-v4-flash-0731
GLM-5.2qwen-plan/glm-5.2

The DeepSeek and GLM entries are cross-vendor models the plan resells under the same key and quota.

Quota visibility

Alibaba publishes no quota or balance API on either the token-plan endpoint or DashScope. The tray therefore shows router-observed traffic rather than a provider-reported balance, and it links to the Alibaba console so you can check actual spend.

Verify the integration

./bin/model-router codex doctor
./bin/model-router codex providers
./bin/test-model 'qwen-plan/qwen3.8-max' --live --yes

The provider must report SHOW and ready. If entries are missing, see models missing from the picker.

Provider policy

Alibaba may restrict or block proxy traffic. Routing the Qwen plan through Codex Router is at your own risk; check Alibaba’s terms before relying on it.

FAQ

What is the Qwen plan in Codex? qwen-plan is Codex Router’s provider for the Alibaba Model Studio plan key, pointing at the token-plan endpoint. It is the sole Qwen surface now that the Qwen Code OAuth free tier is gone.

Can I use a pay-as-you-go DashScope key? Yes. Set QWEN_PLAN_BASE_URL to https://dashscope-intl.aliyuncs.com/compatible-mode/v1 to bill a pay-as-you-go DashScope key through the same provider.

Does the router show my Qwen balance? No. Alibaba publishes no quota or balance API on either endpoint, so the tray shows router-observed traffic and links to the console for actual spend.

Related: models overview, GLM in Codex, DeepSeek in Codex, installation.