dsh-opendesign-usage: View Open Design quota and session token in the DSH input box

Introduction

When using DeepSeek Harness (DSH) with the Open Design model, plan quotas operate on two rolling windows: 5 hours and 7 days. Each session also tracks input, output, and cache-related token statistics. This information is scattered across the Open Design console or internal host projections, requiring frequent page switching and verification during coding, which disrupts workflow. Below we introduce a community-maintained client bundle plugin dsh-opendesign-usage: it provides read-only readouts in the Composer input box toolbar and displays wallet and session token details in an expandable panel; it only appears when the opendesign model is selected in the current session, avoiding cluttering the toolbar for other providers.

What Is This

dsh-opendesign-usage is an independent DeepSeek Harness bundle plugin, maintained by BlanCatOra and categorized as a client plugin in the SkillHub directory. It adds a read-only readout to the toolbar at the bottom-left of the input box, showing the remaining percentage for both Open Design plan windows; wallet balance and session token usage are placed in an expandable panel to avoid crowding the persistent readout. The readout only appears when the session selects the opendesign model; when switching to other providers, the control does not render or occupy space. Plugin version 0.2.0, license MIT; it is not affiliated with Open Design (AMR) officially and is an unofficial third-party plugin.

Example of the persistent readout (toolbar width is limited, so only two quota percentages are retained):

OD · 90% · 97%
     │      └────── 7-day window remaining quota
     └───────────── 5-hour window remaining quota

Core Features

Plan Quota

The plugin reads the Open Design console’s coding-plan-usage API through a host-side route, displaying the remaining quota percentage for the 5-hour and 7-day rolling windows in the toolbar. Clicking the panel reveals the remaining ratio, credits numerator and denominator, and reset countdown for each window; the countdown uses the server-side relative value resetsInMs returned by the upstream, without relying on subtracting local clock from resetsAt. When data for a window cannot be retrieved, it displays — at a fixed position to avoid misreading.

Wallet Balance

The fallback balance (subscription quota + top-up quota) after plan exhaustion is displayed in the panel details. The wallet follows the “Plan Quota” toggle: displaying the dollar amount alone without plan context could be misleading, so it is controlled together with plan quota, and both require credentials.

Session Token Usage

Reads the host’s tokenUsage projection and provides totals and breakdowns (input, output, cache read, cache write) in the panel. This portion is purely read-only host data and does not require Open Design credentials.

Plugin Details Page Toggles

All features can be toggled individually on the plugin details page; changes take effect after clicking save; “Test Connection” allows a trial run with draft credentials without saving.

Toggle Default Effect
enableComposerUsage On Whether to display the usage readout control in the input box
enablePlanQuota On Whether to display plan quota and wallet balance (requires credentials)
enableTokenUsage On Whether to display session token usage

When enableComposerUsage is off, the control is not registered and no requests are made. When enablePlanQuota is off, the host will not call the plan API upstream, avoiding “still requesting in the background after being turned off” situations.

Installation and Activation

Prerequisites

  • DSH version ≥ 0.2.0 (README states development and verification on 0.2.1-rc.2; engines.dsh in package.json is >=0.2.0-0);
  • Node: ^22.19.0 || >=24.0.0;
  • Platform: DSH Web GUI (web);
  • To view plan quotas, an Open Design account is required (free registration available).

Installation via Plugin Manager

DSH includes a plugin manager; operate in the GUI:

  1. Click Plugins in the sidebar;
  2. Click Add Plugin (or arrow → Install Third-Party Plugin);
  3. Enter the corresponding row from the table below and press Enter:
Installation method What to enter
npm (recommended, available after release) dsh-opendesign-usage
Git repository https://github.com/BlanCatOra/dsh-opendesign-usage
Local directory /absolute/path/to/dsh-opendesign-usage

The manager will install the package into the current profile via pnpm and prompt “Enable Now”.

Manual Installation (without GUI)

If not using the plugin manager, run in the profile directory:

cd ~/.dsh/profiles/<profile>
pnpm add /absolute/path/to/dsh-opendesign-usage

Then append "dsh-opendesign-usage" to the end of dsh.profile.bundles in ~/.dsh/profiles/<profile>/package.json, and restart DSH.

Activation and Visibility Conditions

After installation, restart DSH (new bundles require profile reassembly). Switch the model to any opendesign model in the session, and the readout will appear at the bottom-left of the input box. If it does not appear, first confirm that the current session has selected the opendesign provider; not showing the readout under other providers is expected behavior.

Configuring Credentials and Refresh

The configuration entry is on the plugin details page, not the DSH global “Settings” page: sidebar Plugins → Open Design Usage → modify and save on the plugin’s own page.

To use plan quota or wallet, you need to configure workspaceId and sessionCookie; the refresh interval defaults to 5 minutes, allowing 1–60 minutes, and upstream requests are only made when the readout is visible and the plan toggle is on.

Obtaining workspaceId

Log in to the Open Design console and copy the workspaceId parameter from the address bar:

https://open-design.ai/cloud/dashboard?workspaceId=<your workspaceId>

Obtaining sessionCookie

  1. Log in to the Open Design console in your browser;
  2. F12 → Network → refresh the page;
  3. Filter for coding-plan-usage;
  4. Open the request → Request Headers → find Cookie;
  5. Copy the value after __Secure-better-auth.session_token= up to the semicolon.

You can also paste the entire Cookie header; the plugin will extract the corresponding token. This field is a login credential, stored in DSH local settings, used only to read your own quota from amr-api.open-design.ai; the interface does not display the plaintext. After the session expires, the readout may change to —, requiring re-acquisition. If the machine is not used by a single person, you can turn off enablePlanQuota and keep only the credential-free token usage.

Brief Working Principle

The readout component in the browser requests the host’s same-origin route GET /plugins/dsh-opendesign-usage/plan-usage; the host carries the cookie to access upstream, normalizes the response, and returns it, keeping credentials out of the page context. Related routes only accept local loopback or DSH protocol origins. Quota and wallet correspond to two independent upstream APIs; failure of either will not clear the already-displayed data of the other in the panel.

Use Cases and Considerations

Suitable for developers who frequently use Open Design models in DSH, want to quickly glance at 5-hour/7-day quotas within the Composer, and compare token breakdowns in the same session.

Before installation, it is recommended to review the GitHub repository source code and the MIT license yourself. DSH plugins run with the permissions of the current DSH process; configuring a session token is equivalent to a console login session, so please only enable plan-related features in trusted environments. The community directory SkillHub plugin page is not officially affiliated with DeepSeek or 幻方 (Huanfang); installation sources are based on the page and repository descriptions.

Conclusion

dsh-opendesign-usage places Open Design’s dual-window quota readout into the input box toolbar, and consolidates the wallet and session tokens into the same panel, with conditional display based on the opendesign model selection. For installation steps and configuration details, refer to the SkillHub directory page and the GitHub README.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye