dsh-simple-balance: View Balance, Hourly Rate, and Daily Usage in One Line on the Sidebar
dsh-simple-balance (Simple Balance) is a DSH client plugin maintained by ZKY172. It adds a row below the "New Session" button in the Web sidebar, displaying the account balance, current session input unit price, and today's usage amount, with a details page accessible by clicking. The balance is primarily read from the host deepseekAccount service, with an optional fallback ledger; today's usage is read from `~/.dsh/.dshw-usage.json`. The unit price follows the official on-peak/off-peak pricing schedule, doubling during peak hours. The plugin refreshes every 30 seconds and when the window gains focus. It performs read-only file operations and calls host services without outbound network traffic. The installation command is `dsh plugin --profile web add dsh-simple-balance`, and it is released under the MIT License.
Read More