DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Session Billing — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-session-billing

Session Billing

Per-session LLM cost meter for the DeepSeek Harness Web UI: folds provider usage into uncached input / cache read / cache write / output per model and prices it against DeepSeek and Xiaomi MiMo pay-as-you-go rates (DeepSeek peak-idle tiering included).

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-session-billing@1.1.0
READMECompatibilityVersions
会话费用弹窗:dock 价签胶囊与按模型明细本轮费用弹窗:用量胶囊旁的价签贴片与本轮明细

Compatibility and provenance

Session Billing is published as dsh-session-billing and currently resolves to version 1.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
10/10/2026

Versions

1.1.0stable
10/10/2026
1.0.1stable
10/10/2026

Related plugins

Loading related plugins…

Latest
1.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
108.1 kB
Files
11
Surface
web
License
GPL-3.0-only
Source
npm
GitHub
★ 0
Weekly downloads
0
Last push
10/10/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.Cost Meterdsh-cost-meterDeepSeek Harness session cost statistics plugin: current session cost, today’s charges, historical records, and synchronization with official pricing; supports multi-provider, multi-model price calculation (built-in pricing catalog for 170+ model IDs with automatic matching); queries and displays su

README

Session Billing · 会话计费

🌐 中文 | English

DeepSeek Harness Web UI 的会话级 LLM 费用估算插件:把模型上报的用量按「未缓存输入 / 缓存读取 / 缓存写入 / 输出」四桶累计,套官方价目表估算费用——输入框下方看会话合计,每条回复旁看本轮花费,点开都有按模型明细。

费用是估算值(官方价目表 × 上报用量),不是账单真值。纯展示插件:不改行为、不写会话、不发网络请求。

✨ 功能

  • 💲 会话合计:输入框下方 dock 一枚「价签 ¥x.xx」胶囊,点开弹窗查看按模型明细与会话合计。
  • 🔖 本轮费用:每条回复操作行上,官方「用量」胶囊旁一枚「价签 ¥x.xxxx」小胶囊,点开查看本轮明细。
  • 📊 按官方价目表计价:DeepSeek(含北京时间峰谷 + 法定节假日判定)与小米 MiMo 按量计费,缓存命中 / 未命中 / 写入 / 输出分桶计价。
  • 🚫 未配置价格的模型不猜价:明细行标注「未配置价格」,金额按 ¥0 计、不计入合计。
  • 🌏 中英双语:界面文案跟随应用语言实时切换;模型说明在配置里内联多语言。
  • 🧩 模型配置外置:价目表、匹配规则、说明文案集中在 models.config.js,新增 / 更新模型只改一个文件。

📸 效果预览

会话费用(dock 胶囊 + 明细弹窗)本轮费用(回复旁贴片 + 明细弹窗)
会话费用弹窗:dock 价签胶囊与按模型明细本轮费用弹窗:用量胶囊旁的价签贴片与本轮明细

📦 安装

在 Plugin Manager 中用 Install Bundle 安装,来源二选一:

  1. npm 包(推荐):安装规格填 dsh-session-billing;
  2. 本仓库目录:直接安装本地克隆的仓库目录。

安装或更新后重启 Harness(Host 侧改动不热更),浏览器刷新页面。

💰 计费口径

四桶互斥;单次调用费用 = Σ(桶 × 单价) / 1e6(单价单位:元 / 百万 tokens):

用量桶价目表键DeepSeekMiMo
缓存读取 cacheReadTokenshit命中价命中价
未缓存输入 uncachedInputTokensmiss未命中价未命中价
缓存写入 cacheWriteTokenswrite= 未命中价(无单列写入价)0(限时免费)
输出 outputTokensout输出价输出价
  • DeepSeek 峰谷:北京时间(UTC+8)周一至周五 09:00–12:00、14:00–18:00 为高峰价;夜间、周末及法定节假日空闲半价。节假日日历来自 holiday-cn(每日抓取国务院公告)。
  • MiMo:全天一口价(无峰谷);缓存写入限时免费,按 0 计。

🧩 支持的模型

模型计价高峰价 {命中, 未命中, 写入, 输出}空闲价
DeepSeek Flash峰谷0.04 / 2.0 / 2.0 / 8.0半价
DeepSeek V4 Pro峰谷0.30 / 9.0 / 9.0 / 27.0半价
MiMo v2.6 Pro一口价0.025 / 3.0 / 0 / 6.0同高峰
MiMo v2.6 Flash一口价0.02 / 1.0 / 0 / 2.0同高峰
MiMo v2.6 Pro Ultraspeed一口价0.25 / 30.0 / 0 / 60.0同高峰

未列出的模型不猜价:明细行标注「未配置价格」,不计入合计。价格取自官方价目表(截至抓取时):DeepSeek · MiMo

🌏 多语言

  • 界面文案(标题、按钮、说明等):中 / 英双语,注册进 Harness 的 locale 服务,跟随应用语言——设置里切换语言即时生效,无需刷新。
  • 模型说明:随模型配置内联 { zh, en }(DSH 的 LocalizedText 形状),按界面语言解析;价格和两种语言的说明写在同一条配置里,不会漂移。

🗂 配置与维护

价目表与模型说明集中在 models.config.js,每条模型长这样:

{
  id: 'deepseek-v4-pro',
  label: 'DeepSeek V4 Pro',
  match: { route: ['deepseek', 'v4-pro'], model: ['pro'], exclude: ['flash'] },
  tiered: true,
  peak: { hit: 0.30, miss: 9.0, write: 9.0, out: 27.0 },
  idle: { hit: 0.15, miss: 4.5, write: 4.5, out: 13.5 },
  note: { en: '…', zh: '…' },
}
想做什么改哪里生效方式
新增模型 / 调价 / 改模型说明models.config.js 的 MODELS重启 Harness
更新节假日日历models.config.js 的 HOLIDAYS(或插件配置 config.holidays 追加)重启 Harness
改界面文案client.js 的 DICT.en / DICT.zh(两份字典键需同步)刷新页面
  • 匹配规则 match 全部为小写包含匹配,按 MODELS 顺序首命中即用:route(provider 或 model 命中其一)、model(必须全部包含)、exclude(不得包含)。
  • 计价回归验证:node docs/verify-host.mjs。架构与折叠语义细节见 index.js / client.js 头部注释。

⚠️ 说明

  • 费用是估算值,不是账单真值;跨峰谷窗口的长请求按结算时刻归档,误差相对 3–4 小时窗口可忽略。
  • 未配置价格的模型、未配置的节假日,只会多算不会少算或按 ¥0 显示,绝不猜一个价格。

📄 License

GNU General Public License v3.0