DeepSeek Harness Plugin: dsh-plusvibe-balance

Introduction

When using DeepSeek Harness (DSH) with models routed through PlusVibeAPI, developers need real-time visibility into account balance, daily and monthly spending, estimated costs for the current session, and consumption trends over the past few days. This information is typically scattered across the provider’s backend, and frequently switching windows disrupts the conversation flow. dsh-plusvibe-balance integrates this data directly into DSH’s editor area, providing an at-a-glance view of balance and spending status.

Plugin Overview

dsh-plusvibe-balance is a network utility plugin for DeepSeek Harness, maintained by ilyshkafox. It reads balance and usage data from PlusVibeAPI, and displays a real-time balance, a spending card (today/month/current session estimates, a bar chart by workday) below DSH’s input field, along with color-coded balance status feedback. The plugin calls the API in read-only mode and does not expose API keys in the browser.

Core Features

  • Balance Display: Shows the current balance (currency amount alongside context token count) in the editor’s bottom bar. It appears only when the selected model is routed to PlusVibeAPI, avoiding misleading information from other providers’ accounts.
  • Spending Card: Click the balance capsule to open a card that includes:
  • Remaining balance
  • Today’s spending and request count
  • Monthly spending
  • Current session estimated cost (marked with ≈)
  • A bar chart broken down by workday
  • A link to the PlusVibeAPI account page
  • Status Feedback: The balance capsule color changes based on the value—normal, warning (below 100 ₽), and error (below 10 ₽).
  • Auto-Refresh: Balance and card data refresh automatically every minute while visible.
  • Manual Refresh: A refresh button in the top-right corner of the card immediately re-fetches balance and chart data, with a loading animation shown during the request.
  • Session Estimation: Current session cost is calculated based on the session’s token usage and the default pricing of the current model. This is an estimated value.

Installation & Enablement

This plugin requires DSH 0.2.0-rc.2 or later. Please ensure the version requirement is met before installing.

Web Environment (command-line-launched web configuration):

dsh plugin --profile web add dsh-plusvibe-balance

Desktop Application:

dsh plugin --profile desktop add dsh-plusvibe-balance

After installation, find dsh-plusvibe-balance in DSH’s “Plugins” section and enable it.

Usage

Once the plugin is enabled, when the session’s model is routed to PlusVibeAPI, a balance capsule will appear in the editor’s bottom bar, alongside the existing total token count and context metrics. Click the capsule to view the full spending card.

  • Check Balance: The balance capsule displays the current remaining amount and context tokens.
  • View Spending: Click the capsule to open the card, where you can see today’s/monthly spending, current session estimated cost, and the workday bar chart.
  • Refresh Data: A refresh button in the top-right corner of the card allows you to immediately re-fetch balance and chart data, useful after network recovery or when the latest data is needed.

Use Cases & Notes

  • Ideal for DSH users who frequently use models routed through PlusVibeAPI and need real-time awareness of balance and spending.
  • The plugin runs with DSH process privileges. All API calls are made through DSH’s host-side, so keys are not directly exposed in the browser.
  • Currently supports Web/Desktop interfaces only; the editor bottom bar provides the display area for the plugin.
  • Current session cost is an estimate and may differ from invoices due to model switching, routing variants, provider minimum billing, and rounding.
  • The plugin is open source. It is recommended to review the source code and license before use.

Summary

dsh-plusvibe-balance seamlessly integrates PlusVibeAPI balance and spending information into the DeepSeek Harness editor interface. Through the balance capsule and spending card, it provides real-time, intuitive financial status feedback, helping developers better manage API resources. The plugin is read-only and display-only; it does not implement spending limits or alerts, making it well-suited as a daily companion tool.

  • Plugin Directory: https://www.skillhub.cn/plugins/ilyshkafox/dsh-plusvibe-balance
  • GitHub Repository: https://github.com/ilyshkafox/dsh-plusvibe-balance
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye