← Catalog

pi-provider-alibaba-universal

Alibaba Cloud Model Studio providers for Pi — all plans, all chat models, correct reasoning controls

ExtensionProvider

Install

Install with PiG

pig install npm:pi-provider-alibaba-universal

Install with Pi

pi install npm:pi-provider-alibaba-universal
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 1.0.2 (README.md). PiG does not review it.

pi-provider-alibaba-universal

CI

Alibaba Cloud Model Studio providers for Pi.

Six providers covering every Alibaba plan — Coding Plan, Token Plan, and Pay-as-you-go — across both international and Chinese endpoints. All chat models appear with correct reasoning levels, context windows, and input types without extra configuration.

Providers

Provider IDPlanEndpoint
alibaba-coding-intlCoding Plan (Intl)coding-intl.dashscope.aliyuncs.com
alibaba-coding-cnCoding Plan (CN)coding.dashscope.aliyuncs.com
alibaba-token-intlToken Plan (Intl)token-plan.ap-southeast-1.maas.aliyuncs.com
alibaba-token-cnToken Plan (CN)token-plan.cn-beijing.maas.aliyuncs.com
alibaba-api-intlDashScope API (Intl)dashscope-intl.aliyuncs.com
alibaba-api-cnDashScope API (CN)dashscope.aliyuncs.com

Install

Do not install this package together with pi-provider-alibaba or pi-provider-alibaba-complete: all three register the same provider IDs.

pi install npm:pi-provider-alibaba-universal

Or try it for a single session:

pi -e npm:pi-provider-alibaba-universal

Configure

Set the credential for the product you purchased, restart Pi, then select the matching provider and model:

# Token Plan
export ALIBABA_TOKEN_PLAN_API_KEY="<your-token-plan-key>"

# Coding Plan
export ALIBABA_CODING_API_KEY="<your-coding-plan-key>"

# Pay-as-you-go DashScope API
export ALIBABA_API_KEY="<your-api-key>"

China and international routes use different endpoints. Select the route matching your key's product and region.

Token Plan models

The Token Plan providers ship with a complete static catalog of all 12 chat-capable models documented by Alibaba, available immediately without waiting for API discovery:

ModelReasoningInputContextMax output
auto— (router)text128K8K
qwen3.8-maxlow · medium · xhightext · image1M128K
qwen3.8-flashoff · hightext · image1M64K
qwen3.7-maxoff · hightext1M64K
qwen3.7-plusoff · hightext · image1M64K
qwen3.6-flashoff · hightext · image1M64K
deepseek-v4.1-flashoff · high · maxtext · image1M384K
deepseek-v4-prooff · high · maxtext1M384K
deepseek-v4-pro-0813off · low · high · maxtext1M384K
deepseek-v4-flash-0731off · low · high · maxtext1M384K
glm-5.3off · high · maxtext1M128K
glm-5.2off · high · maxtext1M128K

Multimodal generation models (qwen-image-3.0-pro, qwen-audio-*, wan2.7-*, happyhorse-*) are excluded because they use dedicated non-chat endpoints. See Alibaba's multimodal integration guide.

Coding Plan and API models

Coding Plan and DashScope API providers use dynamic model discovery via the /v1/models endpoint. Open /model in Pi to refresh the list. Models appear with correct capability metadata even when discovered dynamically.

Reasoning controls

Model familySelectable levelsWire format
DeepSeek V4 (current)off · high · maxenable_thinking + reasoning_effort
DeepSeek V4 (dated 0813/0731)off · low · high · maxenable_thinking + reasoning_effort
Qwen 3.8 Maxlow · medium · xhighenable_thinking + reasoning_effort
Qwen 3.6 / 3.7 / 3.8 Flashoff · highenable_thinking only
GLM-5off · high · maxenable_thinking + reasoning_effort

All providers use system role, max_tokens field, and Alibaba's enable_thinking wire format. Unknown model families stay conservative until their protocol is confirmed.

Model refresh

Pi refreshes the model list each time you open /model:

  • Token Plan: the static catalog is always present. Dynamic discovery adds any newly released models without replacing existing entries.
  • Coding Plan / API: dynamic discovery replaces the current list with fresh results from the endpoint.

Verification

npm install
npm run verify

Runs typecheck, 38 tests, and packaging dry-run.

License

MIT

Acknowledgments

This package is based on the provider architecture and capability projection work from:

  • dinhe/pi-provider-alibaba — the original Alibaba Cloud provider for Pi, which established the route, transport, and authentication layer for all six Alibaba endpoints.
  • weijiafu14/pi-provider-alibaba-complete — which added the first reasoning capability projection, model-specific compatibility switches, and wire-format verification.

This package extends that foundation with a static-first model catalog for Token Plan, expanded capability mappings for newer models, and a dynamic merge strategy that preserves curated metadata across refreshes.