dsh-usage-ledger
DeepSeek Harness plugin for token usage accounting, dynamic pricing, budget enforcement, and a web dashboard.
Install
No clear install command was found in the current repository evidence.
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.
Key Capabilities
- Aggregates input, output, cache-read, and cache-write token usage per session, day, and lifetime.
- Persists accounting data to a ledger file.
- Fetches and refreshes pricing data from official vendor sources, including DeepSeek peak/off-peak pricing.
- Includes pricing coverage for DeepSeek, GLM, Kimi, Qwen, Doubao, MiniMax, and ERNIE.
- Supports custom model price overrides using longest-prefix matching.
- Evaluates daily, total, and per-session budgets with configurable warnings and optional llm/stream call blocking.
- Provides a usage_report tool plus a /usage-ledger dashboard and JSON API.
Useful For
- Monitor token consumption and CNY cost across DeepSeek Harness conversations.
- Set per-session, daily, or lifetime spending limits for model usage.
- Inspect usage and budget state through a web dashboard or the usage_report tool.
- Apply custom pricing to self-hosted or otherwise custom model IDs.
Who It Fits
- DeepSeek Harness users who need token-cost visibility.
- Teams or individuals operating multiple supported Chinese model providers.
- Users who want budget-based controls for model calls.
Documented Limitations
- Pricing is derived from fetched official pages and built-in catalog data; availability and parsing depend on those external sources.
- If a pricing fetch fails, the plugin retains the last successfully fetched prices.
- Budget amounts and pricing are documented in CNY per million tokens.
- The web dashboard is registered through dsh-host-webserver.
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, 20 development, 9 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
- beijingwahw/dsh-usage-ledger
- Registry source
- GitHub · dsh-plugin topic
- Registry classification
- Plugin
- Source checked
- 9c26362 · 2026-09-24
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
- 3GitHub stars
- Forks
- 0
- Open issues
- 0
- Last commit
- 2026-08-31
- Last release
- No release detected
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
Context insight and lifecycle management plugin for DeepSeek Harness with visual dashboards, trends, and agent network views.
View plugin →Dual workbench for DeepSeek Harness featuring an advanced file tree, CodeMirror editor, git status, side chat, and extensible sidebar tabs.
View plugin →Wallpaper Engine backgrounds and iOS-style liquid glass theme customization for the DeepSeek Harness web GUI.
View plugin →Generative UI plugin for DeepSeek Harness that renders interactive cards, charts, forms, and panels inline from dsh-ui code fences.
View plugin →