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.

Llm Rate Limit — DSH Plugin for DeepSeek Harness
← Plugins

dsh-llm-rate-limit

Llm Rate Limit

LLM API rate limiting, concurrency control, queuing, and adaptive cooldown for DeepSeek Harness

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-llm-rate-limit@0.1.1
READMECompatibilityVersions

Compatibility and provenance

Llm Rate Limit is published as dsh-llm-rate-limit and currently resolves to version 0.1.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/20/2026

Versions

0.1.1stable
8/20/2026
0.1.0stable
8/20/2026

Related plugins

Loading related plugins…

Latest
0.1.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
70.7 kB
Files
18
Surface
any
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
86
Last push
8/20/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
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

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

dsh-llm-rate-limit

English | 中文

A DeepSeek Harness (DSH) plugin that prevents avoidable API rate-limit errors by pacing LLM requests before they reach the provider. It provides per-provider RPM limits, optional token budgets, concurrency control, bounded FIFO queuing, and adaptive cooldown for DeepSeek API, Volcengine Ark, and other DSH providers.

Use it when parallel agents, subagents, retries, or background requests are producing HTTP 429 errors, provider throttling, or traffic bursts.

Install from npm

Install the latest release into the Web profile:

dsh plugin --profile web add dsh-llm-rate-limit
dsh web

Pin a version for reproducible environments:

dsh plugin --profile web add dsh-llm-rate-limit@0.1.1

Install separately for Headless:

dsh plugin --profile headless add dsh-llm-rate-limit

GitHub installation is also supported:

dsh plugin --profile web add github:Asong6824/dsh-llm-rate-limit#v0.1.1

The bundled default protects deepseek-official with 30 requests per minute, burst 1, two concurrent requests, and a bounded queue.

Features

  • Provider-scoped requests-per-minute token buckets with configurable burst capacity.
  • Optional estimated-token-per-minute budgets with actual-usage reconciliation.
  • Concurrency limits and bounded FIFO queues with timeout and cancellation.
  • Adaptive cooldown for provider error codes, HTTP statuses, and Retry-After.
  • Explicit auxiliary-request shedding so background traffic does not block primary work.
  • Durable admission wait/start events for DSH session diagnostics.
  • Clean lifecycle disposal without abandoning queued or active requests.
  • Retry-aware admission: every dsh-llm-retry attempt is admitted independently; this plugin never retries requests itself.

Configure DeepSeek and Ark

Override the complete llm-rate-limit config in $DSH_HOME/profiles/<profile>/cordis.patch.yml:

- id: llm-rate-limit
  config:
    providers:
      deepseek-official:
        requests: { perMinute: 30, burst: 1 }
        maxConcurrentRequests: 2
        queue: { maxSize: 100, maxWaitMs: 300000, auxiliary: reject }
        cooldown:
          codes: [RATE_LIMIT, SERVER]
          statuses: [429, 529]
          initialDelayMs: 500
          maxDelayMs: 60000
          maxProviderDelayMs: 3600000
          jitterRatio: 0.1
      volcengine-ark-coding:
        requests: { perMinute: 30, burst: 1 }
        maxConcurrentRequests: 2
        queue: { maxSize: 100, maxWaitMs: 300000, auxiliary: reject }

Provider keys must exactly match GenerateOptions.provider. Optional token limiting adds:

tokens:
  perMinute: 1000000
  burst: 200000
  estimatedOutputTokens: 8192
  imageTokens: 1024

tokens.burst must be large enough for one complete request estimate. Omit tokens when a provider should have RPM and concurrency control without a local token ceiling.

How it works

Before each provider call, the plugin reserves request capacity, estimated token capacity, and a concurrency slot. Requests without capacity wait in FIFO order. Provider throttling responses activate a shared cooldown; successful responses reconcile estimated tokens with actual usage. The state is process-local and resets when DSH restarts.

The plugin deliberately does not provide distributed quotas, automatic retries, or provider failover.

Compatibility and links

  • Requires DeepSeek Harness 0.1.0-rc.8 or newer and Node.js 22.19 or newer.
  • npm package
  • GitHub releases
  • DSH plugins topic
  • Machine-readable summary

Development

pnpm install
pnpm run check

MIT