deepseek-ai-dsh-api-cost
Run the following command in DeepSeek Harness:
dsh plugin install MoyunLee/deepseek-ai-dsh-api-cost
Paste the following prompt into your AI chat to install this plugin:
Run the install command in the DeepSeek Harness terminal to activate the plugin; the source code is hosted at https://github.com/MoyunLee/deepseek-ai-dsh-api-cost .
About this plugin
If you call the DeepSeek API frequently, the first time you truly see how many tokens you have consumed and how much that cost you is often when the monthly bill lands. deepseek-ai-dsh-api-cost turns that after-the-fact anxiety into a live sidebar badge inside DeepSeek Harness: real-time balance, per-conversation spend, and an incremental counter that ticks up during generation. Hover to open a full detail panel; click to jump straight into the settings dashboard. No more flipping between console pages to piece together your numbers.
The plugin covers the entire loop from daily monitoring to month-end reconciliation. Spend is broken down by model (V4 Pro and V4 Flash) with a built-in seven-day dual-column trend chart that toggles between amount and token views. You can import the official amount CSV from the DeepSeek console, have local charges recomputed at the exact official unit price, and compare row by row so that stale local price tables no longer create phantom discrepancies. Official prices can be written back to the local table in one click. Every API call is persisted to a JSONL ledger that survives restarts and is recalculated at the current rate, making historical amounts permanently reproducible. A monthly budget threshold triggers a webhook alert when exceeded. The entire UI is pure React with inline styles and hand-drawn bar charts — no charting, icon, or UI libraries — and the theme follows the system or locks to light and dark by preference.
Designed for independent developers who call the DeepSeek V4 series heavily, tech leads tracking team API spend, and engineers embedding DeepSeek into products who need a continuous cost-curve dashboard. It activates immediately after install with zero configuration changes. The API key is resolved through a credential service and never enters the browser. The local ledger lives in the user profile directory, and uninstalling the plugin does not delete your historical data.
Use Cases
- Check real-time token consumption and account balance during daily development
- Import the official CSV to reconcile local records against actual charges at month-end
- Monitor monthly API usage and trigger webhook alerts when the budget is exceeded
Best For
- Independent developers who call DeepSeek V4 APIs heavily
- Tech leads responsible for tracking team API spend
- Engineers embedding DeepSeek into products who need continuous cost visibility
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.