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-thirdparty-model-settings

v0.1.3

Published

Pi coding agent extension: configure third-party API providers (baseUrl / apiKey / models) in a local web page via /dsf-config

Readme

pi-thirdparty-model-settings

在 pi 终端里输入 /dsf-config(dsf 即"第三方"的拼音首字母),浏览器会打开一个本地配置页,填写第三方 API 的 Base URL、API Key 和模型,保存后 /model 里立即可见,无需重启。

安装

# 从 npm 安装(推荐)
pi install npm:pi-thirdparty-model-settings

# 或从 GitHub 安装
pi install git:github.com/aehyok/pi-thirdparty-model-settings

# 只想试用一次,不写入设置
pi -e npm:pi-thirdparty-model-settings

安装后重启 pi 或使用 /reload 即可启用插件。卸载:pi remove npm:pi-thirdparty-model-settings。

使用

| 命令 | 作用 | |---|---| | /dsf-config | 启动本地服务并在浏览器打开配置页(已打开时再次唤起) | | /dsf-config stop | 关闭配置页服务 |

配置页功能:

  • 新建 / 编辑 / 删除 Provider
  • 接口协议:OpenAI 兼容、OpenAI Responses、Anthropic、Gemini
  • 从接口 GET {baseUrl}/models 拉取模型列表,点选添加
  • 每个模型可设置显示名、上下文、最大输出(支持 128k、1M 写法)、推理、图片输入
  • 浅色 / 深色 / 跟随系统主题

工作方式

  • 配置写入 ~/.pi/agent/models.json(或 PI_CODING_AGENT_DIR 指定的目录),写入前备份为 models.json.bak;原文件不是合法 JSON 时拒绝覆盖。
  • 保存后只刷新改动的 Provider,不受其他服务商联网刷新超时影响。
  • 本地服务仅监听 127.0.0.1,URL 带随机 token;15 分钟无操作自动关闭。

安全提示

API Key 默认以明文写入 models.json。如不希望明文保存,可在 Key 一栏填写 $ENV_NAME,pi 会在请求时读取该环境变量。

要求

pi(@earendil-works/pi-coding-agent)1.3.0 及以上。

License

MIT