dsh-zhipu-plan: Zhipu Coding Plan Quota and Usage Dashboard

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

  1. 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.

  2. Reset and Countdown
    Displays quota available for reset and countdown timers. Reset operations are granted by the deployment, with status polled every 5 minutes.

  3. 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.

  4. Authorized Login
    Login through an authorization page, supporting both Z.ai and BigModel.

  5. Remote Namespace
    Registers the zhipuPlan Remote namespace.

  6. 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.

  1. Build the plugin
pnpm install
pnpm run build
pnpm pack

After building, dsh-zhipu-plan-0.2.0.tgz will be generated.

  1. 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

  1. Open DSH settings.
  2. Navigate to the “Zhipu Plan” page.
  3. Select the deployment (Z.ai or BigModel).
  4. Complete login authorization.

Notes

  1. Installation Method: Must install from tarball, not from a local folder, otherwise it will cause module resolution failures.
  2. Dependency Version: Requires authorization seam version 0.2.0-rc.1.
  3. Reset Mechanism: Reset quotas are granted by the deployment, not manually purchased via clicks, with status polled every 5 minutes.
  4. Uninstall Cleanup: Uninstalling the plugin will not automatically remove route configurations; related routes must be manually removed in “Settings → Models”.
  5. 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.

Links

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye