一个 DeepSeek Harness 插件:通过 OAuth 连接 ChatGPT 订阅,添加 openai-codex 模型目录与可选 GPT Image 图像生成,提供无密钥的 status/doctor 诊断以及 Harness 原生审批。
DSH 适配
原生运行时
作者声明
安全审计
未审计
最后核验
2026-08-30
许可证
Apache-2.0
01它能帮你完成什么?
Connect a ChatGPT subscription to DeepSeek Harness so agents can use OpenAI Codex (GPT) models
The `openai-codex` model catalog (e.g. GPT-5.6 Luna) selectable in Harness's model picker, streamed through Harness's own LLM service
DeepSeek Harness (dsh) users who hold a ChatGPT subscription and want Codex/GPT models inside DSH without an OpenAI Platform API key
Generate images from a prompt inside DeepSeek Harness using the GPT Image capability
The exact generated image file preserved in plugin-owned storage plus a DSH attachment preview; copyable prompt and original/preview download
Harness users with a GPT subscription who want in-chat image generation without provisioning an OpenAI Platform API key
Verify install, OAuth and runtime state without exposing secrets
Secret-free JSON diagnostics from `status`/`doctor`/`capabilities` (signed-in state, package/Node metadata, conflict status, optional probe)
Operators and developers who need to confirm Codex Connect is wired correctly inside a Harness profile without printing credentials
02如何接入 DeepSeek Harness?
前置条件
- A working `dsh` (DeepSeek Harness) installation
- DSH plugin API packages `0.1.1-rc.2`, `@earendil-works/pi-ai` `0.82.1`, and Node.js `^22.19.0 || >=24.0.0` (the only verified combination)
安装步骤
- 01
Install the plugin into a profile: `dsh plugin --profile web add dsh-codex-connect@alpha` (replace `web` with your Harness profile name)
$ dsh plugin --profile web add dsh-codex-connect@alpha
- 02
Start Harness: `dsh web`
$ dsh web
- 03
Open Settings → Plugins → Plugin configuration → Codex Connect and click **Sign in with ChatGPT** to complete the browser approval
- 04
Optionally enable capabilities (search / view_image / image generation) in the same card and select **Save changes**
验证接入成功
- `status --json` reports `signed-in` and exits `0`
- `dsh --profile web --dump-config` shows exactly one `llm-openai-codex` row
03DSH 适配与能力边界
DSH plugin (`dsh plugin add`) that registers the `openai-codex` model catalog and a ChatGPT OAuth login; models route through Harness's LLM service.
OpenAI Codex model catalog
ChatGPT OAuth sign-in→GPT/Codex models (e.g. GPT-5.6 Luna) selectable in Harness's model picker, routed through Harness's LLM service
Adds one `llm-openai-codex` config row; does not change the profile's default model or global search routeGPT Image generation
A prompt only (no size setting); a vision-capable openai-codex GPT model→Exact generated image file in plugin-owned storage plus a DSH attachment preview; copyable prompt; download original or preview
Stores originals below `$DSH_HOME/dsh-codex-connect/images/v1`; originals are owner-only and integrity-checked before downloadSecret-free diagnostics (status / doctor / capabilities)
None; optional `--model` and `--probe`→One secret-free JSON document per command (sign-in state, package/Node metadata, conflict status, optional Responses/SSE probe result)
Using `--probe` sends one fixed short request to the Codex Responses route and may consume quotaOptional capabilities: search, view_image, proxy
User toggles in the Codex Connect card (all off by default)→Registers Codex as a search provider, enables `view_image` for approved reads, or routes Codex requests through an optional proxy
Enabling `enableSearch` registers Codex as a search provider but does not select the profile's global search route
04适合谁?何时不该用?
适合
- DeepSeek Harness (dsh) users who hold a ChatGPT subscription and want Codex/GPT models inside DSH without an OpenAI Platform API key
- Harness users with a GPT subscription who want in-chat image generation without provisioning an OpenAI Platform API key
- Operators and developers who need to confirm Codex Connect is wired correctly inside a Harness profile without printing credentials
不适合
- By default the bundle is inert beyond model-provider registration; standalone search, view_image, and image generation stay disabled until you explicitly enable them in the Codex Connect card.
- Only one combination is verified: DSH plugin API packages `0.1.1-rc.2`, `@earendil-works/pi-ai` `0.82.1`, and Node.js `^22.19.0 || >=24.0.0`. Older API packages should upgrade to the rc.2 line.
05兼容性、维护与安全提示
- By default the bundle is inert beyond model-provider registration; standalone search, view_image, and image generation stay disabled until you explicitly enable them in the Codex Connect card.
- Only one combination is verified: DSH plugin API packages `0.1.1-rc.2`, `@earendil-works/pi-ai` `0.82.1`, and Node.js `^22.19.0 || >=24.0.0`. Older API packages should upgrade to the rc.2 line.
- OAuth is stored separately at `$DSH_HOME/.openai-codex-auth.json` and `~/.codex/auth.json` is never copied or modified. Removing the package does not delete OAuth state, so run `logout` only when credential removal is intended.
Apache-2.0 · alpha channel via npm (`dsh-codex-connect@alpha`), no tagged release; last push 2026-08-29, curated
06常见问题
如何在 DeepSeek Harness 中安装 Codex Connect?
运行 `dsh plugin --profile web add dsh-codex-connect@alpha`(将 `web` 换成你的配置文件名),再运行 `dsh web`。打开「设置 → 插件 → 插件配置 → Codex Connect」,点击「使用 ChatGPT 登录」。用 `dsh plugin --profile web exec dsh-codex-connect status --json` 验证,正常会输出 `signed-in` 并以退出码 0 结束。
有哪些前置条件?
需要一个可用的 `dsh` 安装。唯一经验证兼容的组合是 DSH 插件 API 包 `0.1.1-rc.2`、`@earendil-works/pi-ai` `0.82.1`,以及 Node.js `^22.19.0 || >=24.0.0`。较早的 API 包应升级到 rc.2 线。
Codex Connect 如何与 DeepSeek Harness 连接?
它注册一条 `llm-openai-codex` 提供者配置并提供一个独立的 ChatGPT OAuth 登录。模型经 Harness 常规 LLM 服务流式传输,因此流式输出、工具调用、压缩、权限门与审批提示仍由 Harness 掌握——它不是 OpenAI Platform API 凭据。
与直接使用 OpenAI API 有何不同?
Codex Connect 使用你 ChatGPT 订阅已包含的模型访问与图像生成能力;它不需要 OpenAI Platform API 密钥,也不会把订阅变成 API 凭据。OAuth 单独存储于 `$DSH_HOME/.openai-codex-auth.json`,绝不复制 `~/.codex/auth.json`。
排错:`status --json` 为什么退出码是 1?
未登录时 `status --json` 以退出码 1 结束,这属于预期行为,并非插件故障。请回到 Codex Connect 卡片点击「使用 ChatGPT 登录」。如需无密钥健康检查,可运行 `dsh plugin --profile web exec dsh-codex-connect doctor --json`。
07相关的 DSH 工作流
dsh-routing-suite
作者 yjh051108
DeepSeek Harness(dsh)路由套件:先装运行时注入器,再加载任务感知的推理模式路由预设(已实测 P1-P23)。
brooks-lint
作者 hyhmrright
基于 12 本经典工程书籍的 AI 代码评审工具,提供腐化风险诊断、书籍引用、严重度标签及 6 种分析模式。
dsh-plugin-shop
作者 livxue
DeepSeek Harness 最全面的插件市场,每日更新、全网采集、发布前审核。
anolisa
作者 agentic-os-org
面向 AI Agent 的 Agentic OS 运行层,提供运行时、安全、可观测性、沙箱与 Tokenless 响应压缩,降低上下文 Token 和调用成本。
08数据与来源
`dsh-codex-connect` adds the `openai-codex` model catalog and a separate ChatGPT OAuth login.
Harness's normal LLM service, so streaming, tool calls, reasoning replay, compaction, filesystem controls, permission ga…
页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-30。发现错误?提交更正。
最佳 DeepSeek Harness 插件
从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。
