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.

Keys Manager — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-keys-manager

Keys Manager

Multi-key management for DSH providers: sticky per-session round-robin, retry failover, cooldown recovery, and searchable extra providers.

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-keys-manager@0.1.0
READMECompatibilityVersions

Compatibility and provenance

Keys Manager is published as dsh-keys-manager and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
10/19/2026

Versions

0.1.0stable
10/19/2026
0.0.1stable
10/19/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
415.6 kB
Files
38
Surface
web
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
0
Last push
10/19/2026
View source ↗
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.

Cost Meterdsh-cost-meterDeepSeek Harness session cost statistics plugin: current session cost, daily expenses, historical records, and synchronization with official pricing; supports multi-provider and multi-model price billing (built-in price catalog for 170+ model IDs with automatic matching), and querying and displayingCodex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images and Fast mode, and control DSH from the ChatGPT mobile app (Beta)Connect Workbuddydsh-connect-workbuddyConnect locally authenticated WorkBuddy models to DeepSeek Harness with read-only credit overview and model management.Connect Traedsh-connect-traeConnect locally logged-in Trae models to DeepSeek Harness: run domestic and international providers in parallel, with usage/points overview and daily check-in rewards.

README

DSH Keys Manager

English | 简体中文

Docs: Development · Release · Known limits — Documentation in Chinese: 开发 · 发布 · 已知限制

A DeepSeek Harness plugin that turns one provider API key into a managed pool. It extends the Models page rather than replacing it: providers, models, and the model picker stay where they are; only the API-key source moves behind the manager.

Features

  • Several keys per provider, each with an alias and health state.
  • One key pinned to a session, with round-robin selection for new sessions.
  • Bounded retry on the same key, then automatic failover to another key.
  • Exponential cooldown recovery, capped at seven days.
  • A search-driven Keys Manager page on the plugin's own detail page.
  • A "managed by Keys Manager" badge inside the existing Models provider cards.
  • Extra built-in providers installed as ordinary llm-pi-ai routes.

Extra providers

src/providers.ts contains a curated catalog of 34 extra providers (21 from the original catalog plus 13 added in this release, for example SiliconFlow, Zhipu coding plan, Cline Pass, Ollama Cloud, and Alibaba Token Plan (CN)), derived from oh-my-pi's provider catalog (MIT). An extra id is added only when the shipped DSH catalog does not already declare that route id (for example, meta and typesafe are not duplicated); same-endpoint providers with distinct credential identities are kept by design.

Quick start

Install — published package

dsh plugin --profile web add dsh-keys-manager

Install — local checkout

git clone https://github.com/btspoony/dsh-keys-manager
cd dsh-keys-manager
pnpm i
dsh plugin --profile web link .

Refresh the Web page after installing so the browser half is fetched.

Usage

Open Plugins → Keys Manager → View (rendered as Plugins → 密钥管理 → 查看 in the Chinese locale). The manager renders on the plugin's detail page, between its description and its included rows, matching the shipped plugin configuration cards.

  1. Search for a provider. Existing DSH providers appear first; the plugin also ships the curated extra catalog described above.
  2. Adopt a provider. For an existing provider the manager imports the currently resolved credential, writes a broker reference into the provider profile, and leaves the original key in the credential store so release can restore it.
  3. Add more keys with an alias. Every key is stored in the Harness credential store under its own reference; the manager state document never contains a key literal.
  4. Manage a key from the three-dot menu: rename, pause/resume, delete. A key row shows status, last use, and the recovery time while cooling.
  5. Tune retry count (1–3), base cooldown, and recovery grace in the settings card.

Selection and failure policy

  • Sticky session: the first request of a session selects a key and binds it for that session/provider pair. Later requests reuse it.
  • Round robin: a new session advances the provider cursor and takes the next healthy key.
  • Retry: a failing request is retried on the same key retryCount times.
  • Switch: after the retry budget is spent, the failing key is marked cooling, and the session is rebound to another healthy key.
  • Cooldown: the first failure cools a key for baseCooldownMs. A failure while cooling, or within recoveryGraceMs after recovery, doubles the next cooldown. A long healthy gap resets the escalation. The hard cap is seven days.
  • Recovery: the key is automatically selectable again when its cooldown expires; no manual reset is required.
  • Delegation: request-shaped failures such as CONTEXT_WINDOW_EXCEEDED and cancellation never cool a key. When no alternate key exists, the manager delegates to the composition's normal retry/fallback policy.

Configuration & data

Manager metadata lives at:

$DSH_HOME/keys-manager/state.json

with owner-only permissions. It contains aliases, credential references, health counters, session bindings, and provider adoption facts. API key literals live only in the Harness credential store. The file is written atomically through a temporary file and a rename.

Each managed provider profile points its apiKeyEnv at a broker reference such as KEYSMGR_ZAI_CODING_CN_3FA2C1. The Host credential layer answers that reference per request with the session's selected key. The Models page sees the profile as configured; writing directly to the broker reference is refused with a pointer to the manager.

OAuth2 extension point

The state shape already distinguishes kind: "api-key" from kind: "oauth" and keeps a nullable oauth object beside the credential reference. A future account flow can add records under keys-manager/<provider>/<key> without rewriting existing rows. Providers whose only authentication is OAuth are reported as unsupported in this version rather than being treated as API-key providers.

Provider classification

Every provider card carries its origin:

  • DSH built-in (DSH 内置) — a route from the shipped DSH pi-ai catalog.
  • Plugin built-in (插件内置) — a route from this plugin's extra catalog in src/providers.ts.
  • Custom (自定义) — a hand-declared route in the active profile.

The following DSH built-ins are explicitly outside single-key pool management:

ProviderWhy
amazon-bedrockAWS credential chain (profile, IAM keys, ECS/IRSA/EC2), not one API key
cloudflare-ai-gatewayAPI key plus a Cloudflare account ID and gateway ID
cloudflare-workers-aiAPI key plus a Cloudflare account ID
openai-codexChatGPT OAuth sign-in only; no API-key credential

All other DSH catalog routes expose an API-key credential. Providers that also support OAuth (Anthropic, GitHub Copilot, Kimi, OpenRouter, xAI, Radius) remain manageable through their API-key path; OAuth accounts are tracked separately in the roadmap issue.

Documentation

DocContent
Developmentbuild and dev workflow, repository layout
ReleaseCI checks and the npm release flow
Known limitscurrent design boundaries, including deferred providers

Chinese versions: README.zh-CN.md and the *.zh-CN.md files in docs/. Current design boundaries at a glance: Known limits.

License

Released under the MIT License.