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.

AI Analysis

核心用途是在 DSH 输入框下方直观展示 DeepSeek 官方账户的实时余额与扣费明细。适合需要密切监控 API 消耗额度的开发者或高频用户。

Package
dsh-deepseek-balance
Version
0.1.0
License
MIT
Last updated
Aug 17, 2026

Install

$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 秒自动刷新一次