dsh-token-usage: DSH Left Sidebar Balance and Token Cost Statistics
dsh-token-usage is a DSH client plugin that adds a balance entry to the left sidebar of the Web UI, providing token and cost breakdowns across the current session, today, 7/30 days, and cumulative history. It supports per-model configuration of base pricing, peak/off-peak and long-context tiered pricing, manual balance setting, and cache hit rate display. Based on the official README, this article covers installation (local directory), statistical methodology, billing formulas, state file paths, and key troubleshooting points, serving as a reference for developers who need usage monitoring within Harness.
Read Moredsh-token-usage: View Session Token Usage and Estimated Cost on a Dedicated Page in DSH
dsh-token-usage is a DSH community plugin maintained by 879745uhjun that adds a dedicated Token Usage page to the main interface. It incrementally scans ~/.dsh/sessions, polls /token-usage every 2 seconds, and displays a summary, 14-day history, sortable tables, and CSV/Markdown export. It supports today/7d/30d/all-time filters, workspace and sub-session grouping, and usage collapsing aligned with the built-in tokenUsage. An optional ~/.dsh/token-usage-prices.json file can override CNY-based cost estimates. No default configuration is required; MIT licensed, compatible with dsh 0.2.2-rc.x. See the SkillHub-to-Harness guide for installation instructions.
Read Moredsh-token-usage: Local tracking and visualization of AI Token usage in DSH
dsh-token-usage (@aixnest/dsh-token-usage) is an MIT-licensed DSH plugin maintained by qiz42144-web. It passively reads usage metadata written by Harness, stores it locally in SQLite, and does not call models, access the internet, or read prompts or API keys. The dashboard supports time ranges from "Today to All" and custom selections, seven metric cards, self-adaptive granularity trend charts, and annual heatmaps. It also filters, ranks, and logs requests by Provider/Account/Pack/Model. It is recommended to install the npm package by executing `plugin_manager install_bundle` in a session; optional parameters include `dbPath` and `recordAttempts`. This is suitable for developers who want to monitor multi-model token usage locally.
Read Moredsh-token-usage: Parse DeepSeek Token Billing and Cost Trends Locally in DSH
dsh-token-usage is a DSH plugin (admin-security) maintained by Jimmy-20100728. It allows for the local import of DeepSeek official ZIP or generic CSV/JSON files, enabling users to view daily, weekly, and monthly trends, compare models and API keys, and monitor cache savings and surge detection on the Session "Token Usage" page. It also supports the `token_analysis` tool and HTTP API. Parsing and storage default to `~/.dsh/token-usage`, and no data is uploaded to external services. Installation can be performed via `plugin_manager install_bundle` or by unpacking an `npm pack`. The current version is 1.1.0 and is licensed under the MIT License.
Read Moredsh-token-usage: View Token usage and cache rate in the DSH sidebar
dsh-token-usage is a DSH plugin released by maintainer orange-v-soda (npm @orange-v-soda/dsh-token-usage, version 0.1.0, MIT). It displays today's token usage and cache hit ratio in the Web sidebar, with a panel offering views of recent usage, a heatmap, and model distribution. The data is read solely from local session logs, without internet access or data upload, and is compatible with DSH >= 0.2.1-rc.2. To install, enter the npm package name or github:orange-v-soda/dsh-token-usage in the plugin manager. It is designed for AI agent developers seeking lightweight local monitoring; please review the source code and license before installation.
Read Moredsh-token-usage: DSH Daily Token Usage Statistics by Model
DSH lacks a built-in model-based token usage ledger. The community plugin @zhangyongshuai56-hub/dsh-token-usage scans session.v4.jsonl.zstd files under ~/.dsh/sessions, aggregating daily usage by model from assistant/message and request/header data. The Token Usage panel displays KPIs, a calendar heatmap, trend charts, and model rankings; server-side stale-while-revalidate and incremental scanning ensure data appears immediately upon opening. Installation requires a GitHub repository URL and DSH >=0.2.0-rc.1.
Read Moredsh-token-usage: Local Offline Aggregation of Full Token Usage for DeepSeek Harness
dsh-token-usage is a DSH community plugin maintained by fuchen9. It only reads session.v4.jsonl.zstd files under ~/.dsh/sessions, aggregates offline the token consumption of all stored sessions, and displays the results broken down by model, provider, session type, preset, and time window. Its calculation methodology is consistent with the Harness tokenUsage projection, and it has zero third-party dependencies at runtime. The article covers the panel's capabilities, three installation methods, the HTTP API, and common issues such as inject misconfiguration, and reminds users to review the source code and process permissions before installing.
Read Moredsh-token-usage: View Local Token Consumption in DSH Desktop
`dsh-token-usage` is a DeepSeek Harness Desktop client plugin maintained by SeyanaA that aggregates Token statistics from local Session logs, providing five overview cards, a 12-month aligned heatmap, daily trend line charts broken down by model, and a ring proportion chart with vendor annotations. Data is not networked or reported; the cache contains only token counts. It supports Agent install_bundle, manual linking to profiles, or Release zip installation, and requires DSH Desktop ≥ 0.2.0-rc.1.
Read Moredsh-token-usage: Making Token Consumption a Visible Block Wall in DSH
dsh-token-usage is a Cordis plugin developed by ChinRinhan for the DeepSeek Harness Web profile. It reads usage data from session logs, aggregates it daily according to the local timezone, and provides a block wall with one cell per 10M tokens, a draggable desktop pet, consumption distribution across workspaces/models/vendors, and a summary on the settings page. It supports history backfill at startup and real-time capture. The article covers installation (profile dependency or plugin_manager), verification via curl, the cordis.patch.yml configuration, and the HTTP interface, and explains the aggregation methodology and known limitations.
Read Moredsh-token-usage: Viewing Token Usage by Model and Day in DSH Settings
dsh-token-usage is a DSH client plugin maintained by GIN0076, providing daily/weekly/monthly token statistics by provider/model in Settings, with pure SVG line charts and rankings. Data is read-only from local session logs. An optional ~/.dsh/token-usage-prices.json file enables cost and budget estimation. Supports CSV/JSON export and Rebuild rescanning. Installation: dsh plugin --profile desktop add github:GIN0076/dsh-token-usage. MIT licensed, v1.3.0.
Read Moredsh-token-usage: DeepSeek Harness Token Usage Dashboard
The `dsh-token-usage` plugin for DeepSeek Harness (DSH) provides visualized usage statistics to eliminate the hassle of manually checking logs. Core features include metric cards, an activity heatmap, a daily trend chart, and a model share donut chart. Installation supports command line or local path, with the UI mounted on the settings page. When using it, ensure that requests include the `usage` field, and restart DSH after installation for changes to take effect. Note that this plugin is not an npm package and is recommended for use in a specific version environment.
Read MoreDeepSeek Harness (DSH) Plugin: dsh-token-usage - Account, Quota, and Local Usage Ledger
`dsh-token-usage` is a management plugin for DeepSeek Harness (DSH), focusing on account and quota monitoring and local log recording. Its core features include unified connection management, account pool rotation, subscription login management, SDK streaming diagnostics, and native compression counting. The plugin must be used with a compression component and supports optional diagnostic stages. Installation requires Node.js 22.19.0 or later. In terms of data security, the plugin contains no telemetry, prompts, or credentials; known cancellation-related errors may occur but do not affect core functionality.
Read MoreDeepSeek Harness Plugin: dsh-token-usage User Guide
dsh-token-usage is a DeepSeek Harness (DSH) plugin designed to monitor token consumption, costs, and provider quotas in real time through visual charts and panels. It supports real-time logging, historical backfilling, session usage analysis, and model-based pricing views, effectively addressing resource consumption monitoring. Install it via npm. When upgrading from older versions, remove and reinstall it first, and ensure the pricing files are synchronized from the cloud.
Read Moredsh-token-usage: Token Usage and Cost Analysis Plugin for DeepSeek Harness
`dsh-token-usage` is a local web plugin for DeepSeek Harness (DSH) that reads persistent logs to provide developers with intuitive token usage statistics and cost estimates. The plugin offers summary cards, GitHub-style heatmaps, and actual billing calculations based on Beijing peak/off-peak periods, with support for custom per-model pricing tables. It is easy to install, stores all data locally, and does not affect Agent runtime logic.
Read Moredsh-token-usage: DeepSeek Harness Token Usage and Cost Dashboard
`dsh-token-usage` is a plugin for DeepSeek Harness (DSH) designed to track token consumption, costs, and model performance. By monitoring DSH session logs, it provides real-time and historical replay, an overview dashboard, task/model/project statistics, and 14-day chart visualization. It supports the peak/off-peak pricing rules from the official DeepSeek website, stores all data locally, and does not upload private information. To install it, ensure that DSH, git, and pnpm are installed, then enable the plugin via a one-click script or manual mounting.
Read MoreDeepSeek Harness Token Usage Statistics Plugin
`dsh-token-usage` is a DeepSeek Harness plugin that provides authoritative token counting statistics for agent development. By reading local session logs directly, the plugin ensures accurate usage data without relying on estimates. It offers two access methods: a web sidebar panel and an Agent tool. Users can view cumulative and today’s input, output, cache-read, and other metrics, or limit the query scope through tool parameters. The plugin supports multi-frame zstd decoding and allows configuration of cache behavior and the number of sessions returned. To install it, add the directory to the profile and restart the client.
Read Moredsh-token-usage: Add a Token Usage Analysis Page to DSH Web GUI
dsh-token-usage is a Token usage analysis plugin for DSH Web GUI (npm package @samecorner/dsh-client-ui-token-usage, v0.1.3, MIT licensed). It adds a "Token Usage" tab at the top of the session, rendering projection data such as `tokenUsage` and `contextPressure` from the host as visual panels. Features include per-round KPI cards, context pressure progress bars (warning at 80%), context composition, and per-round bar charts.
Read More@kelearns/dsh-token-usage: Add a token usage heatmap to the dsh web GUI
# Introduction When running agents with DSH, conversation logs are stored under `$DSH_HOME/sessions`, with token consumption scattered across individual sessions. To answer questions like "How many tokens were used daily this month?" or "Which model was used the most?", you must manually decompress zstd-compressed JSONL files and calculate line by line. While writing a script to do this isn't difficult, you have to re-run it every time you want to view the data. @kelearns/dsh-token-usage brings this functionality into the GUI: a GitHub-style contribution graph displaying daily, weekly, and cumulative token usage. DSH follows the philosophy that "everything is a plugin." This plugin is mounted via the official plugin mechanism and does not require modifying the DSH source code. Below, we introduce its features, installation method, and data interface.
Read Moredsh-token-usage: Add a Codex-style Token Usage Panel to DSH
# Introduction Developers who have been running DSH (DeepSeek Harness) for a while often wonder: Where exactly are the tokens being spent? Is it a long session consuming them, or a specific plugin or Skill continuously draining them? The built-in token-meter provides data, but the interface lacks a place to aggregate and view the consumption of the entire instance at a glance. dsh-token-usage addresses exactly this problem: It adds a Token usage statistics panel to the DSH Web interface, aggregating and displaying the Token consumption of all sessions within the currently running instance. The interface mimics the style of the Codex personal usage page, offering almost zero learning curve for developers familiar with Codex. # What is dsh-token-usage
Read Moredsh-token-usage: DeepSeek Harness Web GUI Token Usage Display Plugin
`dsh-token-usage` is a Token usage display plugin for the DeepSeek Harness (DSH) Web GUI, maintained by AFAP and licensed under the MIT License. The plugin operates without configuration in a read-only manner, designed to assist users in monitoring session-level and global Token consumption. Its core functions include displaying a "Session Capsule" in the session header, showcasing input, output, and context usage, and supporting the viewing of detailed breakdowns. It provides a "Global Consumption Panel" in the sidebar that aggregates daily consumption over the last 30 days, model distribution, and 24-hour usage. Data is sourced from local session logs, and the panel automatically refreshes every 60 seconds when active. The plugin adheres to strict technical constraints with zero external dependencies, parses zstd logs using Node 22.22+ built-in capabilities, and ensures... via the browser trust boundary.
Read Moredsh-token-usage: Token usage statistics plugin for DSH Web UI
dsh-token-usage is a DeepSeek Harness Web UI plugin designed to address the difficulty of monitoring LLM token usage during agent development. By capturing usage data from `llm/stream` events, the plugin provides a statistics panel in the sidebar, supporting the display of Token consumption, cache hit rate, and estimated costs by API, model, and date dimensions. Key features include a dual-axis trend chart, a daily usage heatmap for the past year, a model summary table, and recent request records, along with support for exporting data in JSONL, JSON, or CSV formats. The plugin features automatic cost estimation with price data synchronized from modelradar.cn and supports manual overrides. Installation requires Node >= 18 and is recommended via the `dsh plugin` command.
Read Moredsh-token-usage: A Session Token Usage Bar for the DeepSeek Harness Web UI
`dsh-token-usage` is a pure client-side plugin (MIT licensed) for the DeepSeek Harness (DSH) community, maintained by `hashdiana`. The plugin is designed to replace the default plain-text token statistics line in the Web UI, providing a more intuitive visual experience. Its core features include: dynamically displaying context usage with color; breaking down input tokens into cache reads, cache writes, and uncached portions while showing the cache hit rate; displaying decoding throughput (tok/s) and time-to-first-token (TTFT) in real time; and offering a click-to-expand details panel to view the complete context composition and session statistics. The plugin supports both light and dark themes as well as Chinese and English, reads persisted projection data, and automatically hides when no data is available. Users can install it from Gi via the `dsh plugin` command.
Read Moredsh-token-usage: Adding an LLM API Call Usage Statistics Panel to DSH
@wycto/dsh-token-usage is a DeepSeek Harness (DSH) plugin designed to address the challenge of quickly verifying sessions, statuses, token usage, and costs after model calls. By reading DSH session logs rather than intercepting requests, this plugin consolidates scattered API call information into a full-screen statistics panel. Core features include: multi-condition filtering by time, session ID, model, provider, and status code; a detailed table with 15 columns, supporting click-to-sort by column headers and quick filtering by session ID; grouped statistics by provider, model, status, and effort dimensions; and CSV export for secondary analysis. Cost display supports dual-currency estimation in USD and RMB, with a default exchange rate of 7.2, configurable via s
Read More