DSH Hub
dsh-billing-balance cover

YZz-S/dsh-billing-balance

dsh-billing-balance

UIWeb UI2 GitHub stars· updated 2026-08-15

Community plugins for DeepSeek Harness (DSH) Web GUI: token cost meter, billing balance, update checker — plain JavaScript, no build required.

Install

npx @deepseek-ai/dsh plugin --profile web add github:YZz-S/dsh-billing-balance

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

dsh-billing-balance DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/dsh-billing-balance.svg)](https://dshhub.dev/plugins/dsh-billing-balance)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from YZz-S/dsh-billing-balance, cleaned of badges and images.

dsh-billing-balance

English · 中文

DeepSeek Harness (DSH) dynamic Cordis plugin that shows your DeepSeek official API account balance and Volcengine Ark Coding Plan / Agent Plan quota (used percentages for the 5-hour/session, weekly and monthly windows, plus a countdown to the next quota reset) in the Web GUI.

DeepSeek Harness(DSH)动态 Cordis 插件:在 Web GUI 中显示 DeepSeek 官方 API 账户余额与火山方舟 Coding Plan / Agent Plan 套餐额度(5小时/会话、每周、每月窗口的已用百分比与距下次额度重置的倒计时)。

English

中文 · ← Back to DeepSeekHarnessPlugins

Features

  • DeepSeek balance: total / top-up / gift balance and account availability (GET https://api.deepseek.com/user/balance).
  • Volcengine Ark Coding Plan: used percentage, progress bar and countdown to reset (ticking every second) for the session (5-hour) / weekly / monthly windows; if you also subscribe to Agent Plan (5h/week/month windows), it is shown as well.
  • Three display spots + linkage:
    1. Settings → "Model Balance" page: full panel + manual refresh button + Volcengine AK/SK configuration area;
    2. Readout line below the conversation input box: a persistent one-line summary, auto-refreshing every 30 seconds;
    3. Floating round button at the bottom right: click to refresh (), drag to reposition, hover to show the current DeepSeek balance.
  • AK/SK configured in Settings: paste the Volcengine access keys directly on the settings page; they are written to ~/.dsh/.credentials.yaml through DSH's official credentials service, never echoed back in the page, and quota is fetched immediately after saving.

UI Sketch

Settings → Model Balance
┌──────────────────────────────────────┐
│ Model Balance                 [Refresh]│
│ ┌ DeepSeek Official API ────────────┐  │
│ │ Total (CNY)              ¥ 26.91  │  │
│ │ Top-up                   ¥ 26.91  │  │
│ │ Gift                      ¥ 0.00  │  │
│ │ ✓ Account available               │  │
│ └───────────────────────────────────┘  │
│ ┌ Volcengine Ark Coding Plan ────────┐  │
│ │ Coding Plan quota (session/week/month)│
│ │ 5h/session   12.3% used  ▓▓░░░░    │  │
│ │ Reset countdown        4h 21m      │  │
│ │ Weekly       45.0% used  ▓▓▓▓▓░░   │  │
│ │ Monthly       3.0% used  ▓░░░░░░   │  │
│ │ ── Access key config ───────────── │  │
│ │ [AK input] [SK input]              │  │
│ │ [Save & refresh] [Clear]           │  │
│ └────────────────────────────────────┘  │
└──────────────────────────────────────┘

Installation (dsh.bundle)

This repo is also an installable dsh plugin package (package.json declares dsh.bundle + dsh.client):

dsh plugin --profile web add github:YZz-S/dsh-billing-balance

After installation, the three spots — "Settings → Model Balance", the readout below the input box and the floating refresh button — take effect automatically. The dynamic usage (cordis_define loading host.js / client.js) is kept; pick either one.

Quick Start

Prerequisites: a running DeepSeek Harness (dynamic Cordis plugins supported; this plugin was developed and verified on DSH + Node.js v22 + Windows).

Related plugins