Dsh Api Balance
9Epuuuu/dsh-api-balance · skills
DeepSeek account balance readout for DSH Web (dsh-plugin).
★ 2GitHub stars
0Forks
2026-08-25Last updated
TypeScriptLanguage
BSD-3-ClauseLicense
Key features
- Host halfregisters GET /api/balance (loopback-only), resolves the API key through DSH's ctx.credentials service, fetches and caches the DeepSeek balance for the configured interval, and registers the api-balance settings namespace.
- DeepSeek account balance in the DSH Web composer stats line: an ambient readout, always visible above the input box, that shows the account balance and the per-session spend
- The account balance is global
- A function/namespace plugininject / Config / apply, no default export.
- Client halfmounts a line in conversation.composer.dock (the built-in stats line above the input box) and a settings card in the Web UI plugin group.
Requirements
- Account-level snapshotthe balance is a provider-side snapshot with minute-level latency, not per-message billing precision.
- Spend driftthe balance-difference spend includes any other concurrent consumption (other sessions, tools) and clamps to zero across a top-up.
Install command
dsh plugin --profile web add github:9Epuuuu/dsh-api-balance