When developing agents using DeepSeek Harness (DSH), API balance or Token Plan consumption is a core metric that must be monitored. Currently, the native DSH sidebar does not provide a unified usage view, forcing developers to switch pages frequently or query manually. The dsh-token-plan-monitor plugin solves this fragmentation by adding a card at the bottom of the sidebar.

Plugin Positioning

This is a DSH extension plugin maintained by YOYOYOAKE and licensed under the MIT license. It displays the DeepSeek Platform balance and OpenCode Go Token Plan consumption to users through a “Usage Monitoring” card at the bottom of the sidebar.

Core Features

The plugin mainly provides the following two types of monitoring capabilities:

  • DeepSeek Platform Balance: Automatically reads the API Key from the environment and queries the balance.
  • OpenCode Go Token Plan: After configuring the parameters on the DSH settings page, queries the Token Plan usage for the corresponding workspace.

Installation and Enablement

Run the following command in the terminal to complete the installation:

dsh plugin --profile web add @yoyoyoake/dsh-token-plan-monitor

After installation, refresh the browser to see the usage card at the bottom of the sidebar (above the settings button).

Typical Usage

DeepSeek Platform

In default mode, the plugin automatically detects the DeepSeek API Key and displays balance information in the sidebar without additional configuration.

OpenCode Go

For OpenCode Go mode, you need to manually enter the usage query parameters in the DeepSeek Harness settings:

  1. WorkSpace ID: Copy it from the OpenCode Go URL.
  2. Cookie: Obtain it from the browser’s Developer Tools (DevTools).

After configuration, the sidebar will display the Token Plan usage for the corresponding workspace.

Notes

  • OpenCode Go Configuration: This mode requires manually obtaining the Cookie, which involves the exchange of certain private information. Please ensure you operate in a secure environment.
  • Permissions and Security: Before installing the plugin, it is recommended to review the source code to confirm that its behavior complies with local security standards.

Conclusion

With this plugin, fragmented usage queries can be integrated into the unified DSH sidebar, improving monitoring efficiency during development. For more project details, refer to the plugin directory page or the GitHub repository.