Introduction¶
DeepSeek Harness (DSH) relies on plugin extensions for additional functionality. For users who need to manage Zhipu coding-plan, monitoring quota and usage is essential. This plugin adds a configuration page through the plugin layer and registers a remote namespace to connect GLM models without patching the application itself.
Plugin Overview¶
Name: dsh-zhipu-plan
Author: Ayelsh
License: MIT
Category: Network Tool
This plugin provides login, plan quota, and server-side usage display for the Zhipu coding-plan in DeepSeek Harness. It adds a “Settings → Zhipu Plan” page through the plugin layer, registers the zhipuPlan Remote namespace, and connects GLM models on the Models page.
Core Features¶
-
Quota Panel
Adds a new page under “Settings → Zhipu Plan” to display remaining quotas. Cards are divided into three pools: five-hour, weekly, and monthly, showing remaining amounts and refresh countdowns. Unused pools do not display reset entries. -
Reset and Countdown
Displays quota available for reset and countdown timers. Reset operations are granted by the deployment, with status polled every 5 minutes. -
Usage Trends
Shows model and tool usage trends, activity, cache health, decode speed, and subscription information for 7-day, 30-day, and all-time periods. -
Authorized Login
Login through an authorization page, supporting both Z.ai and BigModel. -
Remote Namespace
Registers thezhipuPlanRemote namespace. -
Model Connection
Connects GLM models on the Models page.
Installation and Activation¶
The plugin is installed as a tarball and requires building a local package first.
- Build the plugin
pnpm install
pnpm run build
pnpm pack
After building, dsh-zhipu-plan-0.2.0.tgz will be generated.
- Install to DSH
dsh plugin --profile web add ./dsh-zhipu-plan-0.2.0.tgz
Restart the application after installation to load the plugin.
Operation Steps¶
- Open DSH settings.
- Navigate to the “Zhipu Plan” page.
- Select the deployment (Z.ai or BigModel).
- Complete login authorization.
Notes¶
- Installation Method: Must install from tarball, not from a local folder, otherwise it will cause module resolution failures.
- Dependency Version: Requires authorization seam version 0.2.0-rc.1.
- Reset Mechanism: Reset quotas are granted by the deployment, not manually purchased via clicks, with status polled every 5 minutes.
- Uninstall Cleanup: Uninstalling the plugin will not automatically remove route configurations; related routes must be manually removed in “Settings → Models”.
- Source Code Review: Please review the source code and license before installation.
Conclusion¶
This plugin extends DeepSeek Harness functionality through the plugin layer, solving the issues of Zhipu coding-plan quota monitoring and model integration. For more details, refer to the plugin directory or GitHub repository.