DSH Balance
LemCAE/dsh-balance · productivity
A Host + Web Client composition plugin for deepseek-harness (dsh): queries the DeepSeek Open Platform account balance and estimates the current session's spend.
★ 5GitHub stars
0Forks
2026-08-25Last updated
TypeScriptLanguage
MITLicense
Key features
- Balancequeries the official GET using the harness's own DEEPSEEK_API_KEY credential (the key travels only over a bounded node subprocess's stdin — never in command lines, logs, or UI).
- Session spend estimatefolds the provider-reported token usage from the session log (uncached input / cache-hit input / output) and prices each step with the official peak/off-peak table (peak 9:00–12:00 and 14:00–18:00 Beijing time).
- Estimate only — the official bill is authoritative.
- hover (500 ms) shows a detail tooltip below the button, horizontally centered and viewport-clamped.
- Changes persist in the settings document across restarts.
Requirements
- billthe spend is computed from the local session log and may differ from the official bill (provider-side caching policy, unlogged requests, model renames, price changes).
- Edit the price table in Settings to keep it current.
Install command
dsh plugin --profile web add github:LemCAE/dsh-balance