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.

Valley Meter — DSH Plugin for DeepSeek Harness
← Plugins
V

dsh-valley-meter

Valley Meter

Peak/Off-Peak Meter: DeepSeek usage assistant. A minimalist balance badge above the input box, showing only “¥ + balance amount” inside; click ¥ to open the official top-up page in a new tab. Hover to display a 24-hour peak/off-peak timeline (orange = peak, blue = off-peak). Applies the official all

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

npx -y @deepseek-ai/dsh plugin --profile web add github:uckkk/dsh-valley-meter#6477f59100cc3b913fab930aa26ee83f9873053f
READMECompatibilityVersions
余额数字徽章悬停态
悬停展开演示

Description

Peak/Off-Peak Meter: DeepSeek usage assistant. A minimalist balance badge above the input box, showing only “¥ + balance amount” inside; click ¥ to open the official top-up page in a new tab. Hover to display a 24-hour peak/off-peak timeline (orange = peak, blue = off-peak). Applies the official all-day weekend off-peak rule (from 2026-08-23, Saturday and Sunday are charged at off-peak rates all day, with the interface and billing synchronized). Official balance refreshes in real time every 5 seconds, with today’s usage metered independently. All-in-one DeepSeek peak/valley meter: minimal balance chip with a one-click top-up link, hover 24h peak/valley timeline, official weekend all-off-peak rule (since 2026-08-23), 5s balance refresh and independent spend metering.

Compatibility and provenance

Valley Meter is published as dsh-valley-meter and currently resolves to version 0.1.6. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/15/2026

Versions

0.1.6stable
9/15/2026
0.1.4stable
9/14/2026
0.1.3stable
9/14/2026
Show 3 more versionsCollapse versions
0.1.2stable
9/7/2026
0.1.1stable
9/6/2026
0.1.0stable
8/22/2026

Related plugins

Loading related plugins…

Latest
0.1.6
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 2
Weekly downloads
0
Last push
9/15/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.

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 a dedicated pet bubble for the current providerWhale 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-valley-meter

DeepSeek Harness 峰谷电表 · 余额徽章 + 悬停峰谷时间轴

余额数字徽章 · 悬停 24 小时峰谷时间轴 · 官方余额 5 秒刷新 · 今日消耗独立计费 — 10 套沉稳配色预置 + 谷/峰色自定义,全中文界面。

English | 中文

余额数字徽章

悬停浮现峰谷时间轴

悬停态

悬停展开演示

这是什么

一个极简的 DeepSeek Harness 插件,在输入框上方右侧挂一枚低调的余额数字徽章;光标悬停时,徽章左侧浮现一条 24 小时峰谷时间轴:

读数说明
余额数字徽章默认只显示官方账户余额数值(插件独立查询 /user/balance,每 5 秒自动刷新);框内分「¥」「数值」两组,默认无任何多余元素
峰谷时间轴悬停浮现的 24 小时横向时间轴:峰段(橙) / 谷段(蓝)双色 + 白色发光指针标当前本地时刻,00/06/12/18/24 刻度在上方;周末全天低谷时整条轴为谷色
今日消耗当日费用(插件独立监听 llm/stream 实时计费,写入账本)

核心特性

  • 💳 一键充值:点击框内的人民币符号「¥」即在新页签打开 DeepSeek 官方充值页(platform.deepseek.com/top_up),余额不够时不用再翻菜单找入口;光标移入徽章时,¥ 身下会浮现一枚圆形底色,其左侧与徽章左端圆角完全重合。
  • 🎨 配色方案:内置 10 套沉稳配色预置(One Dark / Dracula / Nord / Tokyo Night / Gruvbox / Solarized + 中国传统色 / 潘通),也可用拾色器自定义谷色 / 峰色,改完即时生效。
  • 👆 悬停即见:默认只显示余额数字,光标悬停才浮现峰谷时间轴,不占输入区空间。
  • ⚡ 实时余额:官方余额每 5 秒自动刷新,无需手动操作。
  • 🕐 本地时区时间轴:峰/谷时段按 UTC 窗口自动换算成本地时区显示,白色发光指针标当前时刻。
  • 🗓️ 周末全天低谷(官方规则):2026-08-23 00:00 起,周六、周日全天不再区分峰谷,统一按低谷价计费。插件按北京时间判断周末,当天整条时间轴显示为谷色,计费自动走低谷价(不会再把周末按高峰价多算一倍);倒计时直接指向下周一 09:00 的首个峰时。可在设置面板关闭该规则。
  • 🔌 完全独立、实时计费:插件自己监听 llm/stream 捕获用量、按官方价格折算费用,自己查询 DeepSeek 官方余额,自己维护账本(~/.dsh/storages/valley-meter/ledger.json),不依赖任何其它插件。

安装

# npm(推荐)
npm install dsh-valley-meter

# 或从 GitHub 直发安装
dsh plugin add github:uckkk/dsh-valley-meter

然后重启 dsh web 页面即可看到余额数字徽章。

配置

打开 设置 → 峰谷电表:

  • 配色方案:10 套预置(编辑器主题 6 套 + 中国传统色 / 潘通 4 套)或「自定义」。
  • 谷时颜色 / 峰时颜色:拾色器,选「自定义」后即时生效。
  • 余额显示标题 / 今日花费显示标题 / 显示倒计时:分别开关。
  • 周末全天低谷:默认开启。官方 2026-08-23 起周六、周日全天按低谷价计费;若官方规则再变,可在此关闭,关闭后周末恢复按峰谷窗口计费。

配置写入 ~/.dsh/storages/valley-meter/config.json。

数据来源说明

本插件独立计费与查询,不依赖任何其它插件:

  • 今日费用:监听 llm/stream 捕获每次调用的 usage,按内置模型价格表(含峰/谷两档)+ 峰谷时段折算,写入自己的账本 ~/.dsh/storages/valley-meter/ledger.json。
  • 账户余额:用 DSH 凭据库/DEEPSEEK_API_KEY 查询 DeepSeek 官方 /user/balance,每 5 秒自动刷新。
  • 峰谷窗口:内置于插件(默认 UTC 01–04、06–10 = 北京时间 09:00–12:00、14:00–18:00),写在 config.json 的 peakWindows 里;设置面板目前只提供周末规则开关,不提供窗口编辑器。
  • 周末规则:官方 2026-08-23 00:00(北京时间)起,周六、周日全天统一按低谷时段价格计费;工作日高峰为北京时间 9:00–12:00 与 14:00–18:00,低谷价为高峰价的一半。插件按北京时间判定周末,生效前的时刻仍按原规则计算。

未配置 API Key 时,余额显示「暂无数据」,今日费用仍正常累计,不会报错。

开发

pnpm install
pnpm run build   # 构建 lib/client.js bundle
pnpm run check   # typecheck + test + build

License

MIT