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

dsh-provider-info

v0.7.2

Published

在模型座左侧显示当前模型所属提供商(显示名称优先,回退 Provider ID)。纯运行时装饰,不改动原生页面源码。

Downloads

935

Readme

dsh-provider-info

一个 DeepSeek Harness 插件。

它的作用只有一件事:在你选择模型的地方,旁边显示一行小字,告诉你当前选中的模型是哪家服务商(公司)提供的。

把鼠标移动到这行小字上,会弹出一个深色小面板,列出这家服务商和当前模型的详细信息。

这是什么问题

DeepSeek Harness 可以同时配置多家 AI 服务商,每家服务商下面又挂着许多模型。光看模型名称,你很容易搞不清它到底走的是谁的接口、用的是哪家服务。这个插件就是想让你一眼看清楚:我现在选的模型,是哪家提供的。

它能干什么

  • 模型旁边多一行小字:显示当前模型所属服务商的名称。如果服务商没有设置名称,就显示它的编号(像 ID 一样的代号)。
  • 鼠标悬停弹出小面板,分两部分:
    • 服务商信息:显示名称、编号、用的 API 协议(比如 OpenAI 兼容、Anthropic 等)、API 地址、密钥对应的环境变量名。
    • 当前模型信息:模型编号、显示名、描述、支持哪些推理等级、当前用的推理等级、上下文窗口大小、最大 token、支持哪些输入类型、兼容信息。
  • 没有填的信息会显示「未提供」;文字太长会自动换行。
  • 切换模型后,旁边那行小字会自动跟着变。
  • 不碰密钥:它只显示密钥对应的环境变量名,绝不会读取或显示密钥的真实内容。
  • 余量区块:对支持查询的厂商,悬浮浮层还会展示当前提供商的余量——
    • DeepSeek:账户余额金额(多币种)。
    • OpenCode Go:5小时 / 每周 / 每月 已用百分比 + 重置倒计时 + 折算金额。
    • 已识别但暂不支持的厂商显示「暂不支持该供应商查询」;未配置密钥显示「未配置 API Key」;查询失败显示「查询失败」。
    • 这些查询都是只读的,不会扣费、不会消耗 token。
    • host 端按 provider 缓存 5 分钟,反复悬浮不会频繁打厂商接口。
    • 余量区块带「刷新」按钮:点击立即绕开缓存、强制拉取最新余量(仍只读、不扣费);平时悬停走 5 分钟缓存。
    • 鼠标悬停到浮窗/按钮上时,消息流滚动不会隐藏浮窗,方便查看;移开后才因滚动隐藏。
    • 刷新行为可在「设置 → 提供商信息」调整:开启显示悬浮窗自动刷新(默认开)则浮窗打开时立即重新查询最新余量(绕开缓存);或开启定时刷新(默认关)并设置间隔(默认 5 分钟,最低 1 分钟),在浮窗打开时定时重新查询。设置持久化于 $DSH_HOME/dsh-provider-info.json(权限 0600)。

效果图

模型选择按钮旁边的那行小字(这里显示提供商是 opencode-go):

模型选择处的提供商标签

鼠标移上去弹出的详细信息面板:

悬停查看提供商与模型详情

怎么安装

这个插件需要通过 DSH 的 profile 机制加载(比如 web profile)。

方式一:用命令安装

dsh plugin --profile web add dsh-provider-info

方式二:手动配置

在 profile 的依赖里加上它:

// profile 的 package.json
"dependencies": { "dsh-provider-info": "^0.1.0" }

再在 profile 配置里声明加载它:

# profile 配置
dsh:
  profile:
    bundles:
      - dsh-provider-info

装好后重启一次 dsh web,然后刷新页面。

设置

打开 设置 → 提供商信息 配置余量刷新行为:

  • 显示悬浮窗自动刷新(默认勾选):鼠标移到徽章上、浮窗打开时就立即重新查询最新余量,绕开 5 分钟缓存。
  • 定时刷新(默认不勾选)+ 定时刷新间隔(分钟)(默认 5,最低 1):浮窗打开时按设定间隔定时重新查询余量(未开启定时刷新时,下方的间隔输入框禁用变灰)。
  • 界面语言(默认「跟随系统(dsh)」):设置悬浮面板与设置页的语言——「跟随系统(dsh)」跟随 DSH 界面语言(中文界面→中文,英文界面→英文);「中文」强制中文;「English」强制英文。强制语言只影响本插件,不会改动 DSH 自身的语言设置。

改动会保存到 $DSH_HOME/dsh-provider-info.json 并立即生效。

怎么用

不需要任何操作。打开对话界面,模型选择按钮旁边就会自动出现那行小字。鼠标移上去就能看到详细信息。

隐私说明

这个插件只是读取你本机正在运行的 DSH 实例里的服务商配置,用来显示信息。所有数据都只在你自己的浏览器里展示,不会发送到任何地方。密钥值从头到尾都不会被读取或显示,只显示密钥对应的环境变量名。

许可证

MIT