zhangjianyu1006156/dsh-balance-display ↗★ 0
dsh-balance-display
DeepSeek API balance pill for the DSH Web GUI: shows remaining credit in the left sidebar footer with low-balance alerts, spend history, and a one-click top-up link. The API key never leaves the host process — the host half resolves it through the dsh credentials service and queries api.deepseek.com/user/balance; the browser half only fetches redacted balance JSON from a loopback route.
AI Analysis
核心用途是在 Web 侧边栏直观展示 DeepSeek 官方 API 的账户余额,并提供低余额浏览器通知。适合使用官方 API 且需要监控额度消耗的用户。余额历史数据仅存于浏览器本地。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhangjianyu1006156/dsh-balance-displayREADME
Read the full README ↗配置
设置页「余额显示」tab:
| 项 | 说明 |
|---|---|
| 侧边栏显示余额角标 | 开关胶囊显示 |
| 自动刷新间隔(分钟) | 默认 10 |
| 低余额预警阈值(¥) | 默认 5 |
| 余额不足时浏览器通知 | 需授权通知权限 |
| Agent 协作 | 在系统提示中声明插件(实时同步到主机端) |
余额历史与偏好存于浏览器 localStorage(dsh.balanceDisplay.*),主机端不感知、不存储。