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-13
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
- 2GitHub 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.
VSCode-like modular sidebar and bottom panel workbench for DeepSeek Harness with terminal, editor, git, and plugin extension API.
View plugin →Full context lifecycle management, visualization dashboard, and /context command for DeepSeek Harness.
View plugin →A DeepSeek Harness Web UI sidebar for tracking artifacts and browsing workspace files, with a pop-out tab view.
View plugin →Selection-annotation plugin for DSH Web that lets users annotate assistant text and send batch annotations with numbered model replies.
View plugin →