dsh-token-stats: Track Total Session Tokens by Day/Week/Month in DSH Settings
dsh-token-stats is a DSH client plugin maintained by skyrocks. Under "Settings → Token Usage," it aggregates assistant token usage from local logs across all sessions, featuring daily/weekly/monthly summary cards, trend stacked charts, model distribution breakdowns, and session rankings. It does not invoke models or modify sessions; the ledger is stored separately at ~/.dsh/token-stats/usage.json. A full DSH restart is required after installation, and historical sessions are backfilled asynchronously on first open. It is ideal for developers who need a local, global token self-audit and want to track usage alongside sub-agents.
Read Moredsh-token-stats: Local Token Usage Tracking and Cost Estimation in DSH
dsh-token-stats is a DeepSeek Harness plugin maintained by fanilly. It opens a Token Usage panel in Settings, reads ~/.dsh/sessions to summarize request counts, token usage, and cache hit rates for today and a specified period, and estimates costs in CNY based on configurable unit prices. It supports hourly/daily trend views with heatmap visualization, per-day and per-session lists, and pricing configuration. Installed as a local directory bundle, it depends on sessionQuery and webServer, is licensed under MIT, and is currently at version 1.0.5.
Read Moredsh-token-stats: Harness Full Token Usage Dashboard
@shallbay/dsh-token-stats is a dual-side DSH plugin maintained by ShallBay. On the host side, it aggregates billed tokens (uncached input, cache read/write, and output) across all sessions, providing a /token-stats dashboard and a /api/token-stats refresh interface. On the client side, it registers "Token Usage" in the sidebar and opens via new tabs (Web) or in-app popups (Desktop). It shares the session/event stream with dsh-token-meter and supports peak/off-peak RMB pricing as well as local price overrides. Based on the official README, this article covers installation, usage, routing, upgrade/uninstall procedures, and rollup persistence locations.
Read MoreDeepSeek Harness (DSH) Token Statistics Plugin: dsh-token-stats
`dsh-token-stats` is a DeepSeek Harness (DSH) plugin designed to solve the lack of statistics in local logs. It aggregates local session data to provide cumulative, peak, and trend analysis of token usage, with support for daily/weekly trends, hourly distributions, model breakdowns, and GitHub-style heatmap visualization. It is ideal for developers who need fine-grained token usage management, and users can view the statistics in the interface settings.
Read Moredsh-token-stats: A Token Usage Statistics Plugin for DeepSeek Harness
The `dsh-token-stats` plugin addresses the issue that DeepSeek Harness real-time metering cannot provide aggregated reports. It automatically records token consumption logs by listening to events and provides the `dsh-token-report` command along with model-side tools, allowing usage queries filtered by day/week/month and model. The plugin stores data in `~/.dsh/token_usage.l`, containing only counts and session IDs, with no privacy-sensitive information. It currently supports only Linux/macOS and is known not to support recording model names or Codex.
Read Moredsh-token-stats: Token Usage Statistics Plugin for DeepSeek Harness
dsh-token-stats is a local plugin for DeepSeek Harness (DSH) designed to generate visualized token statistics reports by reading session logs. The plugin supports aggregating data by hour, day, week, and month, displays line charts for input, output, and cached tokens, and provides cache hit rate analysis. Data is stored locally without cloud transmission, and an HTTP API is provided for queries. Installation requires the `dsh web` profile, and the configuration file is located in `cordis.patch.yml`.
Read Moredsh-token-stats: Add a cross-session Token cost stats panel to DeepSeek Harness
dsh-token-stats is a DeepSeek Harness (DSH) plugin (MIT licensed) maintained by qiushui0901, designed to address the issue of scattered token usage across sessions that makes aggregation difficult. It provides cross-session usage statistics in the settings panel, including the number of sessions, four categories of token buckets, estimated costs based on provider/model price tables, and daily and model-based monthly stacking.
Read Moredsh-token-stats: Statistics on Token consumption in DeepSeek Harness Web UI
# Introduction When running sessions with DeepSeek Harness (DSH), token usage is scattered across individual session logs. To determine how much each model consumed this month or which days were used most frequently, one must manually review the logs or write scripts to perform the statistics. This is time-consuming and prone to error. `dsh-token-stats` is a token usage statistics plugin built for the DSH Web UI. It utilizes session logs as its data source, aggregates usage into views by day and by model, and displays the results directly in the settings panel. Below is an introduction to its features, installation method, and working principle. # What is this? `dsh-token-stats` is maintained by MoonlitDropOfBlood and follows the MIT License. The README states:
Read Moredsh-token-stats: Add token usage statistics for DeepSeek Harness
dsh-token-stats is a token usage statistics plugin for DeepSeek Harness (DSH), maintained by huantian1223, and is released under the MIT license. This plugin directly parses real provider usage from local DSH session logs (`session.jsonl.zstd`), eliminating the need for estimation or packet capture. Core features include displaying cumulative, daily, and peak token statistics; providing a GitHub-style 12-month activity heatmap with support for multiple time ranges and view switching; breaking down input, output, cache, and reasoning consumption to generate rankings at both model and workspace dimensions; and displaying token and DeepSeek account balance badges in the session header, supporting balance refresh and low-threshold alerts (default ¥5).
Read Moredsh-token-stats: Global Token Usage Statistics Plugin for DSH Web
`dsh-token-stats` is a plugin for DeepSeek Harness / DSH Web designed to centrally display token usage. It collects real usage from `llm/stream` calls and logs it to the ledger, aggregates data by provider, model, session, and date, and calculates cache hit rate, success rate, average latency, and time to first token, while estimating costs based on real usage. The plugin provides a draggable floating panel in the bottom right corner and a full-screen dashboard popup, supporting the view of KPIs, charts, and details, and can be queried via HTTP API and the model tool `token_stats`. The installation command is `dsh plugin --profile web add dsh-token-stats`, requiring `@deep...
Read Moredsh-token-stats: Token usage and fee statistics for DSH
dsh-token-stats is an MIT-licensed plugin for DeepSeek Harness (DSH) designed to address the issues of fragmented Token usage and the difficulty of centralized tracking. Installed as an external dependency, the plugin loads automatically with DSH without requiring manual activation. Its core features include aggregating Token usage by model, date, and session dimensions, providing cost estimates in USD and CNY, and supporting a dark/light themed statistics interface accessible via the native settings page. The plugin features built-in, zero-dependency SVG trend charts that display daily, weekly, and monthly consumption trends, and can backfill historical data by scanning persistent logs after restart. Furthermore, it supports exporting filtered data in CSV or JSON formats for review, and automatically estimates usage when an adapter fails to report it, marking it as 'estimated'. To install, please enter...
Read More