Turbo-Harry/dsh-status-balance ↗★ 0
dsh-status-balance
DSH host+client plugin: shows the DeepSeek API account balance as a floating badge in the bottom-right corner.
AI Analysis
核心用途是监控 DeepSeek 官方 API 账户余额,并在余额不足时进行闪烁和弹窗提醒。适合使用官方 API 且需要防止因欠费导致服务中断的用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗配置
改 lib/index.js 顶部的常量:
POLL_INTERVAL_MS:轮询间隔(默认 30s)API_KEY_REF:凭证引用名(默认DEEPSEEK_API_KEY)
改 lib/client.js 顶部的常量:
LOW_BALANCE_THRESHOLD:低余额提醒阈值(默认10,单位同币种)LOW_BALANCE_CURRENCY:按哪个币种判断(默认"CNY")
当对应币种的 total_balance 低于阈值时,角标变为琥珀色并脉冲闪烁,显示「⚠ 余额不足 ¥xx」;首次跌破阈值时还会在页面顶部弹一条一次性提示。鼠标悬停角标显示「余额低于 ¥10,请及时充值」。
密钥存在 ~/.dsh/.credentials.yaml,或走 DEEPSEEK_API_KEY 环境变量(dsh-credentials-local 会继承环境)。