dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH plugin: shows the current session's estimated cost in CNY in the composer dock; open it for a receipt-style breakdown and account balance.
DSH(DeepSeek Harness)插件:在输入框底部显示当前会话的估算费用(人民币),点击打开,显示费用明细和账号余额。

费用 ¥0.44,hover 底色和圆角与原生一致。基于 DSH 0.2.1-rc.2 开发,更低版本安装使用尚未测试。
桌面版:插件 → 添加插件 → 安装第三方插件,填 dsh-cost-slip,点「立即启用」后重启 DSH。
Web 版:
dsh plugin --profile web add dsh-cost-slip
(dsh 未全局安装时:npx --yes @deepseek-ai/dsh plugin --profile web add dsh-cost-slip)
安装后重启 dsh web 生效。
首次安装需要联网:宿主端依赖 zod,由 pnpm/npm 自动安装。
按每条 assistant/message(以及失败重试的 assistant/attempt)单独计价:
usage:未命中输入 inputTokens、缓存命中 cacheReadTokens、缓存写入 cacheWriteTokens、输出 outputTokens。message.source.model,缺失时用最近一次 request/header)和完成时间 event.time。lib/pricing.js 的价目表计算,单位换算成微元后累加。缓存写入按未命中单价计。 价格来源:DeepSeek 官方定价
sessionProjections 和 composer.dock 插槽;DSH 大版本升级后若改名,插件需要跟着改。git clone https://github.com/pktheme/dsh-cost-slip.git
cd dsh-cost-slip
dsh plugin --profile web add "$PWD"
lib/index.js:宿主端会话投影,按条累计费用。lib/client.js:胶囊与弹窗 UI。lib/pricing.js:价目表与峰谷判断,调价只改这里。locale/*.json:插件名与简介。协议:MIT。
插件页图标 icon.svg 与界面里的收据图标均为作者本人绘制。
非官方插件,与 DeepSeek 官方无隶属关系。