DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-plugin-composer-cost

Plugin Composer Cost

DeepSeek Harness Web UI 插件:在编辑器令牌统计旁显示会话费用(人民币)以及实时峰时/非峰时费率。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:nickkupriyanov/dsh-plugin-composer-cost#d5680cf9222d25b28d36f5b1cadf6d3daa16001e
README兼容性版本

兼容性与来源证明

Plugin Composer Cost 以 dsh-plugin-composer-cost 发布,当前版本为 1.0.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

1.0.1stable
2026/10/21
1.0.0stable
2026/10/21

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Experimental Cot Translation Bundle@deepseek-ai/dsh-experimental-cot-translation-bundle扩展推理的实验性机器翻译Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片

README

dsh-plugin-composer-cost

A DeepSeek Harness Web UI plugin that shows what a chat has cost and which DeepSeek rate window is active right now, in the row under the composer where the token statistics already live.

The cost pill under the composer: ~¥2.71, Off-peak

Click the pill for the breakdown:

The breakdown panel: model, tariff, token buckets, this chat versus subagents

The dot is amber during peak hours and green off-peak. The panel is the same trigger-anchored dialog the neighbouring statistic pills open, and it closes on an outside click or Escape.

What the amount covers

  • The whole chat tree. A subagent runs as its own Session with its own durable usage, billed to the same account, so the pill sums the bound Session plus every subagent it spawned. The panel splits the two so the total stays explainable.
  • Model turns only — the requests the provider reports usage for. See What it cannot include.

Peak schedule

Verified against https://api-docs.deepseek.com/quick_start/pricing on 2026-10-14.

Window (UTC)Rate
Monday–Friday 01:00–04:00peak
Monday–Friday 06:00–10:00peak
every other instant, including the whole weekendoff-peak, exactly 50 % of peak

Chinese statutory public holidays are off-peak for the whole day. The official 2026 list (State Council notice 国办发明电〔2025〕7号) is built in. The 2027 notice lands in early November 2026 — add those dates to CN_HOLIDAYS, otherwise January 2027 is priced as an ordinary week.

DeepSeek ignores 调休 (make-up working days): an adjusted working Saturday is still a weekend and therefore off-peak.

Rates

Peak rates per 1,000,000 tokens, taken verbatim from the published rate cards. DeepSeek rounds CNY and USD independently, so neither is derived from the other:

CurrencyModelCache hitCache missOutput
CNYdeepseek-flash0.0428
CNYdeepseek-v4-pro0.30927
USDdeepseek-flash0.0060.301.20
USDdeepseek-v4-pro0.0441.323.96

Off-peak is half of each figure. DISPLAY_CURRENCY selects the card shown and is CNY by default. DeepSeek bills no separate cache-write rate, so cacheWriteTokens are listed but never charged. Unknown and legacy model ids fall back to the deepseek-flash row.

Install

Requires a DeepSeek Harness build with the Web GUI; the plugin renders into the conversation.composer.dock slot.

From the Plugins page. Sidebar → Plugins → Add plugin, paste https://github.com/nickkupriyanov/dsh-plugin-composer-cost, install, then reload the page.

From the CLI — forwards to pnpm in the profile directory:

dsh plugin --profile <profile> add https://github.com/nickkupriyanov/dsh-plugin-composer-cost

Side-loading a checkout, without pnpm: copy the checkout into the profile and add one loader row.

~/.dsh/profiles/<profile>/plugins/dsh-plugin-composer-cost/
# ~/.dsh/profiles/<profile>/cordis.patch.yml
- insert:
    - id: composer-cost
      name: ./plugins/dsh-plugin-composer-cost/index.js

Then fully restart the harness. The host caches client bundle bytes until a restart, and the browser module id is part of that cache key; a plain page refresh will not pick up a changed bundle.

Configuration

No runtime options — four constants at the top of client.js are the knobs.

ConstantDefaultMeaning
DISPLAY_CURRENCY'CNY''CNY' or 'USD', selects the rate card
RATE_ZONE'Europe/Moscow'zone every displayed wall-clock time is expressed in
RATE_CARDSsee abovethe published rate cards, one per currency
CN_HOLIDAYS2026 listChinese statutory holidays as YYYY-MM-DD

Accuracy

The durable tokenUsage projection carries whole-session totals with no per-request timestamps, so the cost is priced at the tariff in force at render time. A session that spans a peak boundary lands between the peak and off-peak figure; a session that never crosses one is exact.

Amounts print two decimals, and each part is rounded before summing so This chat + Subagents always equals the printed total. An amount that would round to zero prints <¥0.01 rather than claiming to be free.

What it cannot include

  • Session titles and web search. Both are billed provider calls that the session log records as session/title-llm-request and web/deepseek-search-llm-request — requests only, with no usage attached, so no local computation can price them.
  • Other clients on the same account. platform.deepseek.com/usage is account-wide; this pill is per chat.

Comparing with the billing console

Their totals differ for two structural reasons.

  1. Scope. A pill is the lifetime of one chat tree, not a day. A chat that ran across midnight keeps its whole total.
  2. The console day is Beijing time. Its day starts at 00:00 Beijing = 16:00 UTC of the previous day, so a session that ran at 00:01 Beijing belongs to "today" while a UTC-day total excludes it.

Measured on 2026-10-14 at 12:34 UTC by folding every session log on one machine and pricing at the off-peak CNY card:

WindowTotal
UTC day, 2026-10-14 00:00Z to nowCNY 2.0752
Beijing day, 2026-10-13 16:00Z to nowCNY 2.2944
console reportedCNY 2.3300

The Beijing-day window lands within 1.5 % of the console; the residual is the helper calls above.

Files

FileRole
package.jsonBundle manifest: dsh.bundle.patch, the dsh.client web half, display metadata
cordis.patch.ymlInserts the composer-cost loader row
index.jsHost half — intentionally empty
client.jsThe pill, its panel, styles, dictionaries, and slot registration
locale/*.jsonPlugin Manager card title and description
icon.svgPlugin Manager artwork

No Harness Client package is imported: anchoring, outside-pointer dismissal, Escape handling and the coin glyph are implemented in client.js against --dsw-* design tokens only.

Development

No build step and no dependencies: client.js is the browser artifact in the loader lazy-factory form, checked in as source. Because nothing type-checks it before the Harness materializes it, scripts/check.cjs enforces the package contract instead - every exported entry point exists, the bundle patch names this package, the factory id equals the package name, and no Harness Client package is imported.

npm run check

CI runs the same checks on Node 20 and 22 for every push and pull request.

Changelog

Release notes live in CHANGELOG.md.

License

MIT