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

@aiwayds/pi-bailian-token-plan

v1.1.1

Published

阿里云百炼 Token Plan 扩展 - 支持千问、DeepSeek、GLM 等模型

Readme

Pi 百炼 Token Plan 扩展

为 Pi 添加阿里云百炼 Token Plan 的 AI 模型支持。

可用模型

| 模型 | 上下文 | 最大输出 | 推理 | 视觉 | |------|--------|----------|------|------| | qwen3.8-max-preview | 1M | 65,536 | ✅ | ✅ | | qwen3.8-max | 1M | 65,536 | ✅ | ✅ | | qwen3.7-plus | 1M | 65,536 | ✅ | ✅ | | qwen3.7-max | 262K | 65,536 | ✅ | ❌ | | qwen3.6-flash | 1M | 65,536 | ✅ | ✅ | | deepseek-v4-flash-0731 | 1M | 65,536 | ✅ | ❌ | | deepseek-v4-pro | 262K | 65,536 | ✅ | ❌ | | glm-5.2 | 202K | 16,384 | ✅ | ❌ |

安装

使用 pi 从 GitHub 安装:

pi install https://github.com/fan56/pi-bailian-token-plan

安装后扩展会位于 ~/.pi/agent/extensions/pi-bailian-token-plan/ 目录。

使用方法

  1. 启动 Pi

    pi
  2. 登录

    • 在 Pi 中输入 /login
    • 选择 “bailian-tp” 提供商
    • 输入你的 百炼 Token Plan API 密钥(以 sk- 开头)
  3. 选择模型

    • 使用 /model 命令选择模型
    • 或使用 Ctrl+P 循环切换模型

API 密钥获取

访问 阿里云百炼控制台 - Token Plan 获取 API 密钥。

注意事项

  • Token Plan 是订阅制服务,不按 tokens 计费
  • API 密钥以 sk- 开头
  • Base URL: https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1

支持的功能

  • ✅ 文本生成
  • ✅ 推理模型(支持扩展思考)
  • ✅ 视觉理解(部分模型)

许可证

MIT License