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 Slip — DSH Plugin for DeepSeek Harness
← Plugins
C

dsh-cost-slip

Cost Slip

Displays the estimated cost of the current session (in RMB) at the bottom of the input box. Click to view cost details and account balance.

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

npx -y @deepseek-ai/dsh plugin --profile web add github:pktheme/dsh-cost-slip#8cf728ed03389f11f075c6369c413252b1e304d1
READMECompatibilityVersions

Compatibility and provenance

Cost Slip is published as dsh-cost-slip and currently resolves to version 1.4.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

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

Versions

1.4.1stable
10/18/2026

Related plugins

Loading related plugins…

Latest
1.4.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/18/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
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

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 editinClient 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, daily expenses, historical records, and synchronization with official pricing; supports multi-provider and multi-model price billing (built-in price catalog for 170+ model IDs with automatic matching), and querying and displayingCodex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images and Fast mode, and control DSH from the ChatGPT mobile app (Beta)

README

dsh-cost-slip

DSH(DeepSeek Harness)插件:在输入框底部显示当前会话的估算费用(人民币),点击打开,显示费用明细和账号余额。

截图展示

功能

  • 独立胶囊:在输入框底部统计行里,和「会话统计」「Token 用量」并排;收据图标 + 费用 ¥0.44,hover 底色和圆角与原生一致。
  • 费用明细:点开胶囊,按「缓存命中 / 未缓存输入 / 输出」列出 token 数与金额,标题右侧是合计。
  • 账号余额:明细下方显示当前登录账号的「充值余额」「赠金余额」;打开弹窗时刷新读一次,之后每 10 秒刷新。
  • 按条计价:每条回复用当时的模型和峰谷价单独计算,中途换模型、跨高峰都保持准确。
  • 窄窗口自适应:窗口变窄或打开右侧边栏时,胶囊文字像原生统计项一样省略号截断。

安装

基于 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)单独计价:

  1. 取这条回复的 usage:未命中输入 inputTokens、缓存命中 cacheReadTokens、缓存写入 cacheWriteTokens、输出 outputTokens。
  2. 取这条回复的模型(message.source.model,缺失时用最近一次 request/header)和完成时间 event.time。
  3. 用 lib/pricing.js 的价目表计算,单位换算成微元后累加。

缓存写入按未命中单价计。 价格来源:DeepSeek 官方定价

隐私

  • 只通过 DSH 宿主接口读取会话的 token 用量与事件,不抓包、不联网。
  • 余额通过宿主提供的账号接口读取,仅用于显示。
  • 不上报任何数据,不写入额外文件。

已知边界

  • 估算值:不是官方账单;赠送额度、优惠、失败请求的计费细节以 DeepSeek 账单为准。
  • 子智能体:subagent 跑在独立会话里,主会话的费用不含它们的消耗。
  • 旧事件:只对带 provider usage 的回复计费;没有 usage 的旧事件会跳过。
  • 兼容性:依赖 DSH 的 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 官方无隶属关系。