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-usage-pulse

Plugin Usage Pulse

适用于 DSH Web UI 的 DeepSeek 实时高峰/非高峰价格、令牌用量和每小时用量计量器。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:onfzi/dsh-plugin-usage-pulse#39b19286d4203fc8aa81df7cbe126fb530a98c1d
README兼容性版本

兼容性与来源证明

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

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

版本

1.0.1stable
2026/10/22

相关插件

正在加载相关插件…

最新版
1.0.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
周下载
0
查看源码 ↗
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

Usage Pulse · 峰谷用量

A DSH Web UI plugin that keeps DeepSeek's peak / off-peak pricing, your token spend and your hourly usage visible right below the composer — updated live, no page reload.

一个 DSH Web UI 插件:在输入框下方实时显示 DeepSeek 的峰谷时段与价格、token 用量与花费,以及分时用量图表。

Features · 功能

  • Live regime badge — 峰时 / 谷时 5 折 with a countdown to the next price switch, computed in Beijing time (Asia/Shanghai), including Chinese statutory holidays (peak is Mon–Fri 09:00–12:00 and 14:00–18:00, holidays and weekends are always off-peak).
  • When the cheap window starts — the expando shows the next off-peak window (下一谷段 今天 12:00 开始 · 4 小时后) and when the current segment began, and while peak is running the pill itself shows 谷段 12:00 起.
  • Today at a glance — today's spend in CNY plus total tokens, refreshed every 5 seconds.
  • Session breakdown — expand the pill to see this session's requests, tokens and cost, plus the cache-hit / cache-miss / output split and how much of today's spend happened in peak vs off-peak hours.
  • Hourly & daily usage — 24 one-hour bars (amber = peak hours) and the last 7 days, so you can see when you spend.
  • Official unit prices — the current tier's CNY / 1M-token prices for deepseek-flash and deepseek-v4-pro (peak and off-peak are exactly ×2 / ×1).
  • Bilingual UI — 中文 / English through the harness locale service.

How pricing is computed · 计费口径

Prices follow the official page https://api-docs.deepseek.com/quick_start/pricing/ (verified 2026-10-22, CNY per 1M tokens):

ModelBandCache hitCache missOutput
deepseek-flashpeak0.0428
deepseek-flashoff-peak0.0214
deepseek-v4-propeak0.309.027.0
deepseek-v4-prooff-peak0.154.513.5

Peak = Beijing time Mon–Fri 09:00–12:00 and 14:00–18:00, excluding Chinese statutory holidays. Everything else (nights, weekends, holidays) is off-peak, at exactly half the peak price.

Usage is read from the harness session event feed (assistant/message → usage), where inputTokens already excludes cache hits: cost = miss·missRate + hit·hitRate + output·outRate (cacheWriteTokens is billed at the cache-miss rate). Estimates only — Search / Fetch request fees are not included.

Privacy · 隐私

Only aggregates are stored, never conversation content: per-hour counters (tokens and cost) and per-session totals, kept for 35 / 120 days respectively and capped at 300 sessions. The file lives at ~/.dsh-usage-pulse/usage.json (override with DSH_USAGE_PULSE_DIR). All computation is local; the widget talks to the host over a same-origin route only.

Install · 安装

This repository is a DSH plugin bundle: package.json declares the dsh.bundle manifest and cordis.patch.yml inserts the plugin, so it installs the same way as any other plugin.

# once the entry is listed in the community catalog
dsh plugin add onfzi/dsh-plugin-usage-pulse

For a local checkout, point the DSH plugin manager at the directory containing package.json (plugin_manager install_bundle in the Web UI). No restart is needed: the widget appears in the composer dock right after install.

Files

FilePurpose
index.jsHost half: event aggregation, pricing, persistence, GET /usage-pulse/api/snapshot
client.jsClient half: composer-dock widget + detail panel
holidays.jsChinese statutory holidays (off-peak days)
locale/Bundle metadata (zh / en)
cordis.patch.ymlLoader patch that inserts the plugin

Notes

  • Peak-regime accuracy depends on holidays.js: add the next year's State Council holiday list once it is published (usually the preceding November). A stale list only mislabels holiday days.
  • Usage that happens while the plugin is disabled is not backfilled (the persisted session log is a concatenated zstd frame stream that Node cannot decode frame-by-frame reliably).

Licensed under the MIT License.