-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Feature]: Alibaba Model Studio Token Plan (Team Edition) provider #94418
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Type
Fields
Priority
None yet
Summary
First-class support for the Alibaba Cloud Model Studio Token Plan (Team Edition) as a
qwen-token-planprovider in the bundled qwen plugin.Problem to solve
The qwen plugin already covers the Qwen Coding Plan, Standard pay-as-you-go, and Portal/OAuth, but not the Token Plan (Team Edition). The Token Plan is a separate prepaid subscription that Alibaba steers coding and agent users toward, and it ships its own recommended OpenClaw config. Today a Token Plan user has to hand-roll a custom provider (base URL, model list, thinking handling), which is fiddly and easy to get wrong, and it is not discoverable through onboarding.
Proposed solution
Add
qwen-token-planto the qwen plugin on the OpenAI-compatible gateway (/compatible-mode/v1), with two regions (Global / Singapore and CN / Beijing) selected by a base-URL swap, env varQWEN_TOKEN_PLAN_API_KEY, the plan's full chat-model catalogue, and reasoning. Reuse the existing qwen transport and thinking machinery so it behaves like the sibling Coding Plan and Standard providers. Keepbailian-token-plan(the id Alibaba's own recommended config uses) as a compatibility alias. Result:openclaw onboard --auth-choice qwen-token-plan(orqwen-token-plan-cn) gives a working provider with no manual config.Alternatives considered
openclaw.json. Works, but error-prone and not discoverable through onboarding./apps/anthropic). Also works, but the OpenAI-compatible surface keeps the provider consistent with the sibling qwen providers and reuses their thinking handling, so it is the lower-divergence choice.Impact
Evidence/examples
bailian-token-plan).Additional information
I have an implementation ready and will open a PR that links this issue. This would be my first contribution to the repo.