← Catalog

pi-qwen_dashscope

Alibaba DashScope (ModelStudio / 百炼) provider for oh my pi — Qwen3, GLM-5, Kimi K2.5, MiniMax via OpenAI-compatible API, with dynamic full-catalog model discovery

Package

Install

Install with PiG

pig install npm:pi-qwen_dashscope

Install with Pi

pi install npm:pi-qwen_dashscope
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": [
    "./index.ts"
  ]
}

README

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

pi-qwen_dashscope

Alibaba DashScope (ModelStudio / 百炼) provider for pi.dev — a drop-in replacement for pi-dashscope that fixes the endpoint and makes the model list dynamic.

Why this fork exists

The upstream pi-dashscope has two problems this package fixes:

  1. Wrong endpoint. It defaults to coding-intl.dashscope.aliyuncs.com/v1, which returns 401 for standard API keys (it can list models but cannot chat). This package uses the correct OpenAI-compatible endpoint https://dashscope.aliyuncs.com/compatible-mode/v1.
  2. Static model list. Upstream hard-codes ~8 models. This package fetches the full catalog from DashScope's /v1/models, so you get every available dashscope/... model (200+) instead of a fixed short list.

What you get

  • On load: 8 curated models with hand-tuned metadata (context window, thinking format) as a fallback.
  • On /login (after the key is saved) and /refresh-models: the full live catalog is discovered and registered on top of the curated set (curated entries always win on id collision).
  • Credentials use pi's standard auth system: run /login, pick dashscope, paste your key. /logout removes it. No extra config files.

Dynamically discovered models use best-effort heuristics for metadata (context window / thinking format inferred from the model id). They chat fine; if a specific model needs precise metadata, add it to the curated list in index.ts.

Install

pi install npm:pi-qwen_dashscope

If you currently use pi-dashscope, remove it from your settings.json packages array first to avoid double-registration of the dashscope provider.

Login & Logout(登录 / 退出)

This package uses pi's built-in /login and /logout — no custom commands. DashScope credentials are managed by pi's standard credential store, exactly like every other provider.

Command作用
/login → choose dashscope交互式输入并保存你的 DashScope API key。
/logout → choose dashscope删除已保存的 API key。
/login      # 选 dashscope,粘贴 key
/logout     # 选 dashscope,清除 key
  • After /login, pi refreshes the model list and registers the full live catalog (200+ models) on top of the 8 curated ones.
  • The DASHSCOPE_API_KEY environment variable is also supported and takes precedence at request time over a key saved via /login:
export DASHSCOPE_API_KEY=sk-...

Get your key from the Model Studio console.

Use

In pi, press /model or Ctrl+L and pick a dashscope/... model. Use Ctrl+T to toggle thinking for models that support it.

Curated models:

IDNameContextOutputThinking
qwen3.5-plusQwen 3.5 Plus960K64K✅
qwen3-max-2026-01-23Qwen3 Max (2026-01-23)252K32K✅
qwen3-coder-plusQwen3 Coder Plus975K64K❌
qwen3-coder-nextQwen3 Coder Next200K64K❌
glm-4.7GLM-4.7166K16K✅
glm-5GLM-5200K16K✅
minimax-m2.5MiniMax M2.5192K64K✅
kimi-k2.5Kimi K2.5252K32K✅

…plus every other model DashScope returns from /v1/models.

License

MIT