dsh-deepseek-usage
Run the following command in DeepSeek Harness:
dsh plugin install ben7am1n/dsh-deepseek-usage
Paste the following prompt into your AI chat to install this plugin:
Install the plugin in DeepSeek Harness by running dsh plugin install ben7am1n/dsh-deepseek-usage; the source code is available at https://github.com/ben7am1n/dsh-deepseek-usage
About this plugin
Running long, multi-session inference on DeepSeek Harness leaves account balance and token spend nearly invisible. Developers tend to miss runaway sessions until credits are already gone, because checking spend requires breaking out of the conversation. dsh-deepseek-usage closes that gap by packaging two operational queries as model-callable tools, turning cost awareness into part of the dialogue rather than a separate dashboard.
The plugin exposes two core tools. deepseek_balance hits the official DeepSeek balance endpoint and returns a per-currency breakdown (total, granted, topped-up); when a lowBalanceThreshold is configured, it appends an explicit warning the moment the primary-currency balance falls below that ceiling, giving you an early heads-up before the account runs dry. usage_summary aggregates per-session token consumption from the Harness token meter across all live sessions and returns the list sorted by total tokens in descending order, making it easy to spot outlier sessions and gauge how close you are to a model context-window limit. Both can be invoked directly inside a conversation without leaving the chat.
It is well suited for developers and platform administrators who run multi-session, long-running inference workloads on DeepSeek Harness and want API cost monitoring embedded in their workflow—catching budget overruns or runaway sessions proactively rather than reacting after the fact.
Use Cases
- Query DeepSeek account balance and per-currency breakdown directly in a conversation
- Rank live sessions by total token usage to spot runaway calls
- Receive an automatic low-balance warning before credits run out
Best For
- Developers running multi-session, long-running inference on DeepSeek Harness
- Ops or platform admins who need centralized visibility into API spend and budget
- Teams that want cost monitoring embedded in the conversation without a separate dashboard
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.