dsh-balance-pie
DSH 插件:可拖拽悬浮余额饼图,展示每日初始余额、各项目真实消耗(按余额实际下跌统计)与剩余余额;支持充值自动识别、官方峰谷计价分摊、按月历史热力图与中英文切换。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:f1yan9/dsh-balance-pie说明文档
阅读完整 README ↗📖 Usage
- Floating pie: drag to reposition; hover a slice for details; use — (minimize), ⚙ (settings), ↻ (refresh) and the recharge icon buttons.
- Sidebar: minimized state becomes a bar chart (horizontal when expanded, vertical + balance on the narrow rail); click it to expand the pie back.
- Settings(Balance): the parameters sub-page holds all options (polling, currency, prices, history, language…); the history sub-page shows the heatmap and table.
⚙️ Configuration
Edit in the settings drawer(Balance section), or via cordis.patch.yml in your DSH profile. Common options:
| Option | Description | Default |
|---|---|---|
pollIntervalMs | Balance poll interval | 10000 ms |
pricesJson | Per-model off-peak prices (per 1M tokens) | presets for deepseek-v4-flash |
peakMultiplier | Peak-hour price multiplier | 2 |
language | UI language (auto follows DSH) | auto |
displayCurrency | Display currency (converted) | auto (account currency) |
fxRatesJson | CNY→target-currency rates JSON | {"USD":0.14,"EUR":0.13,"GBP":0.11,"JPY":20,"KRW":190} |
topUpUrl | Recharge page URL | official top-up page |