lanlandeli/dsh-usage-stats
DeepSeek Harness usage statistics plug-in|Token total amount and composition, 7/30-day trend, annual active heat map, model proportion, workspace/task filtering, CSV/JSON export
dsh-usage-stats is a lightweight usage analytics plugin for the DeepSeek Harness Web UI: it presents lifetime token totals, daily trends, activity dates, and model distribution in one dashboard. Modules: Overview (lifetime token/session/message/active-day/streak/top-model totals), Daily trends (7- or 30-day token usage with per-model hover), Activity heatmap (one year of activity levels with daily token/call details), Scope filters (workspace / main task / subtask), Call details (per-call latency, tokens, cache rate, model, reasoning effort with filters and pagination), and Data export (CSV or JSON). 0.1.16 declares every DeepSeek Harness package used by the plugin as a peer dependency to prevent plugin-private copies and split module identity; 0.1.13 fixed subtasks attributing inherited parent context to their own usage.
Install
dsh plugin --profile web add dsh-usage-statsInstall with dsh plugin --profile web add dsh-usage-stats, restart the Web profile, and open Usage Statistics above Settings in the sidebar. Update with dsh plugin --profile web update dsh-usage-stats; remove with dsh plugin --profile web remove dsh-usage-stats. The plugin integrates through Harness extension APIs without modifying the Web UI or official npm packages; statistics remain on the local machine.
Compatibility
DeepSeek Harness Web UI; Node >= 22.19 || >= 24; no third-party charting library and no background polling; UI follows the Harness language (Chinese/English) and light/dark theme automatically. Config options: indexConcurrency (1-8, default 2), cacheWriteDelayMs (default 1000), apiPath (/usage-stats/v1).
Details
- Repo: lanlandeli/dsh-usage-stats
- Category: Files & Data
- Stars: 10
- Version: npm package dsh-usage-stats 0.1.16 (registry-verified 2026-08-23); lightweight usage analytics plugin
- Last push: 2026-08-17
- First seen: 2026-08-14
Recent updates
The current README documents the module table, install/update/remove commands, config options, the 0.1.16 peer-dependency fix, the 0.1.13 subtask usage fix, and screenshots for light/dark themes.
FAQ
- Where do I find the dashboard?
- After install and restart, open Usage Statistics above Settings in the sidebar of the DSH Web UI.
- Does it send my data anywhere?
- No — statistics remain on the local machine; the plugin integrates through Harness extension APIs without modifying the Web UI or official npm packages.
- What did 0.1.16 fix?
- It declares every DeepSeek Harness package used by the plugin as a peer dependency, preventing plugin-private copies and split module identity inside a profile.
Alternatives
GooodWei/context-vista · xiufengsun/TokenTracker · Ychris12138/dsh-usage-stats