DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-commandcode-quota

Commandcode Quota

Command Code balance and quota panel for DeepSeek Harness: a status row under the composer showing balance and the 5-hour, weekly and monthly windows.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-commandcode-quota@0.3.2
READMECompatibilityVersions

Compatibility and provenance

Commandcode Quota is published as dsh-commandcode-quota and currently resolves to version 0.3.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
11/4/2026

Versions

0.3.2stable
10/31/2026
0.3.1stable
10/29/2026
0.3.0stable
10/29/2026
Show 5 more versionsCollapse versions
0.2.3stable
10/17/2026
0.2.2stable
10/10/2026
0.2.1stable
10/8/2026
0.2.0stable
10/8/2026
0.1.0stable
9/17/2026

Related plugins

Loading related plugins…

Latest
0.3.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
203.5 kB
Files
15
Surface
web
License
MIT
Source
npm
GitHub
★ 2
Weekly downloads
956
Security scan
✓ v0.3.2 scan passed
Last push
10/31/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowConnect Workbuddydsh-connect-workbuddyConnects locally signed-in WorkBuddy models (domestic and international versions) to DeepSeek Harness, automatically reading each model’s points multiplier from the upstream catalog on every refresh, with per-model image input toggles, multi-account switching, automatic account rotation from an accoCost Meterdsh-cost-meterDeepSeek Harness session cost statistics plugin: tracks current session costs, today’s expenses, and historical records, with synchronization to official pricing. Supports billing across multiple vendors and models, with a built-in catalog of prices for 170+ model IDs and automatic matching. Also suClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.

README

dsh-commandcode-quota

A Command Code balance and quota panel for DeepSeek Harness (DSH).

The plugin renders a compact status row directly underneath the DSH composer:

  • 5-hour, weekly and monthly usage windows as live percentages
  • Available balance
  • Click the row to expand the full breakdown: used / limit / remaining / reset time, total spend, tokens, daily spend, subscription and account information
  • Three status lights — normal / low balance / exhausted. The current one lights up and the others dim, driven by the official belowThreshold and exceeded fields; hover any light for an explanation
  • The bar color follows usage: cool while usage is low, warming up past 55%, red near the limit, with an internal gradient
  • Six bar palettes to choose from in the gear settings; the choice is remembered
  • Overrun warning: based on this period's daily average, the monthly card adds a line like “~N days until empty” when the remaining credit will not last until reset
  • A skeleton screen shows on first load so the layout does not jump when data arrives

It is single-account by design. There is no account switcher, and your API key never reaches the browser.

Requirements

  • DeepSeek Harness with the Web client (dsh web or the desktop app)
  • Node.js 20 or newer
  • A Command Code API key

Install

From npm (recommended)

dsh plugin add dsh-commandcode-quota

DSH expands the bundled cordis.patch.yml into your profile, so no manual patch editing is needed.

From a local checkout

dsh plugin add file:/path/to/dsh-commandcode-quota

Manual junction (desktop app)

The Electron desktop profile is managed by the application and does not run the dsh plugin add reconciliation, so register it yourself.

Link the package into the shared resolution pool:

New-Item -ItemType Junction `
  -Path "$env:USERPROFILE\.dsh\profiles\node_modules\dsh-commandcode-quota" `
  -Target "C:\path\to\dsh-commandcode-quota"

Then add this to ~/.dsh/profiles/<profile>/cordis.patch.yml:

- insert:
    - id: dsh-commandcode-quota
      name: 'dsh-commandcode-quota'
      config:
        apiKeyEnv: COMMANDCODE_API_KEY

The junction name must be exactly the package name, otherwise the host cannot resolve the import.

After installing or changing the plugin, reload the plugin tree (the plugin page's refresh action, or a client restart).

Configuration

KeyDefaultDescription
apiKeyEnvCOMMANDCODE_API_KEYCredential entry resolved through DSH's credentials service
fallbackEnv—Optional second entry, used only when the first one is missing
baseURLhttps://api.commandcode.aiCommand Code API origin
timeoutMs30000Per-request timeout in milliseconds

Credentials live in ~/.dsh/.credentials.yaml, or in DSH Settings → Credentials. Never commit them.

How it works

The package has two halves:

  • Host half (src/index.js) resolves the key through the DSH credentials service and registers a read-only HTTP endpoint that fans out to the Command Code API, then aggregates the responses into a single payload. The key is read on every request and never serialized to the client.
  • Client half (src/client.js) registers a status row into the composer dock slot, polls the host endpoint, and renders it with DSH theme tokens so light and dark themes both work.

Polling is tiered: balance every 3 minutes (cheap), usage and subscriptions every 30 minutes (expensive). Polling pauses while the page is hidden and refreshes fully when it comes back.

Data comes from four Command Code endpoints, each called with Authorization: Bearer <key>:

EndpointUsed for
GET /alpha/billing/creditsBalance and the 5-hour / weekly limits
GET /alpha/usage/summarySpend, tokens and the period start (for daily spend)
GET /alpha/billing/subscriptionsSubscription status and period boundaries
GET /alpha/whoamiAccount information

The monthly window is composed from the usage total plus the remaining credits, with the reset time taken from the subscription period.

Behaviour under failure

  • The four requests run in parallel, so total latency is the slowest one rather than the sum.
  • A connection-level failure is retried once; a deliberate timeout is not retried.
  • On failure the panel falls back to the last successful value (kept for 6 hours) and reports it as stale.
  • That snapshot is also written to $DSH_HOME/dsh-commandcode-quota-cache.json, so it survives a restart. It holds quota fields only — no account details, and never the key itself.
  • The snapshot is keyed by a fingerprint of the API key, so switching keys never reuses another account's data.
  • An HTTP 401 is never masked by cached data, because it means the credential itself is wrong.
  • When all four endpoints fail, the response carries a readable reason and the panel shows an error rather than a blank box.

Development

npm test                        # host and client unit tests; no network, no DSH process
node --check src/index.js       # host half syntax
node --check src/client.js      # client half syntax

The tests stub the credentials service, the web server, fetch and React, so they run offline and never touch a live DSH instance.

License

MIT