NOirBRight/dsh-usage-monitor2

dsh-usage-monitor

适用于 DSH 的会话日志 Token 使用量仪表盘。

AI 分析

核心用途是统计并图表化展示 Token 消耗。适合需要监控各模型、服务商或工作区的请求数、Token 消耗及缓存命中率的用户。数据直接从本地会话日志中解析。

套件
dsh-usage-monitor
版本
0.1.0
授權
MIT
最近更新
2026年8月18日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:NOirBRight/dsh-usage-monitor

dsh-usage-monitor

English | 中文

Usage dashboard for DeepSeek Harness. It folds provider-reported token usage out of session logs and charts it in Settings.

Settings → Usage: tiles, stacked chart, and provider table

What it shows

  • Tokens, requests, output tokens, and cache-hit rate
  • Stacked chart with Metric (token / request), By (provider / model / workspace), Group (day / week)
  • Week, month, and custom ranges
  • A breakdown table that follows the current By grouping

Subscription quotas are not fetched.

Installation

DeepSeek Harness 0.1.0-rc.6 or later is required. Install directly from GitHub:

dsh plugin --profile web add github:NOirBRight/dsh-usage-monitor#v0.1.0
dsh web

The repository tracks release-ready lib artifacts, so GitHub installation needs no build-script allowlist. A source checkout can use a link installation after running pnpm run build.

Then open Settings → Usage.

Data

Reads ctx.sessionQuery (live + persisted sessions). Does not scan session.jsonl.zstd itself and does not read leftover community cache files.