dsh-token-usage

Token usage panel in DeepSeek Harness Settings: folds session logs into day, week and month totals per model or per provider, persisted in the plugin storage domain and served over a same-origin /token-usage-rpc route; SVG line chart with crosshair hover, ranking with share and optional cost, cache hit-rate and cache read/write cards, a user-supplied price table priced per million tokens, daily and monthly budget alerts, CSV or JSON export of the current range, auto-refresh while visible, preset and custom start/end date ranges, and a rebuild that asks for confirmation before dropping history whose session logs no longer exist.

Overview

Token usage panel in DeepSeek Harness Settings: folds session logs into day, week and month totals per model or per provider, persisted in the plugin storage domain and served over a same-origin /token-usage-rpc route; SVG line chart with crosshair hover, ranking with share and optional cost, cache hit-rate and cache read/write cards, a user-supplied price table priced per million tokens, daily and monthly budget alerts, CSV or JSON export of the current range, auto-refresh while visible, preset and custom start/end date ranges, and a rebuild that asks for confirmation before dropping history whose session logs no longer exist.

Installation

Install from GitHub

dsh plugin --profile web add github:GIN0076/dsh-token-usage

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.