Yan-Zero/dsh-codex
通过OpenAI的Codex登录流程,在DeepSeek Harness中使用您的ChatGPT订阅
Project Overview项目介绍
dsh-codex is a native plugin built exclusively for DeepSeek Harness that lets users connect their ChatGPT Codex subscription to DSH without requiring an OpenAI Platform API key or modifying DSH source code. To install the prebuilt version, users run the command dsh plugin --profile web add dsh-codex to add it to their selected DSH profile. It supports both the DSH web interface and DSH-TUI, and includes instructions for local development installation from source. After installation, users complete the OAuth login flow through DSH’s settings panel, and the plugin handles automatic token refresh to keep the connection active. It pulls the full list of Codex models available to the signed-in account, including vision-capable models that support image input.
This plugin adds several Codex-specific features to DSH, including client-side context window overrides, image generation via gpt-image-2, standalone Codex web search through DSH’s existing web search tool, and a quota indicator that shows remaining weekly usage. When automatic fallback is enabled, the plugin will switch to a compatible backup model if the current model hits a quota limit, including the hidden Luna Reserve route if instructed by OpenAI. It works with DSH’s existing tools for file system access, shell commands, MCP servers, and permissions, so users do not need to reconfigure these core features separately. It is designed for DSH users that already have a ChatGPT subscription with Codex access but do not have an OpenAI Platform API key.
dsh-codex is released under the open-source Apache 2.0 license, and targets DSH version 0.1.5-rc.2 and above, relying on the @earendil-works/pi-ai version 0.85.1 package for core functionality. It automatically migrates session data created by older versions of the plugin to the new format, so existing users do not need to manually upgrade their old session data. All model access, quota limits, and backend behavior are controlled by OpenAI and may change over time, and the Codex endpoint does not support server-side enforcement of output token limits. Filesystem, shell, and other core DSH capabilities are still provided by the active DSH profile, not this plugin.
dsh-codex 是专为 DeepSeek Harness 开发的原生模型路由插件,允许用户通过已有的 ChatGPT 订阅使用 OpenAI Codex 服务,无需 OpenAI Platform API 密钥,也不需要修改 DSH 源代码。用户可通过 npm 命令将预编译包安装到指定 DSH 配置,也支持源码检出后通过 pnpm 安装本地开发版本,适配 Web 和 TUI 两种 DSH 运行模式。
对于普通用户,安装完成后只需要在 DSH 设置的 OpenAI Codex 页面完成登录授权,就可以获取当前账号可见的所有 Codex 模型,包括支持视觉的模型和 gpt-image-2 图像生成。用户还可以配置代理、开启自动模型回退,在配额不足时自动切换到可用备用模型,适合拥有 ChatGPT 个人订阅但没有 OpenAI Platform API 密钥的 DSH 用户使用。
本插件采用 Apache 2.0 开源协议,依赖 DSH 0.1.5-rc.2 及以上版本的插件接口,依赖 @earendil-works/pi-ai 0.85.1 版本。当前版本会自动迁移旧格式的会话数据,模型访问权限、配额和后端行为由 OpenAI 控制,可能发生变动,不支持服务端强制施加输出长度限制。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-codex(Yan-Zero/dsh-codex)
仓库:https://github.com/Yan-Zero/dsh-codex
本站详情页:https://www.yhbd.top/plugins/yan-zero-dsh-codex/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 Apache-2.0 · ⭐ 72 · 最近提交 2026-09-29 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-codex
把 Yan-Zero/dsh-codex 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh Codex
English | 中文
Migration guide: repair Sessions created by dsh-codex versions before 0.3.0
Use a ChatGPT subscription in DeepSeek Harness through OpenAI's Codex sign-in flow—no OpenAI Platform API key required and no dsh source patch required.
dsh-codex is an independent dsh bundle. It adds:
- ChatGPT OAuth from the dsh Settings panel or a standalone CLI, with automatic token refresh
- the Codex GPT catalog, including vision-capable models when the account offers them
- a live client-side context-window capacity override for dsh's token meter and compaction policy
- streaming, tool calls, reasoning replay, prompt caching, and dsh compaction through the normal LLM service
- Codex standalone web search through dsh's existing
web_searchtool - optional HTTP(S) URL input added to Harness's existing
read_imagetool - an
imagegentool with a selectable GPT Image backend, workspace or conversation reference images, and automatic workspace output - browser image input through dsh's existing paste and drop controls
- a per-conversation Fast Mode switch and compact weekly quota indicator in the Web composer
- optional backend-authorized model recovery, including hidden Luna Reserve routing
- a three-scope HTTP(S) proxy control for Codex-only or process-wide routing
ChatGPT subscription authentication and usage-based OpenAI API access are different products. This plugin uses the ChatGPT Codex backend only; it does not turn a subscription into a general-purpose OpenAI API credential.
Install
Install the prebuilt bundle from npm into the selected dsh profile:
dsh plugin --profile web add dsh-codex
dsh web
From a DeepSeek Harness source checkout, use pnpm dsh plugin --profile web add dsh-codex. A local plugin checkout can still be installed with link:/absolute/path/to/dsh-codex for development.
Open Settings → OpenAI Codex and choose Browser sign-in or Device code. Browser sign-in shows an authorization link; click it to open the system browser, which returns to the dsh host's localhost callback when both run on the same machine. Device code works when the browser is on another machine. The account page shows live Codex quota bars and exact remaining percentages; exact credit balances or workspace limits appear only when the account API supplies them.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Q00/ouroboros
crafter-station/petdex
whiteguo233/OpenBiliClaw
anywhere-labs/Agents-Anywhere
agentrq/agentrq
freestylefly/wesight