1841220388zzzcccxxx-star/dsh-token-stats
1841220388zzzcccxxx-star★ 1JavaScriptLast synced: 2026-08-15
Token usage & cost statistics plugin for DeepSeek Harness — per model / date / session, cost estimation (USD/CNY), CSV/JSON export | DeepSeek Harness Token 用量统计插件:按模型/日期/会话统计用量与费用,支持 CSV/JSON 导出
README excerpt
dsh-token-stats Token usage & cost statistics plugin for DeepSeek Harness (DSH). Tracks token consumption per model , per date , and per session with cost estimation in USD / CNY , served as a native page under Settings → 📊 Token Stats . Installed as an external DSH plugin, it loads automatically at DSH startup — no manual activation needed. 中文说明 Features - 📊 Native settings page (dark/light aware, follows DSH theme tokens, i18n zh/en) - 📈 Daily / weekly / monthly trends with an SVG line chart (zero dependencies) - 💰 Cost estimation (USD & CNY) from a built-in pricing table for DeepSeek, GPT, Claude, Gemini, Qwen… - 🔁 History backfill: scans all persisted session logs at startup, so stats survive restarts - ⚡ Fast: batched session-title reads with an in-memory cache (TTL 5 min), single-pass summaries, memoized pricing - 📤 CSV / JSON export, filterable by model and session Screenshot Installation The plugin is installed as an external DSH profile dependency. 1. Clone / copy this repository to a local folder, e.g. D:\dev\dsh-token-stats 2. In your DSH profile manifest ( /.dsh/profiles/web/package.json ): 3. cd /.dsh/profiles/web && pnpm install 4. Restart DSH web. Open Settings…
View full README on GitHub →