dsh-key-manager
Manifest validManage multiple API keys per provider in Settings → API 密钥: 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
Similar plugins
Pools 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-poolDSH Usage Monitor: auto-query provider credit balances and time-window limits from configured API keys, with input capsule and custom provider support.
★ 0
↓ 53/wk
dsh plugin --profile web add @lcthe/dsh-usage-monitorby MochiNek0
Sign in to AI coding plans that have no API key — Claude Pro/Max/Team, ChatGPT Plus/Pro, Copilot, SuperGrok — from the dsh settings UI.
★ 0
↓ 276/wk
MIT
TypeScript
Sep 5, 2026
dsh plugin --profile web add dsh-vendor-loginby Thedeergod666
Shows coding-plan usage and balance for 5 AI providers (MiniMax, DeepSeek, Kimi, OpenRouter, Zhipu) beside the composer input, switching with the selected model and reusing API keys configured in DSH
★ 6
MIT
JavaScript
Aug 31, 2026
dsh plugin --profile web add dsh-musageby jmcc-guo
SSH terminal panel & AI connection manager for DeepSeek Harness — model-driven connect/exec/list/status/disconnect tools plus an XShell-style multi-tab terminal in the Web GUI.
★ 4
↓ 212/wk
MIT
JavaScript
Sep 10, 2026
dsh plugin --profile web add @jmcc-guo/dsh-sshby jcleener
DSH 插件:常驻 API 用量监控 —— DeepSeek/SiliconFlow/OpenCode Go/火山引擎 余额与配额、会话树 token 与花费(侧边栏入口 + 浮动窗)
★ 0
MIT
JavaScript
Aug 28, 2026
dsh plugin --profile web add api-monitor