dsh-plugin-subscriptions:用 ChatGPT、Claude 和 Grok 订阅作为 DeepSeek Harness 的 LLM 提供方
v1ki/dsh-plugin-subscriptions
将 ChatGPT、Claude、Grok 订阅接入 DeepSeek Harness,免 API 密钥,Web UI 内 OAuth 登录。
无需 API 密钥,在 DeepSeek Harness 的 Web UI 里用 OAuth 登录你的 ChatGPT (Codex)、Claude 和 Grok (X Premium) 订阅,即可在会话中选用这些模型。
dsh plugin --profile web add github:v1ki/dsh-plugin-subscriptions- 分类
- 模型与推理
- 平台
- DSH-Plugin
- 作者
- v1ki
- 分发方式
- 插件
dsh-plugin-subscriptions 核心特性
dsh-plugin-subscriptions 仓库信息

dsh-plugin-subscriptions 仓库简介
dsh-plugin-subscriptions 是 DeepSeek Harness(DSH)的模型/推理插件(DSH plugin),由 V1ki 维护,采用 MIT 协议,最近更新于 2026-08。它让你把已有的 ChatGPT (Codex)、Claude 和 Grok (X Premium) 订阅直接当作 DSH 的 LLM 提供方,无需任何 API 密钥——登录在 dsh 的 Web UI(Settings → Subscriptions)里完成,令牌保存在 ~/.dsh/plugins/subscriptions/auth.json(权限 0600)并自动刷新。核心能力包括:按提供方动态拉取模型目录、支持视觉模型、以及随提供方启用的 x_search(Grok 的 X 搜索)和 image_generate(ChatGPT 的 gpt-image-2 图像生成)工具。
dsh-plugin-subscriptions 这个 DSH plugin 支持哪些订阅提供方和模型?
插件内置三条路由:codex 对应 ChatGPT Plus/Pro,模型目录实时取自 chatgpt.com/backend-api/codex/models;claude 对应 Claude Pro/Max,内置 claude-opus-4-5、claude-sonnet-4-5、claude-haiku-4-5;grok 对应 X Premium (xAI),模型目录来自 api.x.ai/v1/models(仅聊天模型)。只有登录过的提供方才会出现在会话的模型选择器里,列表在登录/登出时刷新。视觉能力模型会声明 ['text', 'image'] 输入模态,图片内容会被转换成各提供方的线上格式。
dsh-plugin-subscriptions 怎么安装?
用 dsh CLI 从 GitHub 安装源码(首次安装 pnpm 会询问是否允许构建脚本,需把打印的 key 加到 profile 的 pnpm-workspace.yaml 的 allowBuilds 里再重跑):
dsh plugin --profile web add github:v1ki/dsh-plugin-subscriptions
也可以从本地检出构建后安装:
git clone https://github.com/V1ki/dsh-plugin-subscriptions.git
cd dsh-plugin-subscriptions && pnpm install && pnpm build
dsh plugin --profile web add ./dsh-plugin-subscriptions
dsh-plugin-subscriptions 怎么在 DSH 里登录和使用?
运行 dsh web 打开 URL,进入 Settings → Subscriptions,点击某提供方的 Log in 并在弹出的标签页授权;若浏览器流程无法完成(如无头主机),可展开手动回退,粘贴回调 URL 或代码。之后在任意会话中打开模型选择器(/model),即可选用 ChatGPT (Codex) / Claude (Subscription) / Grok (Subscription) 下的模型。未登录时,该提供方不会出现在选择器里,请求会以 MISSING_CREDENTIAL 失败并指向设置页,其余功能不受影响。
dsh-plugin-subscriptions 有哪些配置项?
在 profile 的配置 YAML 中,通过 id: llm-subscriptions 注册插件,config 支持 providers(子集,默认全部三个)、streamIdleTimeoutMs(默认 300000)以及 models(覆盖发现/内置的模型列表)。令牌文件与无头模式共享,因此可以先在 Web UI 登录,再用 dsh --profile headless --patch 配合 overlay 使用。
dsh-plugin-subscriptions 兼容哪些 DeepSeek Harness 版本和平台?
插件依赖 @deepseek-ai/dsh-* 系列官方包(llm、tools、attachment、home-paths、client-* 等),属于官方 dsh.bundle 组合包,兼容 DSH 的 Web UI 与 headless 两种 profile。它由 V1ki 维护,采用 MIT 协议,最近更新于 2026-08,当前 Stars 3、Forks 0。