xushuojie/dsh-usage-stats

xushuojie★ 0JavaScript最后同步: 2026-08-17

在 GitHub 打开

README 摘要

English 简体中文 dsh-usage-stats Token usage statistics plugin for the DeepSeek Harness web UI . Adds a 用量统计 entry to the sidebar footer, directly above the 设置 (Settings) button: - Today total at a glance — the trigger shows a fuzzy figure of today's token usage (in 千 / 万 / 百万 / 千万 / 亿), with the exact value on hover. - Stats modal — a summary (uncached input / output / cache read / cache write, session count) plus a per-session breakdown list, with time filters 全部 / 今日 / 24h / 7 天 / 30 天 . - Durable ledger — the per-session tokenUsage projection disappears when a session is deleted; this plugin keeps its own copy in localStorage ( dsh.usageLedger.v1 ) so historical totals survive session removal. Best-effort: falls back to in-memory when storage is unavailable. Screenshots Sidebar footer entry (above the Settings button): Usage stats modal: Requirements - @deepseek-ai/dsh web profile (any recent 0.1.0-rc.x ) - Peer packages: react , @deepseek-ai/cordis , @deepseek-ai/dsh-client-runtime , @deepseek-ai/dsh-client-locale , @deepseek-ai/dsh-client-ui-primitives , @deepseek-ai/dsh-client-ui-slots (the dsh web profile already ships these). Install 1. Install the package where the profile ca…

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdsh-pluginplugintoken-usageweb uisidebar

分类