Introduction

If you use DSH’s Web interface to call the DeepSeek API, your account balance may not be directly visible in the local interface. dsh-balance-display is a DeepSeek Harness Web balance display plugin released by xsuas to display DeepSeek API account balances in the Web interface. The documentation specifies that the API Key is read only by the host plugin and is not returned to the browser; the balance interface only accepts requests from localhost / 127.0.0.1. Below is an introduction to its features, installation commands, and usage notes.

What is this

dsh-balance-display is a DeepSeek Harness Web balance display plugin maintained by xsuas with an MIT license.

The documentation’s README title is dsh-balance-display, and the package.json package name is @xsuas/dsh-balance-display. This article refers to the plugin using the repository name dsh-balance-display, and the installation/uninstallation commands remain in the format found in the documentation.

Core Features

  1. Display DeepSeek API account balance.
  2. Manual refresh on click.
  3. 10-minute balance cache.

Installation and Enabling

First install the plugin, then restart DSH Web.

Install from GitHub:

dsh plugin --profile web add github:xsuas/dsh-balance-display

Restart:

dsh web

If performing local development within the plugin repository directory, you can install using the local path:

dsh plugin --profile web add .

Uninstallation and Local Testing

Uninstall plugin:

dsh plugin --profile web remove @xsuas/dsh-balance-display

Local testing:

npm ci
npm test

Security and Runtime Environment

The security and runtime constraints specified in the documentation include:

  • The API Key is read only by the host plugin and is not returned to the browser.
  • The balance endpoint only accepts localhost / 127.0.0.1 requests.
  • Requires Node.js ^22.19.0 || >=24.0.0.
  • Client dependency injection @deepseek-ai/dsh-client-ui-slots.
  • License: MIT.

The plugin runs with the permissions of the current dsh process. It is recommended to check the source code, license, and repository documentation before installing.

Conclusion

After the installation and restart described above, dsh-balance-display can provide an entry point to view DeepSeek API account balances in DSH Web, while retaining manual refresh and 10-minute cache capabilities.

GitHub repository: https://github.com/xsuas/dsh-balance-display

Directory page URL: The directory page URL was not provided in the verified materials.