SuperQode
Alibaba Cloud
Token Plan
Qwen4-Max
CLI · TUI · macOS

Frontier Chinese Intelligence with Alibaba Cloud: Model Studio and Token Plan in SuperQode

Last week we integrated Alibaba Cloud Model Studio. This week we completed full Alibaba Cloud Token Plan support—bringing Qwen4-Max and frontier Chinese models into SuperQode’s harnesses across macOS, the Terminal TUI, the Harness Wizard, and the CLI.

December 1, 2026
6 min read
By Superagentic AI
Frontier Chinese Intelligence with Alibaba Cloud: Model Studio and Token Plan in SuperQode

SuperQode • Alibaba Cloud • Model Studio & Token Plan

Frontier Chinese Intelligence with Alibaba Cloud: Model Studio and Token Plan in SuperQode

Last week, we integrated Alibaba Cloud Model Studio into SuperQode for regional pay-as-you-go workspaces. This week, we completed full native support for the Alibaba Cloud Token Plan across the Mac app, the Terminal TUI, the Harness Wizard, and the CLI.

Together, Model Studio and Token Plan form one complete package. Whether you hold a regional pay-as-you-go key or a credit-pooled Token Plan subscription key (sk-sp-), you can connect once and run Qwen4-Max alongside Qwen 3.8, Qwen 3.7, GLM-5.3, DeepSeek V4, Kimi, and MiniMax inside SuperQode's harnesses—while tools, approvals, diffs, and checkpoints stay on your machine.

Alibaba Cloud Token Plan

Coding agent loops resend repository context across dozens of turns, which can make raw per-token billing unpredictable. Alibaba Cloud's Token Plan (alibaba-token-plan) replaces per-call billing with a monthly Credit pool across Personal (Lite through Pro) and Team seats, routing dedicated sk-sp- keys through two official hubs: Singapore (token-plan.ap-southeast-1.maas.aliyuncs.com) and Beijing (token-plan.cn-beijing.maas.aliyuncs.com).

In the Mac app, open Connect and select Alibaba Token Plan. Choose Singapore (Intl) or Beijing (China), paste your sk-sp- key, and click Load Token Plan models to list every model active on your subscription before saving. Select qwen4-max, run Test model, and start coding.

Alibaba Cloud Token Plan with Qwen4-Max in SuperQode — Watch on YouTube

Alibaba Cloud Model Studio

Model Studio Pay-As-You-Go (qwen-intl and qwen-cn) uses consumption-based billing inside a regional workspace across Singapore, US Virginia, Frankfurt (EU data residency), and Beijing. Paste your key and regional workspace endpoint into Alibaba Model Studio, click Load workspace models, and verify calls in Model Studio's audit log. If you accidentally paste an sk-sp- key on this screen, SuperQode automatically switches you to Token Plan instead of saving a mismatched route.

Pay-as-you-go is also the route for autonomous workloads—including Factory Studio trials, evaluations, and headless CI runs—where Token Plan's interactive-only boundary does not apply. A third Alibaba tier, Coding Plan, uses rolling request caps, excludes qwen4-max, and stays scoped to Qwen Code over ACP via :connect qwen-code.

Alibaba Cloud Model Studio with Qwen4-Max in SuperQode — Watch on YouTube

Engineered for Qwen4-Max and SuperQode Harnesses

Frontier reasoning models need more than an OpenAI-compatible base URL. SuperQode shapes Model Studio and Token Plan traffic at the gateway and harness layers so qwen4-max and Alibaba's partner models work reliably out of the box.

1M context and safe output floors. SuperQode publishes qwen4-max's 1,000,000-token context window and enriches live-discovered models so sessions do not compact prematurely. Because qwen4-max shares one output budget between thinking and the final answer, SuperQode automatically raises short caps to a max_completion_tokens floor (32,768 with thinking on; 8,192 with thinking off) so replies never clip mid-thought.

