Introduction¶
DeepSeek Harness (DSH) is a client tool for managing multiple agents and connections. In the sidebar, you can view Command Code quota information to easily track the remaining credits for 5-hour, weekly, and monthly periods, avoiding session interruptions caused by quota exhaustion. The dsh-commandcode-quota plugin was created for this purpose: it integrates quota data directly into the DSH sidebar, eliminating the need to switch browser tabs or log in to the web dashboard.
Plugin Overview¶
Name: dsh-commandcode-quota
Maintainer: Jovan1666
License: MIT
Purpose: Displays Command Code plan quotas in the DSH sidebar, including the credit windows for 5-hour, weekly, and monthly periods and reset countdowns. Supports Go, GOAT, Pro, Max, and Provider plans.
Core Features¶
The plugin provides the following features:
1. All windows at a glance: Displays the three credit windows for 5-hour, weekly, and monthly periods simultaneously, prioritizing the shortest limiting window.
2. Percentage first: The title shows rounded percentages, consistent with the Command Code dashboard.
3. Key amounts displayed: The monthly quota row shows the used amount and remaining amount; hover over a row to view its exact values.
4. Instant loading and real-time updates: After restarting DSH, the card appears in about 2 ms and enters real-time update mode after about 1 second.
5. Smart silence: If no Command Code account is configured, the card is not rendered.
6. Bilingual support: The card language follows the DSH interface language (Chinese/English).
7. Model-level quotas: Displays the specific quota for each model in Settings.
Installation & Configuration¶
Prerequisites: DSH version ^0.1.5-rc.1 or later is required. Older versions crash on startup.
Check the version:
dsh --version
Web Client Installation¶
Install it using the official command:
dsh plugin --profile web add github:Jovan1666/dsh-commandcode-quota
After installation, restart dsh web and refresh the browser page. No additional configuration file or API key is required; the plugin automatically searches for the configured Command Code account.
Desktop Client Installation¶
The desktop client does not support the dsh plugin command. Manual configuration is required:
1. Link the plugin folder to the desktop client’s node_modules.
2. Manually edit the cordis.patch.yml file and add the following content:
# $DSH_HOME/profiles/desktop/cordis.patch.yml
- insert:
- id: commandcode-quota
name: "dsh-commandcode-quota"
- Restart the desktop app.
Notes¶
- Version requirement: Please ensure you use version
^0.1.5-rc.1or later; otherwise, startup will produce an error. - Go plan limitation: The $1 Go plan does not include API access, so card content is not displayed for this plan.
- Bundle patch warning: If installing with bundle patch, do not manually append lines to
cordis.patch.yml; this causes a “duplicate loader entry id” error. - Manual install conflict: If installing manually (not via bundle patch), ensure that lines generated by the bundle layer are removed; otherwise, an error will also occur.