LemCAE/dsh-balance5

@lemcae/dsh-balance

DeepSeek Open Platform balance and session consumption readout (host + web client)

AI Analysis

核心用途是实时监控 DeepSeek 官方 API 的余额和单次会话花费。适合使用官方 API 且需要控制预算的个人或团队。

Package
@lemcae/dsh-balance
Version
0.1.7
License
MIT
Last updated
Aug 16, 2026

Install

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

Usage

  • Chip: shows 余额 ¥x | 会话 ≈¥y; click to refresh; hover for details (breakdown, model, 更新于, refresh cadence / pause note).
  • Settings: 设置 → DeepSeek 余额 — balance rows, 自动刷新间隔 (15 s … 5 min or custom), 自动刷新开关, 界面语言 (auto / 中文 / English), price-table editor (保存 persists), peak-hours hint.
  • Command (also usable from the command palette): /dsh-balance [refresh | interval | prices | language | auto-refresh ].
  • Tool: deepseek_balance (no arguments).

Configuration

Settings namespace dsh-balance:

FieldDefaultMeaning
autoRefreshtrueEnable/disable the auto-refresh timer (/dsh-balance auto-refresh on|off)
refreshIntervalMs30000Active auto-refresh interval (5 000–600 000 ms)
languageautoPlugin UI language:auto (follow host UI), zh-CN, or en
pricessee source{ models: { deepseek-v4-flash, deepseek-v4-pro, default } }, each model { offPeak, peak } rates in CNY per 1M tokens

Prices are picked by Beijing hour: peak for 9:00–12:00 and 14:00–18:00, offPeak otherwise.