dsh-usage-billing
Tracks token usage and calculates billing costs across DeepSeek Harness sessions with peak/off-peak pricing models, UI dashboards, and budget alerts.
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
- Automatic token usage and cost tracking by listening to llm/stream events
- Historical session log backfilling on initial launch to reconstruct past usage and titles
- Tiered peak and off-peak pricing support including 2026 Chinese holiday calendar exceptions
- Budget progress indicators with orange/red warnings and desktop toast alerts
- Interactive UI dialogs with currency switching (CNY/USD), usage heatmaps, and session breakdown tables
- DeepSeek API official account balance fetching and runway estimation based on 7-day averages
- Data export to CSV (daily or by session) and JSON formats
- Dynamic `usage_billing` tool allowing the LLM to inspect recent and accumulated usage metrics
Useful For
- Monitoring real-time API spending and token consumption across active DeepSeek Harness sessions
- Managing daily or monthly DeepSeek API budgets with threshold alert notifications
- Exporting structured usage datasets (CSV/JSON) for reconciliation and auditing
- Querying token expenses directly within model chat sessions using tool calls
Who It Fits
- DeepSeek Harness developers and power users seeking visibility into API token expenditures
- Teams and individual creators budgeting and auditing model inference costs
Documented Limitations
- Requires single-instance operation to prevent concurrent writes and race conditions on the local `.dsh-usage-billing.json` file
- Requires an application restart and browser refresh after initial installation for client UI modules to mount
- Local link development requires setting up a junction to the host `@deepseek-ai/dsh-tools` peer dependency
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
- d16e244 · 2026-10-01
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
- 9GitHub stars
- Forks
- 2
- Open issues
- 2
- Last commit
- 2026-09-29
- Last release
- No release detected
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
Cost, token usage, budget, and coding-plan quota tracking plugin for DeepSeek Harness with bilingual UI.
View plugin →DeepSeek Harness balance and token monitor with whale-girl companion animations and visual billing rules.
View plugin →A desktop-native companion for DeepSeek Harness that visualizes live agent status and progress in an always-on-top window.
View plugin →Generative UI plugin for DeepSeek Harness rendering interactive cards, charts, forms, quizzes, and 3D scenes inline.
View plugin →