dsh-cost-governor
Run the following command in DeepSeek Harness:
dsh plugin install yushuosun/dsh-cost-governor
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install yushuosun/dsh-cost-governor in your DeepSeek Harness terminal to install this plugin; the source repository is available at https://github.com/yushuosun/dsh-cost-governor .
About this plugin
The built-in harness token meter tells you how many tokens a request used, but it cannot answer the more practical questions: how much does this actually cost in dollars, and what happens when you blow past your budget? dsh-cost-governor exists for exactly that gap. It reuses the harness native disjoint token buckets (input, output, cache-read, cache-write, reasoning), converts them into currency via a configurable price catalog, and then layers a full budget-governance workflow on top: soft warn, hard ceiling, block or steer to a cheaper model.
Under the hood the plugin ships a multi-provider price catalog covering DeepSeek, OpenAI, Anthropic, Google, xAI, Qwen, GLM and Moonshot, with separate cache and reasoning rates that are fully overridable. Budgets can be set per day, week, month or unlimited; a soft warnRatio (default 80%) triggers threshold events and webhook notifications (Slack-style, Feishu, DingTalk), while a hardRatio ceiling can notify-only, block new requests, or steer traffic to a cheaper model. All accounting rides on the official sessionProjections seam, so numbers stay correct through compaction and cold reads, and editing the price table re-prices history instantly without re-folding the log. The Settings dashboard adds KPI cards, an animated budget bar, a per-model spend table, a daily spend chart, a savings tip, and CSV export; a compact HUD ring lives in the sidebar rail.
It is aimed at teams and individual developers who burn a meaningful number of tokens across several providers and want an actionable budget keeper rather than a passive counter: someone who needs to see month-end cost, get warned at 80%, and have the system automatically pull the reins when the ceiling is hit.
Use Cases
- Monthly token spend spans multiple providers and needs to be unified into a single USD budget cap
- The team requires automatic blocking or model steering once a hard budget ceiling is hit
- You want cross-session cost trends, per-model drill-down, and CSV export for finance reconciliation
Best For
- Indie developers who burn large monthly token bills on DeepSeek Harness
- Tech leads at small-to-mid teams reconciling multiple LLM provider invoices
- Platform admins who want active budget governance instead of passive cost display
Related Plugins
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.
Packages all 87 SKILL.md files from upstream reverse-skill as a DeepSeek Harness plugin that auto-registers them for authorized reverse engineering, penetration testing, and security research.
Dockyard DSH is a native DeepSeek Harness plugin that unifies official OAuth/client sessions for Codex, Antigravity, Grok, Claude, and Cursor, providing account pool, model catalog, and quota status.