npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-qwencloud-token-plan-provider

v1.0.0

Published

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

Downloads

105

Readme

☁️ 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 supportenable_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

| Model | Context | Reasoning | Vision | Thinking Control | |-------|---------|-----------|--------|-----------------| | qwen3.8-max-preview | 1M | ✅ | ✅ | on/off (enable_thinking) | | qwen3.7-max | 1M | ✅ | — | on/off (enable_thinking) | | qwen3.7-plus | 1M | ✅ | ✅ | on/off (enable_thinking) | | qwen3.6-flash | 1M | ✅ | ✅ | on/off (enable_thinking) | | glm-5.2 | 1M | ✅ | — | 7 levels (reasoning_effort) | | deepseek-v4-pro | 1M | ✅ | — | 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 Level | GLM reasoning_effort | |----------|----------------------| | off | none | | minimal | minimal | | low | low | | medium | medium | | high | high | | xhigh | xhigh | | max | max |

Installation

Option 1: pi install (Recommended)

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).

Option 1: auth.json (recommended)

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

| Plan | Price | 5h Limit | 7d Limit | Concurrency | |------|-------|----------|----------|-------------| | Lite | $8/mo | 700 Credits | 2,500 Credits | 1-2 agents | | Standard | $25/mo | 3,000 Credits | 10,000 Credits | 3-4 agents | | Pro | $80/mo | 12,000 Credits | 40,000 Credits | 6-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)

Links

License

MIT