dsh-subscriptions
在终端中运行以下命令:
dsh plugin install DevViking-Persike/dsh-subscriptions
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 中执行 dsh plugin install DevViking-Persike/dsh-subscriptions 即可安装本插件,源码地址为 https://github.com/DevViking-Persike/dsh-subscriptions。
插件介绍
DeepSeek Harness normally calls models through API keys, but many developers already hold a Claude or ChatGPT/Codex subscription whose quota can only be spent inside each vendor's own client. dsh-subscriptions lets Harness reuse those subscriptions directly: one-time OAuth sign-in, automatic token refresh, and no API key to manage.
The plugin registers claude and codex Provider routes inside Harness, supporting text and image input while remaining fully transparent to the model — no extra tools, no prompt injection, no appended context. It only corrects accounting: Claude's input tokens already exclude cache reads while Codex includes them, and the plugin normalizes both so every cost display reports accurate context figures. Images are inlined as base64 on the Anthropic route and sent as data URLs on the Responses route; if a model's catalog entry does not declare image support the request is refused outright rather than silently dropping the attachment.
On the security side, credentials are written atomically with 0600 permissions under a cross-process writer lock, a failed refresh never overwrites the stored token, and no token ever appears in log lines, error messages, or the /status response. The control server binds to loopback only, keeping the attack surface minimal.
If you already pay for Claude or ChatGPT and want to keep calling them within DeepSeek Harness's unified workflow, this plugin eliminates a second API bill while preserving full streaming, image understanding, and retry behavior out of the box.
使用场景
- 已有 Claude 或 ChatGPT 订阅,希望在 DeepSeek Harness 中统一调用而无需额外 API 密钥
- 需要图片输入支持,同时保持对模型透明的推理流程
- 在本地开发环境中复用付费订阅额度以降低 API 成本
适合人员
- 已持有 Claude 或 ChatGPT/Codex 订阅并希望在 Harness 工作流中调用的开发者
- 追求统一推理入口、希望消除多套 API 密钥管理负担的团队
- 重度 AI 用户,希望将现有订阅额度整合进自动化流水线