dsh-quota-viewer: DSH Sidebar Multi-Provider Quota Panel

Introduction

When using DeepSeek Harness (DSH) with DeepSeek official APIs, third-party subscriptions, or local CLI usage, balance and window information are often scattered across their respective consoles or command lines. Determining “how much is left” or “which side will run out first” requires repeatedly switching pages or manually checking commands. The community plugin dsh-quota-viewer addresses this by displaying quotas and usage for multiple providers centrally at the bottom of the DSH Web sidebar, while maintaining approximately 90 days of local history for trend analysis.

What is this

dsh-quota-viewer is a plugin published by maintainer black970. It is categorized as a client-side plugin targeting the web profile. It adds a Quota Overview row to the bottom of the sidebar (which becomes a floating bottom card when the sidebar is collapsed into icons). Clicking it expands the details. The panel refreshes automatically every 10 minutes when open, and there is also a manual “Update” button. The plugin is open-source under the MIT license, with the current package version being 1.0.0.

Core Features

Overview & Details

After expanding the details panel, you can view data grouped by provider:

  • Used / Limit / Remaining / Percentage
  • Daily quota, expiration time
  • Estimated days remaining based on current usage rate
  • Last update time (relative time, e.g., “3 minutes ago”)

The top row summarizes the status of all providers. You can switch between providers, add or save tokens for each. Below each provider is a daily trend chart derived from local history, where you can switch the number of days displayed.

Supported Providers

Provider Data Source Prerequisites
DeepSeek Official Open Platform Balance (platform.deepseek.com balance API) DEEPSEEK_API_KEY must be resolvable in the Credential Service
jojo code Subscription window after console login (Time window / Daily quota / Expiration) Log in once via console email + password in the panel; session auto-renews on expiration
SCNet Console Token Plan usage Scan QR code or email/password login; session keep-alive failure will be indicated in the panel
Ark Coding Plan Local arkcli usage plan --product coding-plan arkcli installed and logged into a Volcano account (Coding Plan has no usage API accessible via API Key alone)

If any provider is not configured, it does not affect others: that row displays “Not configured / Unavailable” along with required steps, while others display normally.

Data & Privacy

  • The host registers HTTP routes accessible only via loopback (request source must be 127.0.0.1 / ::1 and Host header matches the local machine). The API only returns totals and percentages, never keys.
  • Key resolution goes through the DSH Credential Service, resolved per request; tokens saved in the panel are stored locally.
  • History is stored in ~/.dsh/quota/history.db (SQLite): only one sample is kept per metric per provider within 10 minutes, retaining the last 90 days for each metric.
  • The plugin has no npm runtime dependencies; outbound requests are only made to the official domains of the mentioned services, with no telemetry.

Installation & Activation

Install the plugin for the web profile in DSH:

dsh plugin --profile web add github:black970/dsh-quota-viewer

After installation, restart or reload DSH, and the quota row will appear at the bottom of the sidebar.

Typical Usage

  1. Expand / Collapse: Click the quota row at the bottom of the sidebar to open or close the details panel.
  2. DeepSeek Official: Configure a resolvable DEEPSEEK_API_KEY in the DSH Credential Service. You can check the balance without re-entering the key in the panel (if the panel supports token-based providers, you can also enter and save it there, or switch back to the value in the Credential Service).
  3. jojo code: Log in with your console email + password in the login area of the panel; you can check “Set long-term login” to automatically re-login when the token becomes invalid.
  4. SCNet: Log in via QR code or email/password in the panel; the panel will prompt you if keep-alive fails.
  5. Ark Coding Plan: After installing and logging into arkcli locally, the plugin reads usage via arkcli usage plan --product coding-plan.
  6. Trend Charts: View local history in the details panel by provider and metric (Balance / Used Ratio), and switch the number of days displayed.

Use Cases & Notes

This is suitable for developers who frequently develop within DSH Web and simultaneously use usage windows such as DeepSeek Official, jojo, SCNet, and Ark Coding Plan: view summaries and estimated days remaining in one place, reducing the cost of switching consoles.

Please note before installation: DSH plugins run with the permissions of the current dsh process and will access the Credential Service, local SQLite, and login sessions for some providers. It is recommended to review the source code and MIT license on the GitHub repository before installation to ensure compliance with your environment and requirements. The community directory SkillHub Plugin Page and GitHub are independent sources of information and have no official affiliation with DeepSeek or High-Flyer.

Conclusion

dsh-quota-viewer consolidates quotas and usage for DeepSeek Official balance, jojo code, SCNet, and Ark Coding Plan into the DSH sidebar, using local 90-day history to plot trends. You can install it from the directory or repository when needed:

  • Directory: https://www.skillhub.cn/plugins/black970/dsh-quota-viewer
  • GitHub: https://github.com/black970/dsh-quota-viewer
羽毛球分组比赛记分
小程序二维码

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

Xiaoye