CN-Leo/dsh-deepseek-balance0

dsh-deepseek-balance

Real-time DeepSeek account balance display in the DSH web UI, via the official /user/balance API. API key is resolved from the DEEPSEEK_API_KEY credential.

包名
dsh-deepseek-balance
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

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

配置(必需)

插件通过 credentials 服务解析 DEEPSEEK_API_KEY,按以下顺序查找(任选其一):

  1. 环境变量 DEEPSEEK_API_KEY

  2. $DSH_HOME/.credentials.yaml

    DEEPSEEK_API_KEY: sk-xxxxxxxxxxxxxxxx
    

配置后无需重启插件:每次请求都会重新解析凭据。

使用

  • 余额条显示在会话输入框下方,绿点 = 正常,黄点 = 加载中,红点 = 获取失败
  • 悬停(hover)余额条可查看各币种明细:总额 / 赠送 / 充值 / 账户可用状态
  • 每 15 秒自动刷新一次