dsh-volc-balance-card: View Volcengine Balance and Ark Plan Usage in the DSH Sidebar

Introduction

When integrating Volcengine Ark into DeepSeek Harness (DSH), checking the top-up balance in the console’s “Cost Center” and the rolling, weekly, and monthly windows of Coding Plan / Agent Plan often requires opening separate web pages. There are also Ark-related widgets in the community focused on plan quotas, but they may not use the Billing OpenAPI, so they might not match the “Account Available Balance” in the Cost Center.

dsh-volc-balance-card is maintained by AwenJackson and is categorized as a client-side plugin. It fixes a card at the bottom of the sidebar: fetching real account balance (via QueryBalanceAcct) in the background, while simultaneously displaying Ark Coding and Agent plan usage; AK/SK can be configured and verified within the card without manually modifying credential files. The project is a fork of dsh-quota-panel (MIT), current package.json version is 0.2.2, license MIT.

What is it

One sentence: A DSH sidebar footer card that aggregates Volcengine top-up balance and Ark plan quotas, supporting AK/SK configuration within the card.

The card defaults to a compact capsule display (e.g., “Volcengine · ¥80.10”), which expands to show multi-line details when clicked. Each row is colored based on balance tiers and usage percentages (default: Balance < ¥10 Critical, < ¥20 Warning, ≥ ¥50 Healthy; Plan Usage ≥70% Warning, ≥90% Critical).

Core Functions

After expanding, the data sources for each row are as follows (all signed requests via the host process, no browser login state is read):

Row Interface Display Content
Volcengine Balance billing.volcengineapi.com · QueryBalanceAcct Available Balance, Cash Balance, Arrears, Frozen, Account ID
Ark Coding Plan open.volcengineapi.com · GetCodingPlanUsage Rolling / Weekly / Monthly windows and reset times
Ark Agent Plan open.volcengineapi.com · GetAFPUsage Agent Plan window (only applicable when a plan is subscribed)

Unlike similar Ark components that only display plan quotas, the balance row is consistent with the console Cost Center, coming from Billing rather than just plan quotas.

Credential and privacy-related behaviors (stated in README):

  • Only the AK is echoed in the interface in a masked form; the SK never enters the browser.
  • Credentials are written to VOLC_ACCESS_KEY / VOLC_SECRET_KEY in DSH’s standard storage ~/.dsh/.credentials.yaml, allowing reuse when sharing the same key pair with other plugins.
  • No external telemetry; the browser side only receives normalized amounts, percentages, reset times, and the masked AK.

Installation and Enablement

Open the Plugin Market in the DSH desktop app, search for dsh-volc-balance-card, and install. The entry is included in the curated list of awesome-dsh-plugin, and the market installs only from this list.

Install from GitHub Release

Download dsh-volc-balance-card.tgz from the latest Release and install the compressed package via the current DSH profile’s plugin installer using the file: bundle specification. The resource filename does not contain a version number so that the tarball: URL in the curated list remains resolvable after every release.

After installation, the card appears at the bottom of the sidebar; no restart is required for the currently running profile.

Typical Usage: Configuring AK/SK

The card does not read console passwords; requests are signed using access keys. It is recommended to bind the BillingReadOnlyAccess policy to the key (read-only Billing is sufficient).

  1. Create access keys (AK/SK) in the Volcengine console and grant Billing read-only permissions.
  2. Click ⚙ on the card in DSH, or click Configure AK/SK if no keys are configured.
  3. Fill in Access Key ID and Secret Access Key, then execute Save and Test.

When saving, the host immediately calls QueryBalanceAcct for validation: key errors, missing Billing permissions, or network failures will result in an error on the spot and no write will occur; success writes to disk and displays the balance row without refreshing the page. Clear will delete both credentials, the balance row disappears, and the configuration prompt is restored.

Settings

The following can be adjusted in the card ⚙ panel:

Setting Behavior
AK/SK Configure, test, or clear Volcengine key pair
Show Provider Hide/Show rows (Balance, Coding, Agent), frontend only
Refresh Interval 15s / 30s / 60s / 120s / 300s, or follow bundle default 60s
Capsule Display Which window the collapsed capsule highlights: auto / rolling / weekly / max
Warning Thresholds Override balance (¥) and usage (%) warning lines
Restore Defaults Reset local display settings

Balance responses are cached for 30 seconds based on credentials, so a 15-second refresh interval will not cause high frequency calls to the Billing API. The Bundle defaults to cordis.patch.yml; it comes with hide: [volcengine-agent], which avoids a persistent error line when not subscribed to an Agent Plan—just delete that line after subscribing.

Network and Environment

The plugin only initiates requests to the following endpoints (and only from the host process):

Method Host Action
GET billing.volcengineapi.com QueryBalanceAcct (version 2022-01-01, region cn-north-1)
POST open.volcengineapi.com GetCodingPlanUsage, GetAFPUsage (service ark, version 2024-01-01)

Compatibility (README / manifest):

  • DSH: >=0.2.0-rc.1 <0.3.0-0; Tested releases include 0.2.2-rc.1, 0.2.2-rc.2, 0.2.2-rc.3.
  • Node.js: >=20.
  • Desktop and web profile; registered slot sidebar.footer.action.

Scenarios and Notes

Suitable for developers who have been using Volcengine Ark in DSH for a long time and want to permanently check top-up balances and plan windows in the harness interface. If you only need one type of information, you can turn off the corresponding row in “Show Provider”.

The DSH ecosystem emphasizes “everything is a plugin”; community directory sites like skillhub.cn are independent listings and have no official affiliation with DeepSeek / Hyperscience (Fangfang). This plugin accesses Volcengine OpenAPI and reads/writes local credential storage using the current DSH host process permissions. Please review the source code and license yourself before installation.

Conclusion

dsh-volc-balance-card brings Cost Center-level balances and Ark Coding / Agent plan usage into the sidebar footer, completing AK/SK verification and configuration within the card. For installation instructions and update logs, please refer to the directory page and repository README.

  • Directory page: https://www.skillhub.cn/plugins/AwenJackson/dsh-volc-balance-card
  • GitHub: https://github.com/AwenJackson/dsh-volc-balance-card
羽毛球分组比赛记分
小程序二维码

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

Xiaoye