fangweixuan26-hash/dsh-dual-balance ↗★ 0

dsh-dual-balance

在状态栏显示DeepSeek账户余额 适合需要随时监控API Key余额和平台钱包额度的用户。

包名
dsh-dual-balance
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年9月29日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fangweixuan26-hash/dsh-dual-balance

配置

无需配置。内部常量:

常量默认说明
ROUTE(host)/api/dsh-dual-balance/status只读路由(?refresh=1 绕过缓存)
API_BALANCE_URL(host)https://api.deepseek.com/user/balance官方余额接口
API_KEY_REF(host)DEEPSEEK_API_KEY凭据库/环境变量引用名
CACHE_TTL_MS(host)60000服务端缓存窗口
API_TIMEOUT_MS(host)10000官方接口超时
POLL_MS(client)60000前端轮询间隔

要显示别的 API Key,把 API_KEY_REF 改成 ~/.dsh/.credentials.yaml 里的另一个名字即可。