by WSL043
把 ChatGPT / Codex 订阅接入 DeepSeek Harness:OAuth、模型、额度、搜索和图片生成,无需 API Key 或 Codex CLI。
# Add to your Claude Code skills
git clone https://github.com/WSL043/dsh-codex-subscriptionGuides for using ai agents skills like dsh-codex-subscription.
dsh-codex-subscription is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by WSL043. 把 ChatGPT / Codex 订阅接入 DeepSeek Harness:OAuth、模型、额度、搜索和图片生成,无需 API Key 或 Codex CLI。. It has 50 GitHub stars.
dsh-codex-subscription's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/WSL043/dsh-codex-subscription" and add it to your Claude Code skills directory (see the Installation section above).
dsh-codex-subscription is primarily written in JavaScript. It is open-source under WSL043 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh dsh-codex-subscription against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
简体中文 · English
把 ChatGPT / Codex 订阅直接接入 DeepSeek Harness
在 DeepSeek Harness 中直接登录 ChatGPT 并使用 Codex 订阅。无需 OpenAI API Key,也不依赖 Codex CLI; 模型、搜索、额度和图片生成都留在 DSH 里。
安装插件:直接运行 DSH 标准 bundle 命令:
dsh plugin --profile web add dsh-codex-subscription
登录订阅:手动重启 DSH,打开 设置 -> Codex 订阅,点击浏览器登录。无需 Codex CLI,也不要粘贴 token。
开始使用:在模型选择器中选择 Codex;额度、订阅搜索、图片生成和高速模式都在 DSH 内使用。
DSH-Portable 也提供相同的标准插件命令,因此同样使用上面的命令。完整的官方 npm、更新和卸载方式见下文。
| 能力 | 用户得到什么 |
|---|---|
| 订阅模型直连 | 登录 ChatGPT 后直接使用 Codex,不需要 OpenAI API Key 或 Codex CLI |
| 可恢复、可诊断 | 登录状态会自动对账;读取失败时可在原处重试,超时和旧账号响应不会覆盖当前状态;设置页可生成不含凭据和账号标识的支持报告 |
| 额度可见 | 普通 Codex、Spark 等服务端实际返回的额度分开显示 |
| 输入框额度 | 可选择紧凑百分比、进度条或完全关闭输入框额度显示 |
| 安全额度重置 | 每张重置卡单独显示,并通过冷静期和知情确认主动尝试重置 |
| 订阅搜索 | 可将全部模型的搜索明确路由到 DSH 默认搜索或已登录的 Codex 订阅 |
| Codex 图片生成与编辑(Beta) | 可无参考图全新生成,也可明确选择会话图片继续编辑;支持预览、缩放、区域备注、下载原图,并为新生成或编辑的图片提供 DSH 主机上的原图路径 |
| 高速模式 | 直接在输入框切换标准或高速,无需离开当前会话 |
| 模型感知上下文 | 可保留目录默认值、按模型启用扩展窗口,或为每个模型填写完整数字 Token 上限;设置页打开、账号切换和连接重置后会刷新模型目录,失败时可重试且不会覆盖未保存的草稿 |
| Headless 任务 | 使用同一份已登录的 Codex Provider 运行一次性 DSH 任务,输出答案后自动退出 |
这些能力共用同一份本机 ChatGPT 登录。订阅路由失败时会明确报错,不会静默切换到其他付费路由。
截图用于说明设置页布局;可用选项会随 DSH 与插件版本变化。
本插件支持软件包元数据中记录的最新版 DeepSeek Harness,并需要一个当前具有 Codex 使用资格的 ChatGPT 账户。
dsh plugin --profile web add dsh-codex-subscription
目标选择、profile 锁、依赖解析和 bundle 激活均由 DSH 负责;这是插件唯一的安装路径。
先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 DSH 的标准 Headless profile:
dsh plugin --profile headless add dsh-codex-subscription
dsh --profile headless "只回复:ok"
官方的 npx @deepseek-ai/dsh web 不会创建全局 dsh 命令,因此安装插件时也要保留完整的 npx 前缀:
npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web add dsh-codex-subscription
npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
npx -y @deepseek-ai/dsh@0.1.2-rc.1 --profile web --dump-config
dsh plugin --profile web add dsh-codex-subscription
dsh plugin --profile web list dsh-codex-subscription --depth 0
dsh --profile web --dump-config
安装列表中应只有一个 dsh-codex-subscription,配置中应只有一个 codex-subscription 条目。
安装完成后手动重启 DSH,然后:
对于 OpenAI 与 ChatGPT 官方请求,插件可以沿用进程环境或操作系统中已有的 HTTPS 代理。插件本身不提供代理、转发服务、节点列表,也不会修改系统代理设置。
当官方模型目录提供 GPT-6 Astra 时,标准模式保留目录默认窗口;扩展模式使用 872000 Token,自定义模式可设置 128000–872000 Token(初始值为 272000)。该上限依据 Codex 官方模型目录,不是 API 模型的总上下文容量。这些设置只调整 DSH 的本地上下文预算,不授予模型访问权限,也不保证账号的服务端容量;实际可用性以服务端为准。
可在设置中选择关闭、百分比、进度条或 Beta 续航预测;紧凑额度只在选择 Codex 模型时显示。续航预测仅在用户主动选择后,根据官方剩余百分比估算当前消耗速度。它至少需要 3 个样本;持续高消耗时通常 5–10 分钟即可给出范围,消耗较低时会延长观察或显示稳定。最近 24 小时的无敏感信息观测会保存在本机,重启后可以继续校准;额度重置、账号切换或关闭功能会开启新的校准周期。输入框分别显示服务端返回的各额度窗口,并标明窗口时长:Plus 返回 5 小时和每周额度时,两项都会显示。 Spark 使用独立额度。只返回每周额度的账号仍只显示每周,不会虚构 5 小时窗口、Credits 或消费上限。
ChatGPT 返回可用重置卡时,设置页会把每张卡分别显示为紧凑的一行,并展示服务端提供的名称和到期时间。即使额度尚未到 100%, 也可以主动尝试使用,适合重置卡即将过期的情况;是否需要重置仍由 ChatGPT 判断,服务端可能返回“当前无需重置”且不扣次数。 最终操作需要勾选知情确认并等待 5 秒。取消不会消耗,快速连续点击只允许一次请求,网络结果不确定时也不会自动重试。
订阅插件已内置基于 dsh-image-viewer 的基础查看器,无需额外安装。插件生成图片的工具卡片使用内置查看器,确保标注和继续编辑功能可用。你可以缩放、拖动、适合窗口、添加区域备注并下载图片。标准“下载”默认获取经过权限与完整性校验的精确原图;旧会话没有精确原图时才下载会话预览图。
新生成或编辑的图片会在工具结果中返回当前 DSH 主机上的原图路径,模型或 Agent 可以读取或复制该文件。该路径位于运行 DSH 的主机,并非浏览器下载链接;原图下载仍按会话授权。卸载插件不会删除已生成的原图。
点击“在输入框中继续编辑”不会自动发送。有标注时会附上干净源图和带编号标记的定位参考图,草稿包含对应编号、坐标、备注,以及不得把标记绘入成品的说明;没有标注时只附上当前图片。每个标记必须填写备注,参考图准备失败时会中止回填。按 Enter 保存并收起备注,Shift+Enter 换行;在当前 DSH 页面重新打开同一张图片时,备注仍会保留。
新的图片请求不会静默带入历史图片。GPT Image 2 可能比文本回复耗时更长,复杂文字、精确构图和连续角色一致性也可能需要再次调整。
上图展示图片查看与图上备注的基本交互;具体按钮会随图片和所安装的查看器版本变化。
选择支持的 Codex 模型后,可在输入框的模型菜单中切换标准与高速。标准模式不增加图标, 只有高速模式会在模型名称左侧显示闪电;Spark 不显示速度入口。高速模式会提高速度,也会消耗更多 Credits;具体规则见 OpenAI Codex Speed 文档。
dsh plugin --profile web update dsh-codex-subscription
dsh plugin --profile web list dsh-codex-subscription --depth 0
dsh --profile web --dump-config
确认需要移除插件后再运行:
dsh plugin --profile web remove dsh-codex-subscription
这些操作会保留 DSH profile、其他插件和登录信息。
npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web update dsh-codex-subscription
npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web list dsh-codex-subscription --depth 0
npx -y @deepseek-ai/dsh@0.1.2-rc.1 --profile web --dump-config
npx -y @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web remove dsh-codex-subscription
dsh 无法识别:官方 npm 方式本来就不会创建全局 dsh 命令,请使用上面的完整 npx -y @deepseek-ai/dsh@0.1.2-rc.1 ... 命令;ChatGPT Codex 后端和 DSH 可能独立变化;本项目为社区项目,与 DeepSeek、OpenAI 无隶属或背书关系。
本项目的问题反馈请使用使用问题表单; 明确的产品建议请使用功能建议表单; 欢迎提交聚焦的修复和兼容性改进,具体要求见 CONTRIBUTING.md; DSH 插件交流可前往 DeepSeek Harness Discussions。 敏感问题请先阅读 SECURITY.md。
如果这个项目对你有帮助,点一下 Star 可以让更多 DSH 用户发现它。