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-provider-volcengine-codingplan

v0.5.2

Published

Pi extension for Volcengine Coding Plan, registering Volcengine as a custom OpenAI-compatible provider for domestic coding models.

Readme

pi-provider-volcengine-codingplan

npm version MIT License

给 pi 增加火山引擎 Coding Plan 国内版模型支持的扩展包。安装后会注册 volcengine-plan provider。

功能概览

  • 注册火山引擎 Coding Plan provider,兼容 pi 的 OpenAI 风格调用路径
  • 凭据通过 pi /login 录入(存入 pi keychain)
  • 覆盖火山引擎 Coding Plan 当前完整模型集合
  • 直接使用国内版 Coding Plan endpoint,而不是基础模型 endpoint

安装

pi install npm:pi-provider-volcengine-codingplan

使用方式

交互式选择模型

pi

进入后:

  1. 执行 /login,录入火山引擎方舟 API Key(存入 pi keychain,无需配置环境变量)
  2. 执行 /model,从列表中选择 volcengine-plan 下面的模型

命令行直接指定模型

推荐始终使用完整 provider/model 语法,避免与内置 provider 的同名模型冲突:

pi --model volcengine-plan/doubao-seed-2.0-code
pi --model volcengine-plan/glm-5.2
pi --model volcengine-plan/deepseek-v4-pro
pi --model volcengine-plan/kimi-k2.7-code

提示:pi --list-models 只列 pi 内置 catalog,不会展示扩展注册的模型,所以看不到 volcengine-plan 下的条目(不代表没装好)。查看本 provider 的模型请用交互式 /model,或直接看下方「可用模型」表。

如果你要把它设成默认模型,可以参考下面的配置思路:

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "volcengine-plan/doubao-seed-2.0-code"
      }
    }
  }
}

可用模型

| Model ID | Context Window | Max Tokens | Input | Reasoning | |----------|----------------|------------|-------|-----------| | doubao-seed-evolving | 1024000 | 256000 | text, image | yes | | doubao-seed-2-1-pro | 1024000 | 256000 | text, image | yes | | doubao-seed-2-1-lite | 1024000 | 256000 | text, image | yes | | doubao-seed-2-0-mini | 256000 | 128000 | text, image | yes | | kimi-k3.1-pro | 1024000 | 128000 | text, image | yes | | deepseek-v4-1-flash | 1024000 | 384000 | text, image | yes | | deepseek-v4-1-flash-economy | 1024000 | 384000 | text, image | yes | | kimi-k2-8-preview | 256000 | 32000 | text, image | yes | | glm-5-3-flash | 1024000 | 128000 | text, image | yes | | glm-5.3 | 1048576 | 128000 | text | yes | | deepseek-v4-pro | 1024000 | 384000 | text | yes | | deepseek-v4-flash | 1024000 | 384000 | text | yes | | kimi-k3 | 1048576 | 32000 | text, image | yes | | kimi-k2.7-code | 256000 | 32000 | text, image | yes |

模型清单由维护者通过 arkcli plans model-list --plan coding-plan + arkcli models get 实测生成(见 scripts/sync-models.ts),存于 registry/models.json。

模型清单与自动更新

本扩展启动时会从远端拉取最新模型清单,无需升级插件即可用到方舟新增的套餐模型:

  • 启动时按顺序 fetch 公开清单(每源 5s 超时):jsDelivr CDN 优先(国内一般可达),GitHub raw 兜底
  • 任一源拉取成功 -> 用清单中的模型动态注册
  • 全部源失败 / 超时 / 格式错 -> 回退到插件打包的静态清单(extensions/fallback-models.ts),离线仍可用
  • 可通过环境变量 VOLCENGINE_PLAN_REGISTRY_URL 覆盖清单地址(指向自托管镜像)

fetch 失败时模型没更新怎么办:扩展升级后其打包的 fallback 自带最新模型清单。若重启 pi 后仍是旧模型,先 pi update --extensions 把扩展升级到最新版,再完全退出并重新打开 pi 即可(扩展只在进程启动时加载一次)。

清单只含模型元数据(id / reasoning / input / 上下文窗口 / 输出上限),不含 baseUrl、API key 或可执行代码;baseUrl 始终是固定的方舟 Coding Plan endpoint。

「无感更新」在启动 pi 时生效一次,不是运行时后台自动刷新。方舟新增模型后,重启 pi 即可看到。

重要说明

  • 本扩展使用的是火山引擎 Coding Plan endpoint:https://ark.cn-beijing.volces.com/api/coding/v3
  • 不要改成普通基础模型接口,否则调用路径和计费方式都可能不符合你的 Coding Plan 预期
  • 类似 glm-5.2、deepseek-v4-pro、kimi-k2.6 这类常见模型 id,可能与其他 provider 重名,建议始终使用 volcengine-plan/模型ID
  • Coding Plan 额度仅限 AI 编程工具使用,请勿用于非编程用途的 API 调用,否则可能被识别为滥用导致订阅停用或账号封禁

致谢

本项目是在 OptimisticQuan/pi-volcengine-coding-plan 基础上的改进优化版本,感谢原作者的工作。

License

MIT