Preface¶
When switching between multiple model providers in DeepSeek Harness, quota windows, reset times, and account balances are often scattered across various consoles or CLIs. Halfway through a conversation, to confirm “how much is left this week” or “is the balance enough to continue,” users frequently have to switch applications, breaking their context. While the DSH community offers many client capabilities split by vendor, if you wish to uniformly view usage across multiple entries within a single interface and receive brief reminders next to the input area, you can install the client plugin dsh-subusage published by maintainer KouzakiUmi (npm package dsh-subusage, GitHub: KouzakiUmi/dsh-subusage). The following describes its positioning, capabilities, and usage steps.
What is this¶
dsh-subusage is a subscription usage display plugin for DeepSeek Harness, categorized as a client. It does not register model routing; it only reads the quota or balance interfaces of various providers and displays them in the UI. When a query fails, it explains the reason and does not treat unknown states as “sufficient.”
The current npm version is 0.14.3 (subject to the repository’s package.json), licensed under MIT, requiring Node.js >= 22.19.0, and compatible with DSH Core 0.2.x (peer dependencies such as @deepseek-ai/dsh in the 0.2 series).
Core Features¶
Usage Pill and Popover Details¶
A Usage Pill appears in the input area next to the model selector. It remains concise under normal conditions; however, when the weekly window is low, the quota is exhausted, or reading fails, the pill provides a clear indication. Clicking it reveals details such as percentage, applicable scope, and reset countdown.
Separate Display of Quota Windows and Balances¶
When subscription windows exist, one window corresponds to one usage bar, prioritizing the display of the tightest window. If there are no plan windows and the data is complete, the pill can display the amount directly; RMB, USD, and credits are displayed according to their respective rules. The documentation emphasizes: balance is not equal to subscription quota, nor can it override an exhausted plan. DeepSeek provides two entries: deepseek (Independent API Key) and deepseek-account (Local DSH Login State); their credentials and balances are neither interchangeable nor additive.
Unified Settings Page¶
The path is Settings → Subscription Usage → Provider Management. You can fill in API Keys or reuse the login state of the corresponding provider plugin; MiMo supports “Login and Auto-Import.” Codex (openai-codex) is disabled by default to avoid duplication with the provider’s own pill, but can be manually enabled for unified display.
Read-only Agent Tools¶
The model can call the read-only tool subusage_quota to read quotas and balances from the same source as the interface, with filtering by provider; Command Code can return the status of each account separately. This tool does not modify settings. A typical use case is saying in a conversation: “Check how much quota is left for Kimi and Codex.”
Supported Data Entries¶
There are 29 provider ids in total; 11 are enabled by default for new installations, and 18 are disabled by default (the list is subject to PROVIDERS in the repository’s lib/index.js). They are roughly categorized by scenario as follows:
| What you want to see | Representative Providers |
|---|---|
| Subscription windows and reset times | Kimi, MiMo, Codex, SuperGrok, MiniMax, Z.ai, OpenCode Go, OpenDesign |
| Account wallets and API balances | DeepSeek API / Account, SiliconFlow, Novita, Hyperbolic, DeepInfra |
| Plans, balances, and multi-layer budgets | Command Code, NanoGPT, OpenRouter, ZenMux, LiteLLM |
| Account-level plans and enterprise seats | Volcano Ark Agent Plan / Coding Plan (arkcli) |
For the window semantics, fields, and unit conversions of each provider, please refer to the repository’s docs/providers.md. Private quota interfaces may change; the numbers in the interface are for reference only and are not a basis for billing.
The real account tests recorded in the documentation cover: Volcano Ark Agent / Coding Plan (Personal Edition), Kimi Coding, Xiaomi MiMo, Command Code, SuperGrok, Codex, etc.; the remaining entries rely heavily on stub tests, so it is advisable to read the “Test Coverage” and credential guidelines in the README before use docs/credentials.md.
Installation and Activation¶
Installation command (from the README “Quick Start”):
dsh plugin --profile web add dsh-subusage
Here, web is just an example Profile; please replace it with your actual target. If using the DSH Desktop environment, you should manage plugins via the DSH Desktop CLI provided by the desktop shell, and do not use the independent public CLI to operate on the reserved desktop Profile.
After the steps above:
- Enable the Plugin: Reload according to your deployment method to ensure both the Host and Client take effect; simply refreshing the page does not guarantee the Host has been upgraded.
- Configure Providers: Enable and fill in the required credentials in Settings → Subscription Usage → Provider Management.
- Return to Conversation: Select the model from the corresponding provider and confirm that the usage pill appears in the input area.
If you are logged into a DSH DeepSeek account, the default enabled “DeepSeek Account” entry can directly read the host balance without copying tokens.
Precautions Before Use¶
- No Guessing Data: Query failures, caching, and partial coverage are clearly marked; successful interface reads do not guarantee continued availability.
- Credential Security: API Keys, Cookies, and OAuth tokens are not backfilled to the interface; however, manual configuration may still result in plain text storage on disk. This plugin is not an encrypted credential vault.
- Plugin Permissions: The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the source code and MIT license on GitHub to assess whether it meets your environment requirements.
When Command Code is in auto-rotation mode, the usage displayed in the pill still corresponds to the default account and does not follow the account actually rotated to in the service; you need to view details for each account in the popover or settings page.
Conclusion¶
dsh-subusage consolidates the quotas, balances, and reset information of multiple providers into the DSH conversation interface and unified settings page, and exposes the read-only subusage_quota for Agent queries. It is suitable for users who frequently mix multiple models but do not want to leave the conversation to check consoles constantly.
- Community Directory Page: skillhub.cn/plugins/KouzakiUmi/dsh-subusage
- Source Code and Documentation: github.com/KouzakiUmi/dsh-subusage