NebulaXIX/dsh-account-balance-badge
Keeps the signed-in DeepSeek account balance in the DSH left sidebar, with a top-up button that opens DeepSeek's official recharge page in-app.
Puts spend in the one place you look at constantly. A full-width balance row in the sidebar footer, directly above Settings, shows every wallet the account service returns with the platform's currency formatting (CNY or USD, two decimals with digit grouping, sub-cent amounts as <¥0.01), and appends positive bonus credit as a small note. The Top up button beside the amount opens DeepSeek's official top-up page — as an in-app native view on Desktop with a Back to DeepSeek Harness bar, or a new tab on Web — and returning re-reads the balance. Colours come from host theme tokens, so light and dark themes and the collapsed 36-pixel rail both work, and the balance is read through the host account service rather than exposing account tokens to the page.
Install
dsh plugin --profile web add github:NebulaXIX/dsh-account-balance-badgeNot on npm yet, so the README's recommended route is the Web UI: Plugins then Add plugin, then the Git address github:NebulaXIX/dsh-account-balance-badge (tracks main) or a pinned #v0.2.0, a release tarball path, or a local checkout — then Install, then Enable now. The line above is the CLI equivalent for a non-Desktop profile, and desktop is reserved for the Desktop app, which manages that profile itself. The README includes a step-by-step macOS walkthrough in both languages.
Compatibility
Requires a Harness build with the Host account service and the Client Remote account.getBalance method. The in-app top-up view is a Desktop-owned native view authenticated by the Desktop's own Platform session; in a plain Web UI the same page opens in a new tab instead, and the button is disabled while signed out. Balance refresh is once on mount, every 60 seconds while visible, on window focus, on click and after returning from top-up, with in-flight reads deduplicated.
Details
- Repo: NebulaXIX/dsh-account-balance-badge
- Category: Usage & Billing
- Stars: 0
- Version: Unpinned; this line tracks the GitHub default branch (releases are tagged, e.g. v0.2.0)
Alternatives
GPIOX/dsh-api-balance · devacc8/dsh-billing-badge · LemCAE/dsh-balance