← Catalog

pi-qwencloud-token-plan-provider

Qwen Cloud Token Plan provider extension for pi — access Qwen, DeepSeek, GLM models via the Token Plan endpoint

ExtensionProvider

Install

Install with PiG

pig install npm:pi-qwencloud-token-plan-provider

Install with Pi

pi install npm:pi-qwencloud-token-plan-provider
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.0.0 (README.md). PiG does not review it.

☁️ pi-qwencloud-token-plan-provider

Qwen Cloud Token Plan provider for pi

Qwen, GLM, DeepSeek — with proper thinking level support via the Token Plan endpoint.

pi extension license


Features

  • 6 text models — Qwen3.8 Max Preview, Qwen3.7 Max/Plus, Qwen3.6 Flash, GLM 5.2, DeepSeek V4 Pro
  • Thinking support — enable_thinking for every model, with native reasoning_effort levels for GLM and DeepSeek
  • Vision models — Qwen3.8 Max Preview, Qwen3.7 Plus, Qwen3.6 Flash accept image input
  • 1M context — all models support up to 1M token context windows
  • Zero config — just set your API key and go

Supported Models

ModelContextReasoningVisionThinking Control
qwen3.8-max-preview1M✅✅on/off (enable_thinking)
qwen3.7-max1M✅—on/off (enable_thinking)
qwen3.7-plus1M✅✅on/off (enable_thinking)
qwen3.6-flash1M✅✅on/off (enable_thinking)
glm-5.21M✅—7 levels (reasoning_effort)
deepseek-v4-pro1M✅—off, low, medium, high, xhigh, max

GLM 5.2 Thinking Levels

GLM 5.2 supports named reasoning effort levels mapped to pi's thinking selector:

pi LevelGLM reasoning_effort
offnone
minimalminimal
lowlow
mediummedium
highhigh
xhighxhigh
maxmax

Installation

pi install npm:pi-qwencloud-token-plan-provider
# or from GitHub
pi install https://github.com/uttkarsh-26/pi-qwencloud-token-plan-provider

Option 2: Manual

git clone https://github.com/uttkarsh-26/pi-qwencloud-token-plan-provider.git
pi -e /path/to/pi-qwencloud-token-plan-provider

Authentication

Token Plan API keys start with sk-sp- (different from regular Qwen Cloud sk- keys).

Add to ~/.pi/agent/auth.json:

{
  "qwen-cloud": {
    "type": "api_key",
    "key": "sk-sp-your-token-plan-key"
  }
}

Option 2: Environment variable

export QWEN_CLOUD_API_KEY=sk-sp-your-token-plan-key

Get your API key from the Token Plan console.

Plans

PlanPrice5h Limit7d LimitConcurrency
Lite$8/mo700 Credits2,500 Credits1-2 agents
Standard$25/mo3,000 Credits10,000 Credits3-4 agents
Pro$80/mo12,000 Credits40,000 Credits6-8 agents

Usage

After installation, select a model with /model or:

pi --provider qwen-cloud --model qwen3.8-max-preview

Notes

  • Costs show as $0 — Token Plan uses Credits-based billing, not per-token pricing
  • The developer role is not supported; the extension sends system instead
  • Token Plan is for interactive use only — no automated scripts or batch processing
  • Region: Singapore (global inference)

License

MIT