DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

@stmol/dsh-rub-cost

Rub Cost

DeepSeek Harness 对话停靠栏中当前会话的卢布费用

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

npx -y @deepseek-ai/dsh plugin --profile web add @stmol/dsh-rub-cost@1.2.0
README兼容性版本

兼容性与来源证明

Rub Cost 以 @stmol/dsh-rub-cost 发布,当前版本为 1.2.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

1.2.0stable
2026/10/11
1.1.1stable
2026/10/4
1.1.0stable
2026/10/2
查看其余 1 个版本收起版本
1.0.0stable
2026/10/2

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

README

dsh-rub-cost

A DeepSeek Harness plugin: it shows the cost of the current session in rubles in the conversation dock, next to the built-in token counters (conversation.composer.dock).

Session cost card opened over the "0,56 ₽" pill: model, peak tariff with countdown, API price list, CBR rate, cache savings and the USD balance

The capture above still shows the former "API cost" row, which the card replaced with the price list; swap in a fresh screenshot the next time the card is opened.

The pill is a button. Clicking it opens a card styled after the built-in "Token usage" popover; a second click, a click outside the card, or Escape closes it.

Installation

Published on npm as @stmol/dsh-rub-cost. Any DSH bundle source works: an npm package, a Git repository, a tarball, or a local folder.

  • GUI: Settings → Plugins → Add plugin, then @stmol/dsh-rub-cost, or the repository address.
  • CLI: dsh plugin add @stmol/dsh-rub-cost.

The install name is the name field in package.json; the name in cordis.patch.yml and the factory id in client.js have to match it, or the bundle will not build. There are no automatic updates: remove the plugin and add it again. The plugin runs with your own privileges.

What the card shows

Model, the current tariff and the countdown to its switch, the API price list in dollars per 1M output tokens at the tariff in effect, the CBR rate with its publication date, the cost of the session including subagents, the same session without a cache and the savings, and the DeepSeek Platform wallet balances. The session cost itself is the ruble amount on the pill and in the card header; the card does not repeat it in dollars.

Every ruble amount is shown with two decimals. The price list also keeps two and adds a third or fourth digit when needed to preserve a finer rate. The token breakdown stays out of the card, because the neighbouring "Token usage" cell already prints it.

Peak hours cost twice the off-peak rate. The tariff row names only the window in effect, for example peak hours (04:00-07:00) highlighted in amber, or off-peak. Peak hours are Beijing weekdays 09:00-12:00 and 14:00-18:00, printed in your browser's timezone — 04:00-07:00 and 09:00-13:00 at UTC+3, and the same windows shifted by your own offset; weekends are off-peak around the clock. The tariff itself is never computed in your zone: the rule stays in Beijing time, and only the printed clock moves, so the amount is the same wherever the card is opened. The countdown follows from that rule alone, so on a Friday it runs into the next week: 63h 00m just after 13:00 MSK, 61h 47m at 14:13 MSK. The rule assumes the following Monday is an ordinary working day; a PRC holiday moves the real switch, as the first limitation below explains.

How it is computed

cost = (uncachedInput + cacheWrite) × cacheMiss + cacheRead × cacheHit + output × output

Tokens are priced with DeepSeek's official dollar list per 1M tokens, then converted at the CBR USD/RUB rate. The account is billed in dollars, so the dollar list is the basis; the yuan list on the Chinese documentation page is the same list at the fixed 20/3 ¥/$ rate. A usage report can show amounts in CNY while a granted yuan balance is being spent, which is that same list again.

Tokens come from the host tokenUsage projection and the model from modelSelection.lastUsed; the plugin never folds the session journal itself. The price rows print the same model's MODEL_PRICES entry for the tariff in effect, so they move only when the tariff or the model does. The rate comes from a mirror of the CBR rates and is cached in localStorage: with no network the last known rate is used, and with no cache the cell shows a dash and the reason in the tooltip.

The pill and the card header are a running total: the cost of the current session, not of the account and not a per-request price. Subagents are priced from their own route and summed into a separate "Total with subagents" row; while the card is open their spend is polled every 15 seconds. If even one child cannot be read, that row is hidden rather than shown incomplete.

Known limitations

  • PRC statutory holidays are not modelled. The plugin keeps one year-agnostic rule — Beijing weekday plus peak window — so it needs no annual edit, and a holiday weekday is therefore priced as a peak day. DeepSeek bills those days at the off-peak rate, so on such a day the amount and the countdown are both too high until the holiday is over. The official dates live in the State Council notice published every November, which is the only source; the client bundle ships no year-specific table on purpose.
  • The ruble total is not a sum of per-request bills: the whole session is repriced at the tariff in effect when the card renders, so a peak/off-peak switch doubles or halves the amount without a single new token. The tariff and the price rows name what is in effect, which is exactly what the countdown counts down to.
  • tokenUsage holds a whole-session total with no per-route split, so after a mid-session model change everything is estimated with the last used model.
  • Cache writes are billed at the cache miss rate: DeepSeek publishes no separate price, and on DeepSeek routes that counter is zero anyway.
  • Subagents use their own last used model at the current tariff, and a child that has not chosen a route yet falls back to the parent's.
  • The balance request pins x-client-version. The version is hardcoded in client.js and has to be updated by hand after a DSH upgrade.
  • The clock zone comes from the browser, not from the DeepSeek account: the account profile (remote.account.getProfile) exposes no timezone. When the browser reports no zone at all, the card falls back to DEFAULT_OFFSET_MS (UTC+3).

Editing prices and the rate

MODEL_PRICES, BILLING_CURRENCY and RATE_URL sit at the top of client.js; DEFAULT_OFFSET_MS next to them is the fallback clock offset (UTC+3) for a browser that reports none. After an edit the bundle has to be reinstalled: remove and add the plugin in the UI, or dsh plugin add <path-to-plugin-directory>.

License

MIT, see LICENSE.

相关插件

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

Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义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 源代码。Cost Meterdsh-cost-meterDeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(13 家,含 OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询)、自定义 Provider