dsh-cost
Tracks per-turn token usage, cache hit rates, estimated peak/off-peak costs, and DeepSeek API balance.
Install
$ dsh plugin --profile web add github:zydg/dsh-costPlugin 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
- Appends a turn-tail summary line displaying token counts, cache hit rate, time period, estimated cost, and account balance
- Calculates costs using official DeepSeek peak and off-peak rate schedules with custom peak window configuration
- Queries real-time DeepSeek API balance via the official user balance endpoint and triggers low-balance warnings
- Automatically syncs and caches the official DeepSeek model catalog from the API
- Supports customizable pricing tables, model mappings, and currency units (CNY/USD)
- Persists turn usage history, balance snapshots, and exports records to CSV or JSON formats
Useful For
- Monitoring token consumption and cache efficiency during interactive development sessions
- Tracking API cost estimates during peak versus off-peak hours
- Keeping track of remaining DeepSeek account balance to prevent sudden exhaustion
- Auditing and exporting historical LLM usage and conversation metrics
Who It Fits
- DeepSeek Harness developers and power users seeking visibility into token usage and costs
- Team leads managing DeepSeek API billing and usage allocation
Documented Limitations
- Balance query requires a configured DEEPSEEK_API_KEY in Harness credentials
- Cost calculations are client/host side estimates and may differ slightly from official billing logs
- Designed primarily for DeepSeek models; other provider pricing models are not preconfigured
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
- zydg/dsh-cost
- Registry source
- GitHub · dsh-plugin topic
- Registry classification
- Plugin
- Source checked
- 08077e4 · 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
- 1GitHub stars
- Forks
- 0
- Open issues
- 0
- Last commit
- 2026-09-11
- Last release
- No release detected
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
Cost and token tracking plugin for DeepSeek Harness featuring session budgets, provider balances, and coding plan quotas.
View plugin →Context insight and lifecycle management plugin for DeepSeek Harness with visual dashboards, trends, and agent network views.
View plugin →Animated desktop pet companion for DeepSeek Harness with physics, balance indicators, and session status sync.
View plugin →Infinite canvas UI plugin for DeepSeek Harness that turns branching LLM conversations into an editable thought graph.
View plugin →