bowenliang123/dsh-context
bowenliang123/dsh-contextDSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
在设置 → API 密钥中为每个提供商管理多个 API 密钥:密钥池加备注、一键切换当前使用密钥,切换后下一次模型调用立即生效。
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.
.env file, the plugin takes over by storing the value under a plugin-managed reference and repointing the provider's apiKeyEnv at it — the Models page shows which reference is in effect.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.
dsh plugin --profile web add dsh-key-manager
Restart dsh web, then open Settings → API 密钥.
| 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) |
MIT