dsh-usage-billing
DeepSeek Harness plugin for tracking DeepSeek token usage and estimated billing across local sessions.
Install
$ dsh plugin --profile web add dsh-usage-billingPlugin 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
- Listens to `llm/stream` and records input, output, cache-hit, and cache-miss tokens.
- Backfills statistics by scanning local session logs on first startup.
- Calculates estimated costs across pre-2026-08-17, post-change peak, and off-peak pricing periods.
- Adds a main-interface summary panel, current-session usage line, and detailed settings-page analytics.
- Provides heatmaps, model breakdowns, session rankings, recent calls, and reset/backfill controls.
- Exposes a `usage_stats` dynamic tool for querying usage statistics.
- Persists statistics in `.dsh-usage-stats.json` under the write-policy root directory.
Useful For
- Monitor estimated DeepSeek spending across local Harness sessions.
- Review token consumption and costs by session or model.
- Inspect usage over daily, weekly, monthly, yearly, and cumulative periods.
- Let a model answer questions such as current estimated spending through the `usage_stats` tool.
Who It Fits
- DeepSeek Harness web-profile users
- Users tracking local DeepSeek model token consumption
- Developers and power users who need session-level cost visibility
Documented Limitations
- Cost calculations use the plugin's documented pricing table and Beijing-time peak/off-peak rules.
- Statistics are stored locally in `.dsh-usage-stats.json`.
- Running two instances simultaneously can cause shared statistics-file writes to overwrite each other.
- The README says a restart and page refresh may be required after first installation for the client panel to appear.
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, 0 development, 1 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
- 940842546/dsh-usage-billing
- Registry source
- GitHub · dsh-plugin topic
- Registry classification
- Plugin
- Source checked
- e2939bd · 2026-08-25
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
- 10GitHub stars
- Forks
- 1
- Open issues
- 2
- Last commit
- 2026-08-24
- Last release
- No release detected
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
A bilingual DeepSeek Harness cost-tracking plugin with session and daily costs, budgets, pricing management, balance lookup, and coding-plan quota displays.
View plugin →Local-first control center for DeepSeek Harness balance, token usage, peak/off-peak pricing, multi-account switching, and session controls.
View plugin →Token balance monitor and companion widget with cache-aware damage animations and peak/valley pricing for DeepSeek Harness.
View plugin →A DeepSeek Harness Web plugin that provides a collapsible, draggable watchlist panel for real-time A-share quotes.
View plugin →