DSH Plugins Marketplace

DSH Plugins

Plugins

/

Security & Audit

/

dsh-llm-key-rotation

m

dsh-llm-key-rotation

Manifest valid★ 7

Seamless API-key rotation for DeepSeek Harness

UI (client)hasBundlePatch

npm DeepSeek Harness MIT License

dsh-llm-key-rotation

изображение

Seamless API-key rotation for DeepSeek Harness.
Hit a quota limit or 429 Rate Limit? The plugin swaps in the next key you configured and retries instantly — no restarts, no context loss, and zero interruptions.


⚡️ Highlights

  • 🔄 Invisible to Agent & User: Request fails with quota/rate limit → plugin hot-swaps the key → request retries and succeeds seamlessly.
  • 🎛 Native Web UI: List every key a provider can use and toggle rotation right inside Settings.
  • 🧠 Smart Anti-Spin: Cooldown discipline prevents infinite loops if all your keys are exhausted.
  • 🧼 Zero Core Patches: Plugs cleanly into the Harness recovery waterfall — safe to install, safe to remove.

🛠 How It Works

┌─────────────────┐          429 / QUOTA / AUTH          ┌──────────────────────┐
│  Model Request  │ ───────────────────────────────────► │  llm-key-rotation    │
└─────────────────┘                                      └──────────┬───────────┘
         ▲                                                          │
         │                  { kind: 'retry' }                       │ 1. Pick next key
         │             (Adapter re-resolves key)                    │ 2. Hot-swap env ref
         └──────────────────────────────────────────────────────────┘
  1. You keep working with your currently-active key as usual.
  2. If a request fails (QUOTA, RATE_LIMIT, or AUTH), the plugin loads the next key from your configured chain.
  3. The turn retries with the new key, and future requests continue with the working key.

🚀 Quick Start

1. Install the plugin

dsh plugin --profile web add @m1khal3v/dsh-llm-key-rotation

2. Configure via Web UI

Navigate to Settings → Plugins → Key Rotation:

  1. Toggle on rotation for your target provider.
  2. Select your trigger codes (default: QUOTA, AUTH).
  3. Click Add key, paste all the keys you want that provider to rotate through, and hit Save.

(Keys are safely saved to the Harness credential store).


⚙️ Behavior & Good to Know

  • Smart Rotation Window (300s): During consecutive failures, the plugin walks forward through your configured keys. If no failures occur for >5 minutes, the chain resets to start from the top again.
  • Interplay with dsh-llm-retry:
    • QUOTA and AUTH rotate immediately.
    • RATE_LIMIT is handled by dsh-llm-retry first (with backoff). To rotate instantly on 429 errors instead, simply remove RATE_LIMIT from your provider's retryableCodes.
  • Live Terminal Logs: Watch rotation events in real time right in your dsh terminal:
    [llm-key-rotation] rotated provider="opencode-go" chain[0]→"OPENCODE_GO_API_KEY" (QUOTA)
    
    (Secret values are never logged — only provider names, indices, and error codes).

🧑‍💻 Development

pnpm install
pnpm run verify    # typecheck + test
pnpm run build

📄 License

MIT

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.1-alpha.3: failedDSH 0.2.1-alpha.4: failed

Versions

Latest versionPublishedSize
0.1.0——
0.1.1——
0.2.0——
0.2.1——
0.3.0——
0.4.0——
0.5.0——
0.5.1——
0.5.2——
0.6.0——
0.6.1——
0.6.2——
1.0.0——
1.0.1——
1.0.2——
1.1.0——

Comments

Loading…

Similar plugins

dsh-key-rotation

by GooDAnDReaDY

Per-provider API key rotation for DeepSeek Harness: key pools, automatic 429 rate-limit failover, cooldown probing & Settings UI

Security & AuditManifest valid

★ 11

↓ 1.7k/wk

MIT

JavaScript

Oct 23, 2026

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

by taichuy

DeepSeek Harness auth插件

Security & AuditManifest valid

★ 26

↓ 229/wk

Apache-2.0

TypeScript

Oct 2, 2026

dsh plugin --profile web add deepseek-harness-auth

by tancheng33

HashiCorp Vault backend for the DeepSeek Harness credential seam: central secrets, AppRole machine auth, rotation without restart, and no long-lived provider key on the agent host

Security & AuditDevelopment & InfrastructureManifest valid

★ 0

MIT

TypeScript

Aug 16, 2026

dsh plugin --profile web add dsh-credentials-vault

✦

No screenshots

by xiaozhe7772222

API Key rotation pool for DeepSeek Harness: multi-key round-robin, failover on 401/403/429, cooldown & recovery, Web UI management panel

Tools & CapabilitiesThemes & SkinsManifest valid

★ 8

MIT

JavaScript

Aug 17, 2026

dsh plugin --profile web add dsh-api-key-pool

by loadingvx

Deepseek-harness-workbench-plugin

UI & ExperienceManifest valid

★ 35

MIT

TypeScript

Oct 19, 2026

dsh plugin --profile web add dsh-workbench-plugin

by zhuchengde0214-ctrl

Databricks AI Gateway model provider plugin for DeepSeek Harness

Development & InfrastructureManifest valid

★ 2

MIT

TypeScript

Aug 18, 2026

dsh plugin --profile web add dsh-llm-databricks