返回目录

dsh-codex-connect

编辑精选维护状态: 活跃

franksong2702/dsh-codex-connect

为 DeepSeek Harness 接入 ChatGPT OAuth 与 Codex 模型,复用订阅免 API 密钥。

前往 GitHub项目主页
$ dsh plugin --profile web add dsh-codex-connect@alpha

128

星标

37

Fork

TypeScript

语言

Apache-2.0

许可证

2026-08-14

创建于

2026-09-29

最近推送

一个 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)

安装步骤

  1. 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

  2. 02

    Start Harness: `dsh web`

    $ dsh web

  3. 03

    Open Settings → Plugins → Plugin configuration → Codex Connect and click **Sign in with ChatGPT** to complete the browser approval

  4. 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 适配原生运行时

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 route
  • GPT 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 download
  • Secret-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 quota
  • Optional 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.
2026-08-142026-08-29作者未说明

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`。

08数据与来源

  • 作者声明github.com7b590859bf61…

    `dsh-codex-connect` adds the `openai-codex` model catalog and a separate ChatGPT OAuth login.

  • 作者声明github.com7b590859bf61…

    Harness's normal LLM service, so streaming, tool calls, reasoning replay, compaction, filesystem controls, permission ga…

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-30。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。