DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

ZKY172 /

ZKY172/dsh-simple-balance

Verified

简便余额 — DeepSeek Harness 侧栏余额/时段价/今日用量小组件

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@afcc6d68

简便余额 · dsh-simple-balance

侧栏一行,随时看到 余额、当前时段单价 和 今日已用。点开这一行还能看到完整的用量与价目明细。

一个 DeepSeek Harness(dsh)插件。挂在侧栏面板列表里,位置在「新建会话」下方、「工作区」上方,与「插件」「插件市场」同一列。

它显示什么

侧栏效果

侧栏那一行是两行小字:

余额 ¥23.02 · 今日用量 ¥0.03
谷价 ¥1.00/M —峰价 09:00
  • 第一行:账户余额(荧光黄)、今日已用金额(蓝)。
  • 第二行:当前时段的输入单价(谷价绿 / 峰价红),以及下次峰谷切换的时刻。

点开这一行会进入明细页:账户余额、今日用量、当前时段与单价、缓存命中 / 未命中 / 输出三项的价目表,以及一个手动刷新按钮。

数据每 30 秒刷新一次,窗口重新获得焦点时也会立刻刷新。

安装

dsh plugin --profile web add dsh-simple-balance

或者从源码安装:

dsh plugin --profile web add github:<owner>/dsh-simple-balance

数据从哪来

  • 余额:优先读 dsh 的 deepseekAccount 服务(与「设置 → 账号与余额」同源)。这个服务是可选的,宿主没有时会自动回退到下面的账本文件,插件不会因此加载失败。
  • 今日已用:读 ~/.dsh/.dshw-usage.json(由 dsh-cost-meter 维护的本地账本,实时落盘)。
  • 单价:官方人民币价目。谷时 ¥0.02 / ¥1.00 / ¥4.00 每百万 token(缓存命中 / 未命中 / 输出),峰时翻倍。

峰谷规则:北京时间周一至周五 09:00–12:00、14:00–18:00 为峰时,其余时间(含周末与法定节假日)为谷时。2026 年的法定节假日已内置;每年国务院公布次年安排后需要更新一次。

隐私

插件只读本机的账本文件与宿主提供的余额接口,不发任何网络请求,不上报任何数据,不读取任何凭据。宿主的余额接口由 dsh 自己鉴权,插件只是调用它。

能力声明

  • 读文件:~/.dsh/.dshw-usage.json
  • 调用宿主服务:deepseekAccount(可选)
  • 注册一条只读 HTTP 路由:GET /plugins/dsh-simple-balance/summary
  • 无 shell、无网络出站、无凭据访问

卸载

dsh plugin --profile web remove dsh-simple-balance

许可证

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit afcc6d68a80f

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout