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.

Key Limits — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@goodandready/dsh-key-limits

Key Limits

DeepSeek Harness plugin: API key / subscription quota limits (float chip, composer bar, settings).

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

npx -y @deepseek-ai/dsh plugin --profile web add @goodandready/dsh-key-limits@0.2.2
READMECompatibilityVersions

Compatibility and provenance

Key Limits is published as @goodandready/dsh-key-limits and currently resolves to version 0.2.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
9/20/2026

Versions

0.2.2stable
9/19/2026
0.2.1stable
9/18/2026
0.2.0stable
9/17/2026
Show 1 more versionCollapse versions
0.1.10stable
9/15/2026

Related plugins

Loading related plugins…

Latest
0.2.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
183.3 kB
Files
14
Surface
web
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
387
Security scan
✓ v0.2.2 scan passed
Last push
9/19/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 the current session provider's today usage on the sidebar entryWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

README

📦 @goodandready/dsh-key-limits

Real-time API Quota Limits, Token Plan Balances & Key Monitoring for DeepSeek Harness

🇬🇧 English • 🇨🇳 中文说明 • 🇷🇺 Русский

⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.

🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version.

⚡ Overview & The Problem

AI developers and engineers frequently work across multiple LLM providers, corporate subscriptions, and token plan tiers simultaneously (such as OpenCode GO, Ollama Cloud, Qwen Cloud, Kimi, GLM, MiniMax, Cline, DeepSeek, OpenRouter, and Command Code).

Without ambient, real-time quota tracking inside DeepSeek Harness (DSH):

  • Conversations crash unexpectedly when rolling 5-hour limits or monthly quotas deplete mid-generation.
  • Users have no instant visibility into which subscription key is currently bound to the active chat session.
  • Switching tabs to check individual vendor dashboards disrupts developer workflow.

dsh-key-limits solves this by delivering ambient, distraction-free quota monitoring directly within the DSH Web UI. It focuses strictly on quota limits and subscription balances without heavy accounting ledgers, historical spending databases, or complex analytics.


🏗️ Architecture & Data Flow

graph LR
  subgraph Client ["DSH Web Client"]
    FC["FloatChip (Draggable Badge)"]
    CB["ActiveKeyButton (Composer Bar)"]
    SC["Settings Card (Plugin Slot)"]
    M["Modals (All Limits & One Limit)"]
  end

  subgraph Backend ["Cordis Plugin Backend"]
    Router["HTTP API Router (/dsh-key-limits)"]
    CredStore["Encrypted Credential Storage"]
    Updater["Loopback Plugin Updater"]
  end

  subgraph Providers ["AI Providers & Services"]
    P1["OpenCode GO / Ollama / Qwen"]
    P2["Command Code / Cline / GLM"]
    P3["DeepSeek / OpenRouter / MiniMax"]
    NPM["npmjs.org Registry"]
  end

  FC -->|Click| M
  CB -->|Click| M
  M -->|Poll Quotas (60s)| Router
  SC -->|Save Credentials| Router
  SC -->|Trigger Update| Updater
  Router --> CredStore
  Router -->|Parallel 12s Abort| P1
  Router -->|Parallel 12s Abort| P2
  Router -->|Parallel 12s Abort| P3
  Updater -->|Loopback Check / Install| NPM

✨ Full Feature Breakdown

1. Floating Quota Chip (FloatChip)

  • Persistent Viewport Overlay: Displays the lowest remaining quota percentage across all active keys (or total account count).
  • Draggable with Boundary Clamping: Smooth mouse and touch dragging that prevents the chip from leaving the visible screen. Coordinates persist automatically in localStorage.
  • One-Click Overview: Clicking the chip opens the All Limits Modal showing every configured account, plan, rolling windows, and expiration dates.

2. Composer Bar Key Status (ActiveKeyButton)

  • Injected directly into the message input area (conversation.composer.bar, priority 10).
  • Automatically inspects the active conversation session to detect the bound provider model.
  • Shows the remaining quota percentage or monetary balance for that exact model.
  • Clicking the button opens the One Limit Modal dedicated to the active account.

3. Account Reordering & Active on Top

  • Custom Account Order (order): In settings, arrange the display sequence of accounts using intuitive Up/Down controls (▲ / ▼).
  • Active Always on Top (activeOnTop): Automatically moves the account currently in use by the active conversation to the top of the list. Enabled by default.

4. Humanized Reset Countdown (fmtReset)

  • Durations exceeding 24 hours display days, hours, and minutes (e.g., 5d 5h 19m).
  • Durations under 24 hours omit days for concise reading (e.g., 4h 59m).
  • Expired windows immediately indicate refresh status.

5. Calm, Professional UI Design

  • Consistent 12px vertical spacing between cards eliminates cramped layouts and overlapping borders.
  • Calm neutral tones for healthy (>30%) quota states, reserving amber and red strictly for warning (<30%) and critical (<15%) levels.
  • Sleek 5px progress bars that blend into the native DSH theme.

6. Built-in One-Click Updater

  • Check for updates directly within the settings card.
  • Installs the exact published package from npm without manual terminal intervention.
  • Protected against non-loopback or cross-origin requests.

🔌 Supported Providers

Provider IDNameQuota WindowsAuthentication
commandcodeCommand CodeRolling 5h / Weekly / Monthly (GOAT, Pro, Max plans)API key (user_... or token)
opencode-goOpenCode GORolling 5h / Weekly / MonthlySession cookie (auth) & Workspace ID
ollamaOllama CloudSession / Weekly / MonthlyAPI key & Session cookie
qwenQwen Cloud5h / 1-Week Token PlansSession cookie & optional sec_token
kimiKimi for CodingWeekly Quota LimitAPI key (sk-kimi-...)
glmGLM (Z.ai)Daily / Monthly QuotaAPI key
minimaxMiniMax Coding PlanCoding Plan QuotaAPI key (sk-cp-...)
clineCline5h / Weekly / MonthlyBearer API token
deepseekDeepSeekBalance ($ / ¥)API key (sk-...)
openrouterOpenRouterBalance ($ credits remaining)API key (sk-or-...)

📦 Quick Installation

Install the official package into your active DSH profile:

dsh plugin --profile web add @goodandready/dsh-key-limits

Restart DSH Web:

dsh web --profile web

⚙️ Configuration Reference (settings.yaml)

# ~/.dsh/profiles/web/settings.yaml
plugins:
  '@goodandready/dsh-key-limits':
    storageDir: ~/.dsh/storages/dsh-key-limits
    refreshIntervalMs: 60000
    activeOnTop: true
    order: []

Parameter Details

ParameterTypeDefaultDescription
storageDirstring~/.dsh/storages/dsh-key-limitsDirectory where subscription metadata and cached cards are stored.
refreshIntervalMsnumber60000 (1 min)Polling frequency for refreshing quota windows from providers.
activeOnTopbooleantrueAutomatically pins the account matching the active chat session to the top of lists.
orderstring[][]User-defined sequence of subscription IDs for custom card ordering.

🛠️ Development & Testing

# Build unified client bundle from src/client/
npm run build:client

# Run automated tests
npm test

Directory Structure

.
├── lib/
│   ├── index.js          # Cordis plugin entrypoint & HTTP routes
│   ├── client.js         # Built client bundle
│   ├── cards.js          # Card generation and formatting
│   ├── subs.js           # Provider quota fetchers & normalization
│   ├── paths.js          # Path resolution helpers
│   └── plugin-updater.js # Secure loopback updater
├── src/client/           # Source modules for browser client
│   ├── 01-prelude.js     # Scoped CSS & React setup
│   ├── 02-locale.js      # Multi-language dictionaries (en, zh, ru)
│   ├── 03-format.js      # Humanized countdowns & color classes
│   ├── 04-modals.js      # AllLimitsModal & OneLimitModal
│   ├── 05-bar.js         # Composer bar ActiveKeyButton
│   ├── 06-float.js       # Draggable FloatChip
│   ├── 07-settings.js    # Settings card, reorder list & updater
│   └── 08-apply.js       # DSH plugin bootstrap & slot registrations
├── cordis.patch.yml      # Cordis plugin declaration
└── test/                 # Test suite

📄 License

MIT © GooDAnDReaDY