Adaptive reasoning and prompt caching. Unset effort starts at low for qwen4-max instead of the API's expensive high default, while explicit effort levels map natively across qwen4-max, qwen3.8-*, qwen3.7-plus, glm-5.3 (required reasoning), and deepseek-v4 Pro and Flash. Long system prefixes are marked for explicit 5-minute prompt caching, and cloud Model Studio routes are shielded from local quantization packs so parallel native tool calling stays enabled.

One connection across every native harness. Connecting Alibaba Cloud once makes qwen4-max available in Workbench, Core, PiPy (with live reasoning controls), RLM (propagating credentials and endpoints to recursive child workers), and SystemOne. Interactive thread compaction works cleanly on Token Plan, and switching harnesses mid-session with :harness switch keeps your active model and region intact.

CLI, Terminal TUI, and Harness Wizard

superqode auth login validates key prefixes, prompts for Singapore or Beijing on Token Plan (or an optional workspace URL on Model Studio), and saves both key and endpoint in ~/.superqode/auth.json. Environment variables remain supported and take precedence when set.

Shell
# Token Plan (validates sk-sp- key and prompts for Singapore or Beijing)
superqode auth login alibaba-token-plan

# Model Studio pay-as-you-go (stores key + regional workspace endpoint)
superqode auth login qwen-intl

# List live models and verify Qwen4-Max
superqode models --provider alibaba-token-plan --live
superqode providers test alibaba-token-plan --model qwen4-max

In the Terminal TUI, saved keys appear under Ready — key found in :connect, or you can connect and switch harnesses directly:

Terminal
:connect plan-alibaba-models
:connect byok alibaba-token-plan qwen4-max
:connect byok qwen-intl qwen4-max
:harness switch pipy

To commit a repeatable Alibaba Cloud harness to Git, run the Harness Wizard or scaffold one of the two new cloud templates—qwen4-coding (Model Studio) or alibaba-token-plan-coding (Token Plan):

Shell
superqode harness wizard
superqode harness init qwen4-dev --template qwen4-coding --output harness.yaml
superqode harness init token-plan-dev --template alibaba-token-plan-coding --output harness.yaml

Each template generates a ready-to-run harness.yaml with 1M context, parallel native tools, and sensible fallbacks:

YAML
version: 1
name: qwen4-dev
model_policy:
  primary: qwen-intl/qwen4-max
  fallbacks:
    - qwen-intl/qwen3.8-max
    - qwen-intl/qwen3.8-flash
  profile: qwen4-coding
  context_window: 1000000
  reasoning: low
  config:
    parallel_tools: true
    session_history_limit: 40

Current Limitation

Alibaba Cloud Token Plan is strictly for interactive coding. SuperQode blocks alibaba-token-plan upfront on headless superqode -p runs, automated evaluations, and autonomous Factory Studio trials, directing you to a metered Model Studio route (qwen-intl or qwen-cn) instead. Coding Plan keys remain separate from Token Plan and stay scoped to Qwen Code via :connect qwen-code.

Try It

Install or update SuperQode, sign in with your Alibaba Cloud key, and start a session:

Shell
curl -fsSL https://superqode.dev/install.sh | sh
superqode auth login alibaba-token-plan
superqode

Download SuperQode for macOS (Apple Silicon, signed and notarized) or install with uv tool install superqode. For detailed endpoint and region setup, see the Alibaba Cloud & Qwen setup guide and Alibaba Cloud Model Studio documentation.

📚 Our blogs are also published on

Follow along wherever you already read

💡 Found this helpful? Share it with your network and help others discover these insights!

Try Alibaba Cloud in SuperQode

Run Qwen4-Max Through Any SuperQode Harness

Connect Alibaba Cloud Token Plan or Model Studio in the Mac app, Terminal TUI, Harness Wizard, or CLI—with 1M context, adaptive reasoning, and full harness control.