patch + dsh.client 浏览器
alanzhao0128/dsh-balance-monitor · 技能
功能: 实时余额 · 实现: 服务端调用 GET $DSHHOME/.credentials.yaml 中的 DEEPSEEKAPIKEY(环境变量优先)
★ 3GitHub 星标
0分支
2026-09-08最近更新
JavaScript开发语言
MIT许可证
主要功能
- 实时余额服务端调用 GET $DSH_HOME/.credentials.yaml 中的 DEEPSEEK_API_KEY(环境变量优先)
- 缓存与超时时长来自设置面板(network.)。
- API key 与平台 token 永不离开服务端浏览器半只能通过 RPC 通道看到余额/花费数字,接触不到凭证。
- 今日/7日/30日花费(官方)配置 DEEPSEEK_PLATFORM_TOKEN 后,服务端调用官方用量接口 platform.deepseek.com/api/v0/usage/cost(与平台用量页同一份数据),按日期窗口累加。
- 7日 = 今天往前 6 天,30日 = 今天往前 29 天(均含今天)。
安装命令
dsh plugin --profile web add github:alanzhao0128/dsh-balance-monitor