dsh-key-manager
Manifest validManage multiple API keys per provider in Settings → API Key: keep a pool of keys with notes, switch the active key with one click, and the switch really takes effect on the next model call.
dsh-key-manager
Multiple API keys per provider for DeepSeek Harness.
Keep a pool of API keys for each provider configured in Settings → 模型 (Models), annotate each key with a note, and switch the active key from Settings → API 密钥 — every switch really takes effect on the next model call.
Features
- Per-provider key pools — for every configurable provider exposed by the Models page (only providers that actually have a key reference are listed).
- Notes — annotate each key (e.g. "personal", "team", "billing A"); the currently-in-use key can be renamed too.
- Switch that really applies — activating a key writes it through the harness credential seam. When the native reference is shadowed by the process environment or a
.envfile, the plugin takes over by storing the value under a plugin-managed reference and repointing the provider'sapiKeyEnvat it — the Models page shows which reference is in effect. - Current-use pinned first — the key actually in use always sits on top with a green badge; keys missing the pool show as a "live" row.
- Defaults to the provider in use — the page pre-selects the provider behind the currently-selected model.
- Durable, no hardcoded paths — the registry file lives next to the harness data directory (derived at runtime from the settings document path).
Storage note: key values are persisted in plain text in the harness data directory (
~/.dsh/dsh-key-manager.json), the same level of protection the harness itself applies to.credentials.yaml. Lock down the directory if you share the machine.
Install
dsh plugin --profile web add dsh-key-manager
Restart dsh web, then open Settings → API 密钥.
How it works
| Piece | Where |
|---|---|
Settings section api-key-manager | lib/client.js (web module) |
Same-origin JSON API /plugins/dsh-key-manager/* | lib/index.js |
| Key pool registry | ~/.dsh/dsh-key-manager.json (derived at runtime) |
| Active key write | harness credentials service (native ref, or plugin-managed takeover ref) |
Provider apiKeyEnv repoint | harness settings service (llm-* namespace) |
License
MIT
Comments
Loading…
Similar plugins
by ADkun
DSH 设置里多一页「AnySearch KEY」:登记多个 AnySearch API KEY(带备注),点一下就把 anysearch 插件切到那个 KEY —— 写 credentials 的 ANYSEARCH_API_KEY,逐次解析,切换立即生效、无需重启 dsh。
★ 0
MIT
JavaScript
Oct 20, 2026
dsh plugin --profile web add dsh-anysearch-key-mgmPools several OpenCode Go API keys and hot-switches each request to the least-used one, with official usage and balance lookup plus a graphical settings page.
★ 0
↓ 61/wk
dsh plugin --profile web add dsh-llm-api-poolby MoruTeaven
该仓库暂未提供项目说明。
★ 1
Apache-2.0
JavaScript
Oct 8, 2026
dsh plugin --profile web add @moruteaven/dsh-key-panelby btspoony
A DSH plugin that turns one provider API key into a managed pool + more built-in LLM Providers
★ 0
MIT
TypeScript
Oct 22, 2026
dsh plugin --profile web add dsh-keys-managerby KouzakiUmi
DSH 插件:从 pi-ai 上游目录发现和管理模型,支持人工确认、按 provider 开关、安全写入与回滚;models.dev 可作可选备用数据源。
★ 0
MIT
JavaScript
Oct 22, 2026
dsh plugin --profile web add dsh-model-refreshby GooDAnDReaDY
Per-provider API key rotation for DeepSeek Harness: key pools, automatic 429 rate-limit failover, cooldown probing & Settings UI
★ 11
↓ 1.7k/wk
MIT
JavaScript
Oct 23, 2026
dsh plugin --profile web add @goodandready/dsh-key-rotation