Introduction¶
DeepSeek Harness (DSH) adopts a plugin architecture designed to decouple functional extensions from the core system. When using a Volcano Ark Coding Plan subscription, developers often need to switch between multiple model routes and accounts, while also monitoring the remaining quota across different billing cycles in real-time. Manual queries are both time-consuming and prone to omission. The dsh-ark-quota plugin combines quota monitoring with DSH’s session routing capabilities, providing intuitive usage display and predictions in the sidebar.
Plugin Overview¶
dsh-ark-quota is a DSH plugin maintained by lordqyxz. Its core function is to display the remaining quota of Volcano Ark subscription plans in the DeepSeek Harness sidebar. By utilizing sliding window hydrodynamics and exponential weighted least squares fitting, the plugin provides “burn rate” analysis and depletion predictions. It also supports automatically switching the associated Volcano account based on the current session model.
Core Features¶
- Sidebar Display & Collapsible Capsule
The plugin generates a card or collapsible capsule at the bottom of the sidebar, displaying usage bars and reset countdowns for the 5-hour, past-week, and past-month quotas. The most urgent tier remains permanently visible on the collapsible capsule, with full details available upon hovering. - Burn Rate & Depletion Prediction
For the 5-hour tier, it calculates net growth using sliding window hydrodynamics; for weekly/monthly tiers, it uses the average rhythm derived from quota progress divided by time progress. The plugin employs exponential weighted least squares fitting on recent burn rates and plots the prediction segment directly on the progress bar. Snapshot data is persisted viastorageDomain, retaining information across restarts. - Automatic Account Switching
The card identity is derived from the DSHllm providerroute. When you switch models within a session, the card automatically updates to display the quota information for the corresponding Volcano account. You can also manually pin a specific route. - Multi-Account Management
The plugin supports multiple accounts. It saves keys and automatically creates groups based on routes; if multiple routes are configured with the same AK/SK pair, the system automatically merges them into a single account. If the Coding Plan is not subscribed, it automatically falls back to calling the Agent Plan’sGetAFPUsageinterface. - Hot Reloading in Settings
In the “Ark Quota” section of the DSH settings page, you can modify AK/SK. Configurations take effect immediately upon saving, without requiring a restart.
Installation & Activation¶
The plugin is released under the MIT license. Installation methods:
Command Line Installation:
dsh plugin --profile <profile> add https://github.com/lordqyxz/dsh-ark-quota
Settings Page Installation:
Navigate to DSH Settings → Plugins → Install, and enter:
https://github.com/lordqyxz/dsh-ark-quota
After installation, go to “Settings” → “Ark Quota” section, select the corresponding model route, paste the AK/SK, and save. A card will appear at the bottom of the sidebar.
Usage Guide¶
- In “Settings” → “Ark Quota”, select the model route you wish to monitor.
- Paste the Volcano Ark AK/SK corresponding to that route.
- Save the settings.
- Create a session in DSH and switch models to observe if the sidebar card switches automatically with the model.
To verify keys locally (without going through the browser environment), you can use:
ARK_AK=… ARK_SK=… node tools/check.mjs
Requirements & Notes¶
- Version Requirement: Requires the DeepSeek Harness
dsh webenvironment, version 0.2.0-rc.1 or 0.2.0-rc.2. - Account Requirement: Must possess a Volcano Ark subscription and a valid pair of API Access Keys (AK/SK).
- Security Warning: AK/SK are real credentials. The plugin declares keys as
role('secret')in the schema, and the settings interface is write-only (does not read back). Please do not commit keys to Git repositories or share them with others.
Conclusion¶
dsh-ark-quota simplifies the management process of Volcano Ark subscription quotas through sidebar widgets and algorithmic predictions. It resolves issues regarding account switching and quota monitoring under multi-model routing, making it suitable for developers who frequently call different models and are sensitive to costs.
- Project Homepage: https://github.com/lordqyxz/dsh-ark-quota
- Ecosystem Directory: https://www.skillhub.cn/plugins/lordqyxz/dsh-ark-quota