DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Spend Pill — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
S

dsh-spend-pill

Spend Pill

DeepSeek Harness 会话费用标签:在编写器停靠栏中显示官方人民币价格、峰时/非峰时价格和 2026 年节日日历;点击查看令牌明细。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:debug-null/dsh-spend-pill#fd8a6d25a7a5e77292a87dd9177e5317815e6980
README兼容性版本

兼容性与来源证明

Spend Pill 以 dsh-spend-pill 发布,当前版本为 0.2.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.2.1stable
2026/10/17

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

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 源代码。Codex Subscriptiondsh-codex-subscription在 DeepSeek Harness 中通过 OAuth 使用 ChatGPT 和 Codex 订阅,支持配额、安全重置、网络搜索、图像和快速模式,并可通过 ChatGPT 移动应用(Beta)控制 DSHPlugin Subscriptionsdsh-plugin-subscriptions将 ChatGPT (Codex)、Claude、Grok (X Premium)、GitHub Copilot 和 Google Antigravity 订阅用作 DeepSeek Harness LLM 提供商,并通过网页设置页面使用 OAuth 登录

README

dsh-spend-pill

DeepSeek Harness(DSH)Web 插件:在输入框下方显示本次会话已花费的人民币金额,点击查看明细。

界面示意

界面示意:输入框下方的费用 pill(高亮)与点击后弹出的明细面板。

功能

  • 在输入框下方的 composer dock 里增加一个费用 pill:≈ ¥1.05,就在系统自带的「轮次/步数」 「缓存命中 / Token 用量」旁边。
  • 点击弹出明细:模型及其费用、未缓存输入 / 缓存命中输入 / 缓存写入 / 输出的 token 数与金额、 高峰时段小计、空闲时段小计和合计;按 Esc 或点击弹层外部关闭。
  • 按每次请求结算时的模型和时段计价:会话中途切换模型、或一轮跨越 12:00 / 14:00 / 18:00 的峰谷边界,都能正确累加;时段以请求发出时间判定。
  • 内置 2026 年法定节假日:节假日(以及周末)按空闲价计费,不再是简单的「工作日」判断。
  • 不联网、不保存任何数据,金额由会话自身的 provider 上报 token 用量推导。

安装

目前尚未发布到 npm,直接安装 GitHub Release 里的预构建包:

dsh plugin --profile desktop add \
  https://github.com/debug-null/dsh-spend-pill/releases/latest/download/dsh-spend-pill.tgz

Web 界面也可以在 设置 → 插件 → 安装 bundle 里粘贴同一个 URL。安装后刷新 Web 页面即可。

价格与计费规则

官方价目(人民币 / 百万 tokens,见 DeepSeek API 文档):

模型时段缓存命中未命中输出
deepseek-flash高峰¥0.04¥2¥8
deepseek-flash空闲¥0.02¥1¥4
deepseek-v4-pro高峰¥0.30¥9¥27
deepseek-v4-pro空闲¥0.15¥4.5¥13.5

高峰时段为北京时间工作日 9:00–12:00、14:00–18:00,其余时间(含周末与法定节假日)按空闲价 (高峰价的一半)计费。内置的 2026 年节假日来自 国务院办公厅通知;2027 年的安排 公布后,用下面的 holidays 配置补上即可。旧模型 id deepseek-v4-flash、 deepseek-v4-flash-vision-exp 按 deepseek-flash 计价。

模型没有内置价格时(第三方 provider、未来新模型),按 fallbackModel(默认 deepseek-flash) 估算,并在弹层里标注「按 deepseek-flash 价格估算」。

可选配置

在 profile 的 cordis.patch.yml 里覆盖价格、别名、回退模型或节假日表:

- id: cost-pill
  name: dsh-spend-pill
  config:
    prices:
      my-model:
        peak: { cacheHit: 0.04, cacheMiss: 2, output: 8 }
        offPeak: { cacheHit: 0.02, cacheMiss: 1, output: 4 }
    aliases:
      my-legacy-model: my-model
    fallbackModel: deepseek-flash
    # 整表替换内置日历,日期为北京时间(YYYY-MM-DD)
    holidays: ['2027-01-01', '2027-02-05', '2027-02-06']

prices 与 aliases 是在内置表上的增量覆盖;holidays 是整表替换。配置变化会改变投影的 stateVersion,已缓存的历史费用会按新配置重新计算。

说明

  • 金额是按 provider 上报用量估算的参考值,不是账单;账户余额不在本插件范围内。
  • 一段会话里切换过模型时,弹层会分模型列出各自费用,但 token 明细仍按桶汇总。
  • 会话还没有产生计费用量时,pill 不显示。

开发与测试

node --check index.js && node --check client.js
node --test

lib/cost.js 是纯函数计价折叠(不依赖 DSH),test/cost.test.mjs 覆盖峰谷边界、节假日、 请求时间判段、同 Turn/Step 替换、重试、旧模型别名、第三方模型回退与配置覆盖;GitHub Actions 在每次 push / PR 时运行同样的检查。


English

A DeepSeek Harness (DSH) Web GUI plugin that shows what the current session has cost so far, in CNY, in the composer dock row — and opens a click-through breakdown dialog.

  • Prices every settled assistant attempt with the official DeepSeek CNY list price for the model and the period that attempt ran in (peak / off-peak, request-time based), including the 2026 Chinese public-holiday calendar.
  • Click the pill for model, uncached input / cache-hit input / cache-write / output tokens with amounts, peak and off-peak subtotals, and the total. Escape or an outside click closes it.
  • No network requests; figures come from the session's own provider-reported token usage.

Install

dsh plugin --profile desktop add \
  https://github.com/debug-null/dsh-spend-pill/releases/latest/download/dsh-spend-pill.tgz

Pricing

Official list prices in CNY per 1,000,000 tokens (DeepSeek API docs): deepseek-flash peak ¥0.04 cache-hit / ¥2 cache-miss / ¥8 output, off-peak half; deepseek-v4-pro peak ¥0.30 / ¥9 / ¥27, off-peak half. Peak is Beijing time, weekdays 09:00–12:00 and 14:00–18:00, excluding the built-in 2026 public holidays; everything else bills off-peak.

Models without a built-in price are estimated at the fallbackModel price and the dialog says so. Prices, aliases, the fallback model and the holiday list can be overridden through the plugin config in cordis.patch.yml.

Development

node --check index.js && node --check client.js
node --test

License

MIT — see LICENSE.

相关链接

  • 掘金文章:给 DeepSeek Harness 写费用插件:把「这次会话花了多少钱」算准