DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-token-rmb

Token Rmb

在 DeepSeek Harness 中以内联方式显示每轮以 CNY 计价的令牌成本——根据 DeepSeek 高峰/非高峰定价,在用量/时间指示器后立即显示每轮的预估成本。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-token-rmb@0.1.0
README兼容性版本

兼容性与来源证明

Token Rmb 以 dsh-token-rmb 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/10/30

版本

0.1.0stable
2026/10/30

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
29 kB
文件数
9
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
0
最近提交
2026/10/30
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Experimental Cot Translation Bundle@deepseek-ai/dsh-experimental-cot-translation-bundle扩展推理的实验性机器翻译Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。

README

dsh-token-rmb

Inline per-turn token cost in CNY for DeepSeek Harness (dsh).

A small web plugin that appends one number to the assistant action row — the estimated cost of that turn in yuan, right after the usage/time indicator. Peak and off-peak rates are applied automatically, and nothing new is added to the layout.

[copy] [feedback] [branch] … [usage 12.3K tok] [18:42] [≈¥0.0349]
  • One turn, one number. No session total, no extra row, no layout shift.
  • Follows the shipped Performance & usage → Compact setting: when the official usage pill is hidden, this disappears too.
  • Prices come from a built-in snapshot and can be overridden from the profile's cordis.patch.yml; the override is a volatile field, so saving it re-prices without restarting the app (refresh the page if the number does not move).
  • Estimates only. Usage is provider-reported; prices are a local table.

中文说明

在每轮对话结束时的操作行里,紧贴「用量 / 时间」右侧显示这一轮的 token 费用估算(人民币),支持高峰 / 空闲两档单价。

  • 只显示本轮,不占新行、不改行高;官方切到「性能与用量 = 简洁」时一起隐藏。
  • 数据用该轮 tokenUsage 的模型上报用量(与官方用量面板同源),不是按字符数估的。
  • 金额内部用皮元(1e-12 元)整数运算,展示三档:≈¥0.86 / ≈¥0.0032 / <¥0.0001。

界面

插件安装后(多出≈¥0.68)

image.png

鼠标放在上面

image.png

与 dsh-turn-cost 的区别

dsh-turn-cost 功能更全(每轮 + 会话累计、按步取价、内置法定节假日)。本插件是极简版,取舍如下:

dsh-turn-costdsh-token-rmb
显示每轮 + 会话累计,操作行里多一行只有本轮,同一行内、时间右侧
峰谷按每一步的实际时点取价按该轮结束时间整轮取一档(近似)
法定节假日内置当年安排不处理,见下文「已知误差」
价目覆盖本机 ratesPath JSON宿主 Config.pricing,保存即生效
精度到分皮元整数,三档展示

如果你需要会话累计或节假日精确计价,请用 dsh-turn-cost;如果你只想要一个不占版面的小数,用这个。

安装

形式命令
npmdsh plugin --profile <profile> add dsh-token-rmb
Git 仓库dsh plugin --profile <profile> add github:liuyun2025/dsh-token-rmb
本地目录dsh plugin --profile <profile> add <绝对路径>
tarballdsh plugin --profile <profile> add <绝对路径>.tgz

装完重启该 profile 生效(插件成员在启动时确定)。卸载:dsh plugin --profile <profile> remove dsh-token-rmb。

计价

费用 = 输入·未命中 × 未命中价
     + 缓存写      × 缓存写价(DeepSeek 与未命中同价)
     + 缓存命中    × 命中价
     + 输出        × 输出价(reasoning 已含在输出里)

内置价目(2026-10-30,元 / 百万 tokens)

deepseek-flash空闲高峰
输入·缓存命中0.020.04
输入·缓存未命中12
缓存写12
输出48

deepseek-v4-pro 也内置了一份(0.15 / 4.5 / 13.5 与 0.3 / 9 / 27);未列出且没有 * 的模型显示 ¥—,不套用别人的价格。

峰谷

固定北京时间,高峰为周一至周五 9:00–12:00、14:00–18:00,其余(含周末)空闲、价格减半。

配置

写在当前 profile 的 cordis.patch.yml,整表替换内置快照;未列出的模型回退 *。pricing 是 .volatile() 字段,保存后重新计价,不用重启应用(若数字没立即更新,刷新页面即可)。

- id: dsh-token-rmb
  name: dsh-token-rmb
  config:
    pricing:
      deepseek-flash:
        idle: { inputPerM: 1, cacheReadPerM: 0.02, cacheWritePerM: 1, outputPerM: 4 }
        peak: { inputPerM: 2, cacheReadPerM: 0.04, cacheWritePerM: 2, outputPerM: 8 }
      my-gateway-model:
        idle: { inputPerM: 3, cacheReadPerM: 0.3, cacheWritePerM: 3, outputPerM: 12 }
        peak: { inputPerM: 6, cacheReadPerM: 0.6, cacheWritePerM: 6, outputPerM: 24 }
      '*':
        idle: { inputPerM: 1, cacheReadPerM: 0.02, cacheWritePerM: 1, outputPerM: 4 }
        peak: { inputPerM: 2, cacheReadPerM: 0.04, cacheWritePerM: 2, outputPerM: 8 }
  • inputPerM、outputPerM 必填;cacheReadPerM、cacheWritePerM 缺省按 inputPerM。
  • 只写 peak 或只写 idle,另一档复用同一份。
  • 没有 DSH 设置页表单:官方目前没有客户端会根据 schema 自动生成页面,改价就是改这段 YAML。

降级

  • 该轮没有可用用量 → 不显示,不留占位符。
  • 有用量但算不出价 → 显示 ¥—,悬停写明原因。
  • 计算或渲染出任何异常 → 捕获后不显示,不影响这一行和会话本身。
  • 读不到「性能与用量」偏好(例如 ui-chat 不存在)→ 按「详细」处理,照常显示。

已知误差与限制

  1. 节假日不处理:官方规则里中国法定节假日算空闲价,本插件按工作日算,因此节假日当天会高估一倍。国庆、春节这类连续假期最明显。
  2. 跨时段的一轮按整轮计价:一轮里多次请求跨越 12:00 或 18:00 时,整轮按轮次结束时间取一档,只影响跨界的少数轮次。
  3. 一轮混用多个模型时按 routes[0] 计价,悬停里会标注。
  4. 只算 token:搜索/抓取、套餐订阅等不计入,文案写的是「token 费用估算」。
  5. 价目表是快照,官方保留调价权;实际扣费以平台为准。价目表改了,历史轮次金额会按新价重算。

兼容性

在 0.2.1-rc.3 上实测。客户端读取聊天节点的 turn-tail 数据(与官方用量面板同源),属于 dsh-client-ui-chat 的内部形状,因此 engines.dsh 限定在 >=0.2.1-rc.3 <0.2.2;升级宿主前请先确认这一行还在。

开发

pnpm install
pnpm test      # 纯逻辑自检(峰谷、格式化、降级)
pnpm run check # 语法检查

改 lib/client.js 后刷新页面;改配置不用。宿主半侧依赖 @deepseek-ai/schemastery:用 link: 安装时 Node 不会去 profile 里找它,所以本地 pnpm install 会把 cosmokit / @standard-schema/spec 装到包根目录(见 devDependencies)。

License

MIT