Introduction

The plugin ecosystem of DeepSeek Harness (DSH) extends functionality through plugins. This plugin addresses the need to view today’s consumption and account balance directly in the chat box, without opening a console or manually recording them.

What Is This

A DeepSeek Harness plugin maintained by Arslan-jh. The plugin displays today’s spending and total balance below the chat box and supports automatic refreshing.

Core Features

This plugin mainly provides the following capabilities:

  • Display today’s consumption: Estimated CNY spending derived from changes in account balance.
  • Display total balance: Queries the current available account balance via the official DeepSeek API.
  • Recharge detection: When top-ups or granted quota increase, it does not incorrectly reset today’s consumption to zero.
  • Automatic refreshing: Updates usage information every 3 minutes.

Installation and Dependencies

Before installing, ensure the environment meets the following requirements:

  • Node.js: Version 22 or higher.
  • DSH environment: Web Profile configured.
  • Dependencies: The following peerDependencies must be installed:
    • @deepseek-ai/cordis
    • @deepseek-ai/dsh-credentials
    • @deepseek-ai/dsh-session-persistence

Run the following command to install the plugin:

dsh plugin --profile web add github:Arslan-jh/deepseek-harness-usage

Usage

After installation, refresh the DSH web interface and open an existing session. The usage line appears below the conversation input area, showing today’s consumption and total balance.

The plugin automatically updates usage information every 3 minutes.

Permissions and Notes

During operation, the plugin performs the following actions:

  • Credential reading: Reads DEEPSEEK_API_KEY via the DSH credential service.
  • Network requests: Accesses api.deepseek.com to query balance.
  • Local storage: Writes a local file to save the balance baseline.
  • License: Uses the MIT License.

Conclusion

This plugin is suitable for answering questions like “How much quota did I use today?” The code is open source and maintained by Arslan-jh.

GitHub Repository