Introduction

In DSH’s extensible plugin system, the sidebar, settings page, and data source display can be supplemented by plugins. In actual usage, a common issue arises: quota information is scattered across the consoles of different service providers. DeepSeek balances, OpenCode Go’s monthly/weekly/5h quotas, and the National Supercomputing Center (scnet) Credits need to be checked separately.

dsh-plugin-quota-monitor addresses this issue by placing quota and balance status at the bottom of the DSH sidebar and providing full configuration options in the settings page.

What is it

dsh-plugin-quota-monitor is a quota and balance monitoring plugin for the bottom of the DSH (DeepSeek Harness) sidebar, maintained by DoggyHU, and licensed under MIT.

Its positioning is clear: it displays a rage bar and status bars for each provider at the bottom of the DSH sidebar, and provides a full configuration page under “Settings → Plugin Management → Balance Monitor”.

It is suitable for users who use DeepSeek, OpenCode Go, or the National Supercomputing Center (scnet) within DSH and wish to reduce the need to switch to external consoles to check their balance.

Core Features

DeepSeek Balance

The DeepSeek rage bar is gold and is always displayed.

It reads the real-time balance from the DeepSeek official interface:

api.deepseek.com/user/balance

The interface displays the remaining amount in ¥ (Renminbi).

OpenCode Go Quota

The data source identifier is opencode-go.

It reads the OpenCode Go official usage interface and maps the three windows to RPG-style status bars:

Monthly quota = HP
Weekly quota = MP
5h quota = SP

The interface displays the remaining amount in $ and thin bars.

National Supercomputing Center scnet Credits

scnet displays the remaining Token Plan Credits.

scnet does not have a public usage/balance query interface, so usage can only be viewed from the web console. The plugin instead estimates this month’s scnet consumption based on DSH’s local session logs and converts it into Credits based on scnet’s official rate table.

This estimation only covers token consumption actually recorded by DSH and does not include scnet usage that is only used outside of DSH.

  • Polls once every 60 seconds.
  • Refreshes instantly when switching back to the page.
  • Collapses into a small circular badge in narrow sidebars.

Data Source Selection

The data source defaults to auto.

Auto-detection reads from DSH’s settings.yaml:

agent-default-model.provider

Optional values include opencode-go and scnet. You can also manually specify the data source in the settings page.

Settings Page

Entry path:

设置 → 插件管理 → 余额监控

Configurable items include:

  1. Data Source Switch: Auto, OpenCode Go, National Supercomputing Center.

  2. OpenCode Displayed Bars:

Monthly quota HP
Weekly quota MP
5h quota SP

They can be toggled on/off separately.

  1. National Supercomputing Credits:
  • Monthly quota, default 60,000 (Basic Edition).
  • Monthly reset day, range 1-28.
  • Model rate table, JSON editable.
  1. The DeepSeek rage bar is always displayed.

The materials mention that the model rate table includes official rates for DeepSeek-V4-Flash-0731, GLM-5, Kimi-K3, MiniMax-M3, Qwen3.8-Max, etc.; the full list is not exhaustive.

Configuration is saved in:

$DSH_HOME/storages/quota-monitor-config.json

Installation and Activation

Installation

Install from npm:

dsh plugin --profile web add dsh-plugin-quota-monitor

You can also use a local tarball:

dsh plugin --profile web add dsh-plugin-quota-monitor-<version>.tgz

The <version> in the example command is a placeholder for the version of the local tarball. The package.json version field in the materials is 0.3.5.

Restart

After installation, you need to restart the dsh web process.

Both the client bundle and the host need to restart the process; simply refreshing the page is not enough.

Keys

Depends on the data source:

DEEPSEEK_API_KEY
OPENCODE_GO_API_KEY

Keys can be read from environment variables or ~/.dsh/.credentials.yaml; environment variables take priority.

scnet Credits are estimated based on local session logs, so no key is required.

Typical Usage

  1. First, install the plugin:
dsh plugin --profile web add dsh-plugin-quota-monitor
  1. Restart the dsh web process.

  2. Open:

设置 → 插件管理 → 余额监控
  1. Select the data source. If DSH’s default model provider is already opencode-go or scnet, you can start with auto.

  2. If using OpenCode Go, check the quota bars you wish to display:

HP / MP / SP
  1. If using scnet, fill in the monthly quota and monthly reset day, and edit the model rate table as needed.

  2. Go back to the bottom of the DSH sidebar to view the status.

Local Build Replacement

When developing or replacing a local build, you can do the following:

npm pack
dsh plugin --profile web remove dsh-plugin-quota-monitor
dsh plugin --profile web add ./dsh-plugin-quota-monitor-<version>.tgz

After re-enabling, you still need to restart the dsh web process.

Applicable Scenarios and Notes

Suitable for:

  • Using DeepSeek in DSH and wanting to see the ¥ balance directly in the sidebar.
  • Using OpenCode Go and wanting to view the three quota windows (monthly/weekly/5h).
  • Using the National Supercomputing Center (scnet) and wanting to estimate this month’s Credits based on DSH session logs.
  • Wanting to manage data sources, toggle items, monthly quotas, and model rate tables in a single settings page.

Notes:

  • scnet has no public usage/balance query API; the plugin can only estimate based on DSH’s local session logs.
  • scnet usage used only outside of DSH is not included in the estimation results.
  • Token Plan resets according to the billing cycle, not necessarily on the 1st of every month. You need to fill in the quota reset day displayed in the console, ranging from 1-28. The plugin calculates statistics based on “last reset day to today”.
  • For models not on the list (outside the table) that do not have an official public rate, the default rate is used as an approximation; you can supplement the rate or adjust the default value in the settings page.
  • The plugin reads local configuration, keys, and session logs, and is enabled within the dsh web process via the dsh plugin mechanism. It is recommended to treat it as code running with the current dsh process permissions; check the source code and license before installing.
  • The project license is MIT. The materials indicate that this project is a significant extension of jelly-000/dsh-balance-monitor, and the original project license was also MIT.

Conclusion

The value of dsh-plugin-quota-monitor is quite direct: it places DeepSeek balances, OpenCode Go quota windows, and scnet Credits into the DSH sidebar, and provides a settings page to manage data sources, toggle items, monthly quotas, and model rate tables.

GitHub Repository:

https://github.com/DoggyHU/dsh-plugin-quota-monitor

The community directory page address was not included in the verified materials and cannot be provided with a reliable link; when searching for the plugin directory, please refer to the address given by the project description or the directory site.