dsh-usage-dock

Usage and balance dock for the DeepSeek Harness sidebar: today's spend next to a Beijing-time peak/off-peak pricing band, today's tokens and cache hit rate, and a plain balance row that opens a detail panel. The panel lists the balance account, an eight-week activity heatmap where any day can be selected, and that day's tokens, cache hit rate, peak/off-peak cost and per-session breakdown with each session's own composition bar. Usage is read from the local session logs only; the only outbound request is the balance query against the provider base URL already configured in DSH. A heavily rewritten fork of Aisland-SJL/dsh-usage that uses the same plugin id (usage), so install only one of the two.

Overview

Usage and balance dock for the DeepSeek Harness sidebar: today's spend next to a Beijing-time peak/off-peak pricing band, today's tokens and cache hit rate, and a plain balance row that opens a detail panel. The panel lists the balance account, an eight-week activity heatmap where any day can be selected, and that day's tokens, cache hit rate, peak/off-peak cost and per-session breakdown with each session's own composition bar. Usage is read from the local session logs only; the only outbound request is the balance query against the provider base URL already configured in DSH. A heavily rewritten fork of Aisland-SJL/dsh-usage that uses the same plugin id (usage), so install only one of the two.

Installation

Install from GitHub

dsh plugin --profile web add github:SayrenLin/dsh-usage-dock

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.