Token Plan (Team Edition)
Best for assigned users who want Credits-based access, team administration, and the broader Token Plan model pool.
Tool + model pairing
Open-source CLI coding tool with Alibaba Model Studio authentication and model switching.
Qwen Code is the most direct Alibaba-aligned terminal workflow. It provides a guided `/auth` flow for Token Plan, Coding Plan, and pay-as-you-go, plus explicit model switching and shared configuration for its IDE companions.
Choose the right access route
Start here if you want the least ambiguous setup. Use `/auth` instead of hand-editing configuration unless you need several named models or reproducible team setup instructions.
Best for assigned users who want Credits-based access, team administration, and the broader Token Plan model pool.
Best for one developer who wants a fixed monthly interactive-coding allowance and is comfortable with rolling and weekly request quotas.
Use for application code, automation, CI, batch evaluation, or any direct API workload outside Qwen Code's interactive session.
Safe configuration pattern
The example is deliberately redacted. Replace placeholders only on your device and never paste a real API key into Nfero.
~/.qwen/settings.json (macOS/Linux) or %USERPROFILE%\.qwen\settings.json (Windows){
"env": {
"BAILIAN_TOKEN_PLAN_API_KEY": "YOUR_TOKEN_PLAN_API_KEY"
},
"modelProviders": {
"openai": [{
"id": "qwen3.7-plus",
"name": "[Token Plan Team Edition] qwen3.7-plus",
"baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
"envKey": "BAILIAN_TOKEN_PLAN_API_KEY"
}]
},
"security": { "auth": { "selectedType": "openai" } },
"model": { "name": "qwen3.7-plus" },
"$version": 3
}Model pairings
Use this tool to run interactive coding, reasoning, review, and documentation tasks with each model. Confirm final model availability and exact plan support in Alibaba Cloud before production use.
Recommended current default for Coding Plan and a capable Token Plan coding model.
Strong long-context alternative for larger repositories and multi-step agent work.
Fast, efficient Token Plan option for small edits and routine explanations.
Common problems
A general Model Studio key was used with a plan endpoint, or a plan key was paired with the wrong endpoint.
Return to `/auth`, select the actual subscription, and re-enter that subscription's dedicated key.
The model was not added to `modelProviders`, the ID is not exact, or Qwen Code has not reloaded the file.
Check the current allowlist, correct the ID, save `settings.json`, and restart Qwen Code.
Repository context and conversation history exceed the model's input limit.
Use `/compress`, start a new session, narrow the working directory, or switch to a documented longer-context model.
Qwen Code is using a general Model Studio key or general endpoint instead of the dedicated plan pair.
Check `/auth` and the endpoint in `settings.json`; both the key and URL must belong to the subscribed plan.