hb-degithub/dsh-usage-guard

hb-degithub★ 0JavaScript最后同步: 2026-08-20

在 GitHub 打开

README 摘要

dsh-usage-guard English 中文 Usage statistics panel for DeepSeek Harness (DSH) Web GUI — silent background collection, per-model analytics, cost estimation and a daily-limit guard. Features - Silent collection — hooks session events, folds every assistant message's token usage into daily buckets per provider × model; survives restarts, backfills from session logs on first run - Dashboard in Settings → Usage: six stat cards (tokens, sessions, messages, active days, current streak, top model), a GitHub-style activity heatmap (continuous year view, weekday/month labels, hover detail card per day), a multi-series line/area trend chart (input / output / cache hit / cache write / cost, dual axes, 7d/30d switch) and a model-usage donut - Cost estimation — configurable per-model prices (input / output / cache read / cache write per 1M tokens); built-in DeepSeek list prices; models without a price are excluded from cost instead of guessed - Daily-limit guard — optional daily token / cost caps; warn mode shows a global banner, block mode aborts over-limit LLM requests before they hit the network - Bilingual (zh/en), follows the DSH theme tokens, zero external runtime dependencies Install From …

在 GitHub 查看完整 README →
工具/开发dsh-plugin

分类