dsh-tokstat
DeepSeek Harness settings-panel plugin for local usage, latency, throughput, and estimated-cost statistics, with an optional Python TUI.
Install
$ dsh plugin --profile web-dev add https://github.com/kongjianguan/dsh-tokstat.gitPlugin Overview & Capabilities
AI-assisted organization based on the public repository snapshot. The content must be grounded in source evidence and does not replace compatibility or security verification.
Key Capabilities
- Adds a Statistics section to the DSH Web settings page.
- Aggregates input, output, and cache-read tokens from DSH session logs.
- Shows request counts, TTFT percentiles, TPS, duration, success rate, retries, failures, and cache-hit rate.
- Provides views for overview, trends, models/providers, sessions, requests, and errors.
- Estimates costs using a local YAML price table.
- Includes a standalone Python TUI with configurable refresh interval and time range.
- Serves plugin statistics through the local /tokstat/stats endpoint.
Useful For
- Monitor local DSH token usage and estimated spend.
- Compare model or provider latency and throughput.
- Investigate retries, failed steps, and request-level behavior.
- Review session-level usage and activity.
Who It Fits
- DeepSeek Harness users running the Web UI.
- Agent-heavy DSH users investigating request performance.
- Users who want a local terminal dashboard for DSH session statistics.
Documented Limitations
- Validated against the DSH 0.1.0-rc.6 session-log format; later DSH log-format changes may cause parsing issues or inaccurate values.
- The Node plugin requires Node.js 23.6 or later; the TUI requires Python 3.11 or later plus its listed dependencies.
- TTFT may be approximate when logs retain batched chunk events rather than individual token deltas.
- Estimated costs depend on the local prices.yaml configuration; unpriced models display no cost.
- Large data volumes can make overview and request-page refreshes slower.
- The TUI is a separate Python program rather than an installed DSH plugin component.
DSH Compatibility
Version-specific runtime evidence collected by DSH Plugin. A missing result means we have not tested that combination yet.
Security Signals
Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.
package.json declares 0 runtime, 1 development, 12 peer, and 0 optional dependencies.
package.json declares DSH bundle metadata.
GitHub reports the repository license as MIT.
A root package.json was captured and can be inspected by the registry.
Public GitHub source metadata is available for this registry snapshot.
Source & Registry Notes
Public provenance, Registry classification, and the latest source check for this entry, kept separate from runtime verification.
- Source repository
- kongjianguan/dsh-tokstat
- Registry source
- GitHub · dsh-plugin topic
- Registry classification
- Plugin
- Source checked
- 3123a27 · 2026-08-18
This project is independently indexed from public source information. DSH Plugin is not affiliated with DeepSeek or the plugin author. Always check the author repository before installation.
Repository Activity
- GitHub stars
- 0GitHub stars
- Forks
- 0
- Open issues
- 0
- Last commit
- 2026-08-18
- Last release
- No release detected
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
Session lifecycle manager for DeepSeek Harness with search, restore, idle cleanup, and diagnosis.
View plugin →Persistent multi-model agent teams with dynamic DAG orchestration, run monitoring, and token insights for DeepSeek Harness.
View plugin →Cost and token tracking plugin for DeepSeek Harness featuring session budgets, provider balances, and coding plan quotas.
View plugin →Composable, view-based layered memory bundle for DeepSeek Harness with pluggable providers and strategies.
View plugin →