Lithane/dsh-account-balance ↗★ 0

@lithane/dsh-account-balance

侧栏底部常驻显示账户余额与今日花费卡片 适合需要实时监控DeepSeek API使用成本、查看多层级费用明细并快速充值的用户。

套件
@lithane/dsh-account-balance
相容性
待驗證
版本
0.1.3
授權
MIT
最近更新
2026年10月9日

安裝

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

配置

写在 profile 的 cordis.patch.yml(桌面端是 ~/.dsh/profiles/desktop/):

- id: account-balance
  name: '@lithane/dsh-account-balance'
  config:
    balanceBaseURL: https://api.deepseek.com   # 回退路径的余额接口
    balanceApiKeyEnv: DEEPSEEK_API_KEY         # 凭据服务里的 ref
    requestTimeoutMs: 5000
    modelId: deepseek-v4-flash                 # 计价模型
    lowThreshold: 5                            # 余额低于此值变黄
    criticalThreshold: 1                       # 余额低于此值变红

更多配置项与定价说明见 docs/upstream/README.md。