zhangjianyu1006156/dsh-balance-display0

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 분석

核心用途是在 Web 侧边栏直观展示 DeepSeek 官方 API 的账户余额,并提供低余额浏览器通知。适合使用官方 API 且需要监控额度消耗的用户。余额历史数据仅存于浏览器本地。

패키지
dsh-balance-display
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 15.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhangjianyu1006156/dsh-balance-display

配置

设置页「余额显示」tab:

说明
侧边栏显示余额角标开关胶囊显示
自动刷新间隔(分钟)默认 10
低余额预警阈值(¥)默认 5
余额不足时浏览器通知需授权通知权限
Agent 协作在系统提示中声明插件(实时同步到主机端)

余额历史与偏好存于浏览器 localStorage(dsh.balanceDisplay.*),主机端不感知、不存储。