DeepSeek Harness Plugins
DeepSeek Harness PluginIndexed

dsh-token-stats

DeepSeek Harness Web plugin that tracks daily LLM token usage by provider and model, with cost estimates, balance lookup, dashboards, and a /usage command.

VisionUI & ProductivityTerminal & TUIDeveloper ToolsSecurity & Policy
1GitHub Stars0ForksUpdated2026-08-21

Install

$ dsh plugin --profile web add "github:FantasyStarry/dsh-token-stats#v0.4.0"

Plugin 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.

source-grounded
dsh-token-stats is an installable DSH Web plugin that persists daily token statistics and displays them in settings, an overlay pet, and chat commands. It tracks provider/model usage, supports configurable price overrides, and can query the DeepSeek account balance when an API key is available.

Key Capabilities

  • Aggregates successful model-call token usage by natural day, provider, and model.
  • Tracks input, output, cache read/write, and reasoning tokens.
  • Persists statistics to a configurable JSON storage path and retains history for a configurable number of days.
  • Rebuilds the current day's statistics from DSH session logs at plugin startup.
  • Estimates costs using built-in DeepSeek reference prices or configurable per-model price overrides.
  • Queries the official DeepSeek balance endpoint through DEEPSEEK_API_KEY, with a documented 60-second server-side cache.
  • Adds settings dashboards with model, provider, session, daily, trend, heatmap, and CSV-export views.
  • Provides a draggable Web overlay usage pet and a /usage command with daily or date-range summaries.

Useful For

  • Monitor token consumption across providers and models in DSH Web.
  • Review daily usage, cache-hit patterns, sessions, and historical activity.
  • Export a selected day's model and session details as CSV.
  • Estimate token costs with custom model pricing.
  • Check DeepSeek account balance from the DSH interface when configured.

Who It Fits

  • DeepSeek Harness Web users
  • Users monitoring LLM token usage and costs
  • Developers operating multiple models or providers in DSH

Documented Limitations

  • Only successful model calls whose assistant/message events include usage data are counted.
  • Failed turns and retried attempts are not counted.
  • Startup reconstruction covers only the current natural day; earlier activity depends on the plugin having been running when calls occurred.
  • Usage is aggregated using the server's local timezone.
  • Unmatched models are shown as unpriced rather than receiving a cost estimate.
  • Official balance lookup requires DEEPSEEK_API_KEY; without it, the balance is hidden.
  • Service-side changes require restarting dsh web, while client changes require a browser refresh.

DSH Compatibility

Version-specific runtime evidence collected by DSH Plugin. A missing result means we have not tested that combination yet.

Not tested yetNo runtime compatibility tests have been published yet.

Security Signals

Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.

Dependency Counts

package.json declares 0 runtime, 5 development, 0 peer, and 0 optional dependencies.

info
License Not Declared

GitHub did not report an SPDX license for this repository snapshot.

low
Package Manifest Available

A root package.json was captured and can be inspected by the registry.

info
Source Available

Public GitHub source metadata is available for this registry snapshot.

info

Source & Registry Notes

Public provenance, Registry classification, and the latest source check for this entry, kept separate from runtime verification.

Source repository
FantasyStarry/dsh-token-stats
Registry source
GitHub · dsh-plugin topic
Registry classification
Plugin
Source checked
039770d · 2026-09-12

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
1GitHub stars
Forks
0
Open issues
0
Last commit
2026-08-21
Last release
No release detected
For maintainers

Maintaining this plugin?

This listing is generated from public repository data. If you maintain this project, you can review the information and share this listing with your users if you find it useful.

Add to README
Listed on DSHPlugin.app