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.

Cost Balance Pro — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-cost-balance-pro

Cost Balance Pro

DSH plugin: visible cost/balance stats pill below the composer, with settings page and one-click reset. Fixed fork-level issues of dsh-cost-balance (slot id collision, missing ctx, invisible 5px bar).

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-cost-balance-pro@0.2.0
READMECompatibilityVersions

Compatibility and provenance

Cost Balance Pro is published as dsh-cost-balance-pro and currently resolves to version 0.2.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
9/20/2026

Versions

0.2.0stable
9/2/2026
0.1.6stable
8/17/2026
0.1.5stable
8/17/2026
Show 2 more versionsCollapse versions
0.1.4stable
8/15/2026
0.1.3stable
8/15/2026

Related plugins

Loading related plugins…

Latest
0.2.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
36.8 kB
Files
6
Surface
web
License
MIT
Source
npm
GitHub
★ 2
Weekly downloads
62
Last push
9/2/2026
View source ↗Project homepage ↗
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.

Usage@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 the current session provider's today usage on the sidebar entryWhale 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 Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

README

dsh-cost-balance-pro

DSH 插件:输入框下方可见文字的会话花费/余额统计条,带设置页与一键还原。

能力

  • 折叠态直接显示 余额(¥)· 本次花费($),点击展开明细(缓存命中 / Token / 花费 / 余额)
  • 设置页(设置 → 插件 → 余额统计条):显示开关(余额/花费/命中率)、字号(10–16px)、颜色(跟随主题/灰色/自定义取色器)、一键还原
  • 配置持久化于 $DSH_HOME/dsh-cost-balance-pro.json,重启保留,保存后统计条即时刷新

设置页字段

字段类型默认值说明
showBalancebooleantrue折叠态显示余额
showCostbooleantrue折叠态显示本次花费
showHitRatebooleantrue展开面板显示缓存命中率
costCurrencyenumcny花费货币:cny 人民币 / usd 美元
balanceCurrencyenumcny余额货币:cny 人民币 / usd 美元
usdCnyRatenumber6.82USD→CNY 汇率(余额/花费换算用,官方峰谷价隐含值)
fontSizenumber12折叠态字号,限制 10–16
colorModeenumautoauto 跟随主题 / mono 灰色 / custom 自定义
customColorstring#8b5cf6colorMode=custom 时的文字颜色(#RRGGBB)

相对 dsh-cost-balance 的修复

  1. 槽位注册 id 改为唯一 cost-balance-pro,不再与官方统计栏冲突(原版同槽同 id 同 priority 会挂掉整个前端);
  2. ctx 经 props 传入组件(原版模块级裸 ctx 导致槽位条目渲染期 ReferenceError,药丸从未渲染成功);
  3. 折叠态从 5px 无字细线改为可见文字;
  4. 客户端工厂补上 return module.exports(缺失时加载器收到 undefined,插件静默失效);
  5. 客户端模块声明 exports.inject = ['timer'](ctx.interval 需要 timer 注入)。

安装

dsh plugin --profile web add dsh-cost-balance-pro

装后重启服务一次(或下次登录),刷新页面即可看到统计条;样式去设置页调整。

模型定价(峰谷计费,动态同步)

DeepSeek 自 2026-08-17 起执行峰谷计费,2026-08-23 起高峰仅限周一至周五:高峰 = UTC 01:00-04:00 与 06:00-10:00(北京 09:00-12:00 / 14:00-18:00),谷价为峰价一半,周末全天谷价。本插件按当前时段自动计价,折叠态显示 峰/谷 徽标(峰橙、谷绿),展开面板显示当前时段说明。

价格自动同步(v0.2.0+):启动时及每 12 小时抓取官方英文定价页,自动识别新模型与价格变化(如 deepseek-v4-flash-vision-exp),无需升级插件即可跟随官方价。失败时回退到上次缓存,再回退到内置默认价。优先级:用户显式配置 > 官方同步 > 内置默认价。同步结果缓存于 $DSH_HOME/dsh-cost-balance-pro-prices.json。

内置默认价(USD/1M,动态同步失败时的兜底):

模型时段缓存命中未命中输出
V4-Flash峰0.0140.441.32
V4-Flash谷0.0070.220.66
V4-Flash-Vision峰0.0140.441.32
V4-Flash-Vision谷0.0070.220.66
V4-Pro峰0.0441.323.96
V4-Pro谷0.0220.661.98

可在 profile 的 cordis.patch.yml 按 id 覆盖整行 config 传入 prices(结构 { 模型: { peak: {hit, miss, out}, offPeak: {...} } }),用户配置始终优先于官方同步结果。

开发

npm test          # 客户端契约测试(node:test)
npm pack --dry-run

发布:push v* 标签触发 GitHub Actions,经 npm OIDC trusted publishing 自动发布(带 provenance)。

License

MIT