mike-lee0120/dsh-cost-dashboard
Token cost dashboard over all local sessions, priced with DeepSeek peak and off-peak rates and rendered inside Settings.
Reads token usage out of every local session, separates input, output and cache tokens, and prices them with a built-in table that models DeepSeek's time-of-day peak and off-peak rates. It renders summary cards under Settings, and because the settings shell hardcodes its nav icons the author also adds a sidebar footer button that opens the same dashboard in an anchored panel. Pricing is overridable, the catalog auto-syncs, and an optional path reads actual billing figures for comparison against the estimate.
Install
dsh plugin --profile web add github:mike-lee0120/dsh-cost-dashboardThe README shows the same line with a local /path/to/ variant first; the GitHub form above is the one that works outside a checkout. After install, dsh plugin add appends the bundle to dsh.profile.bundles automatically — restart dsh web, refresh the page and open Settings, then Cost Dashboard.
Compatibility
Requires dsh 0.1.0-rc.7 or later and Node 22.15+, because it reads the same node:zlib zstd API the host uses for session logs. Amounts are shown in CNY only; USD-priced entries from imported catalogs convert at a configurable fx.cnyPerUsd rate (default 6.79). The README keeps a Known limitations section rather than presenting the numbers as exact.
Details
- Repo: mike-lee0120/dsh-cost-dashboard
- Category: Usage & Billing
- Stars: 5
- Version: not published to npm; installs from the GitHub default branch
Alternatives
nielskrikke/dsh-cost-widget · igormel81/dsh-chat-cost · Sttrevens/dsh-cost-meter