In the development of agents based on DeepSeek Harness, it is essential to have real-time visibility into Token consumption, cache hit rate, and account balance. Developers usually need to retrieve this data through logs or API responses and often lack an intuitive front-end monitoring solution. dsh-session-stats-panel is a DeepSeek Harness client plugin designed to address this pain point.

Plugin Positioning

This plugin is maintained by a1113622001. It is mounted non-intrusively on the right side of the page to display real-time data and billing information for the current session.

Core Features

The plugin provides the following data displays:

  • Token Cache Hit Rate: Displays the Token cache hit rate for the current session in real time.
  • Official Peak/Off-Peak Billing Estimation: Dynamically calculates the estimated session cost based on DeepSeek’s official peak and off-peak pricing table.
  • Account Balance: Displays the official DeepSeek account balance.
  • Runtime Duration: Tracks the session runtime duration.
  • Cumulative Tokens: Displays cumulative Tokens.

Installation

Install it via Harness CLI:

dsh plugin add dsh-session-stats-panel

Usage Instructions

After installation, the plugin automatically mounts the panel on the right side of the page and displays session data in real time. It enables real-time monitoring of the account balance while preventing the API Key from being exposed to the front end.

Security and Notes

The plugin adopts a server-side credential isolation design. The front end retrieves only the balance value through GET requests. The API Key is processed only on the server side and is not exposed to the front end. This project follows the MIT License.

For more information, refer to the project directory page or GitHub repository.