跳到正文

franksong2702/dsh-codex-connect

111最近提交 2026年8月14日

dsh-codex-connect DSH 插件

dsh-codex-connect 为 DeepSeek Harness 添加了 openai-codex 模型目录和 ChatGPT OAuth 登录。模型通过 Harness 的标准 LLM 服务运行,保持流式、工具调用和审批提示由 Harness 控制。它不会将 ChatGPT 订阅转换为 OpenAI 平台 API 凭证。

如何安装 dsh-codex-connect DSH 插件

dsh plugin --profile web add dsh-codex-connect@alpha

复制不会执行命令。安装 dsh-codex-connect DSH 插件前请核对仓库和版本。

dsh-codex-connect DSH 插件数据来源

dsh-codex-connect DSH 插件快照日期:2026年8月16日

discovered

dsh-codex-connect DSH 插件能做什么

  • 添加 openai-codex 模型目录和 ChatGPT OAuth 登录
  • 提供 enableSearch 和 enableImageTool 功能(默认关闭)
  • 提供 doctor 和 status 命令行诊断和登录状态检查
  • 将 OAuth 凭证单独存储,支持原子写入和文件锁
  • 支持可配置的搜索模型、模式、上下文大小和最大输出 token

dsh-codex-connect DSH 插件适合哪些场景

  • 使用 ChatGPT 订阅为 DeepSeek Harness 提供模型,无需 OpenAI API 密钥
  • 启用 Codex 搜索提供者用于 Harness 搜索路由
  • 启用 view_image 工具,用于视觉模型在批准的本地读取和公共网络获取
  • 通过 dsh plugin exec 命令诊断插件健康和登录状态

dsh-codex-connect DSH 插件适合谁

  • 拥有 ChatGPT 订阅的 DeepSeek Harness 用户
  • 希望通过 OAuth 扩展 Harness 以使用 OpenAI Codex 模型的开发者

dsh-codex-connect DSH 插件的限制

  • Alpha 阶段:仅兼容 Harness 0.1.0-rc.5 和 0.1.0-rc.6 插件 API,以及 Node.js ^22.19.0 || >=24.0.0
  • 需要有效的 ChatGPT 订阅;模型访问、配额和后端行为由 OpenAI 控制
  • enableSearch 和 enableImageTool 默认关闭,需要显式启用
  • Codex 端点不强制执行 max_output_tokens 字段;压缩仍然有效,但服务器端无法施加限制
  • 远程 view_image URL 仅限于公共 HTTP(S) 目标;不支持 localhost、私有网络或云元数据端点

dsh-codex-connect DSH 插件的仓库 README 摘录

以下文字摘自 dsh-codex-connect DSH 插件的上游仓库 franksong2702/dsh-codex-connect 的 README,版权归原作者,仅作引用。

English | [中文](docs/README.zh.md) Connect your ChatGPT subscription to DeepSeek Harness with OAuth, user-controlled defaults, Harness-native approvals, diagnostics, and reliable session recovery. <p align="center"> <img src="https://raw.githubusercontent.com/franksong2702/dsh-codex-connect/main/docs/assets/en/hero.jpg" alt="Codex Connect — ChatGPT OAuth for DeepSeek Harness" width="100%"> </p> `dsh-codex-connect` adds the `openai-codex` model catalog and a separate ChatGPT OAuth login. Models run through Harness's normal LLM service, so streaming, tool calls, reasoning replay, compaction, filesystem controls, permission gates, and approval prompts remain Harness-owned. It does not turn a ChatGPT subscription into an OpenAI Platform API credential. Installation is additive. The bundle does not replace the current default model or search route, and its standalone search provider and `view_image` tool are disabled until explicitly enabled. Every UI screenshot in this English guide is captured from the English-localized Harness UI. The [Chinese guide](docs/README.zh.md) uses a Chinese capture of the same state. Model and provider identifiers keep their canonical spelling in both

阅读完整 README仓库许可: Apache-2.0

dsh-codex-connect DSH 插件常见问题

如何安装 dsh-codex-connect?

在终端中运行 `dsh plugin --profile web add dsh-codex-connect@alpha`,将 `web` 替换为你使用的配置文件名称。需要先安装好 DSH。该插件会添加到该配置文件中,不会更改默认模型或搜索路由。

为什么在模型选择器中看不到 openai-codex 模型?

安装插件后,需要通过设置 → 插件 → 插件配置 → Codex Connect 中的卡片登录 ChatGPT。点击“使用 ChatGPT 登录”并完成浏览器流程。之后,模型选择器中会出现“OpenAI Codex”分组,其中包含可用的模型。

enableSearch 有什么作用?

设置为 true 时,会将 Codex 注册为 Harness 可用的搜索提供者。注意,这不会自动选择配置文件的全局搜索路由;如果需要,还需单独配置搜索路由。默认情况下,此功能是禁用的。

如何检查插件是否已登录?

运行 `dsh plugin --profile web exec dsh-codex-connect status --json`。如果已登录,退出码为 0 并报告 `signed-in`。如果未登录,退出码为 1。你也可以运行 `dsh plugin --profile web exec dsh-codex-connect doctor --json` 获取更详细的诊断报告。

这个插件会暴露我的 ChatGPT 凭证吗?

不会。OAuth 令牌单独存储在 `$DSH_HOME/.openai-codex-auth.json` 中,仅限所有者权限。`doctor` 和 `status` 命令永远不会输出凭证内容。该插件不会将你的订阅转换为平台 API 密钥。