@dsh-external/余额悬浮球
DSH Web 余额悬浮球插件,在界面上悬浮显示 DeepSeek 账户余额,支持点击直达官网充值页,并提供低余额红色告警。
AI 分析
核心用途是直观监控 DeepSeek 账户余额并便捷充值。适合频繁使用 DeepSeek 接口、需要防止因余额不足导致任务中断的 DSH Web 用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mxl2498/dsh-balance说明文档
阅读完整 README ↗配置
在 cordis.patch.yml(本包自带,可被 profile 的 patch 覆盖)中调整:
| 配置项 | 默认值 | 说明 |
|---|---|---|
cacheSeconds | 60 | 服务端余额缓存秒数 |
topUpUrl | https://platform.deepseek.com/top_up | 充值页地址 |
enabled | true | 是否启用悬浮球 |
refreshSeconds | 60 | 客户端自动刷新间隔秒数 |
lowBalanceThreshold | 5 | 余额低于该值(CNY)时红色告警 |
position | bottom-right | 默认悬浮位置(bottom-right / top-right / bottom-left / top-left) |