DeepSeek Harness 插件

deepseek-openai-codex

ChatGPT-subscription OpenAI Codex adapter for DeepSeek Harness through Pi's direct provider path(英文原文)

跳到安装方式

来源信息

GitHub 仓库
OpenCnid/deepseek-openai-codex
最近更新
2026年8月20日
分类
工具与能力
GitHub stars
2
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/OpenCnid/deepseek-openai-codex
插件名:deepseek-openai-codex
作者:OpenCnid

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器2 个文件
README.md来源说明 · 只读预览

<p align="center"> <a href="https://github.com/OpenCnid/deepseek-openai-codex"> <img src="./artifacts/deepseek-openai-codex.svg" alt="DeepSeek Harness to OpenAI Codex through a Cordis plugin" width="100%"> </a> </p>

<p align="center"> <img alt="Node.js 22.19 or newer" src="https://img.shields.io/badge/Node.js-%E2%89%A522.19-5FA04E?style=flat-square&logo=nodedotjs&logoColor=white"> <img alt="DeepSeek Harness 0.1.0 release candidate 7" src="https://img.shields.io/badge/DeepSeek_Harness-0.1.0--rc.7-4D6BFE?style=flat-square"> <img alt="Cordis 4.0.1" src="https://img.shields.io/badge/Cordis-4.0.1-8B5CF6?style=flat-square"> <img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-6-3178C6?style=flat-square&logo=typescript&logoColor=white"> </p>

OpenAI Codex for DeepSeek Harness

Use OpenAI Codex models from an eligible ChatGPT subscription inside DeepSeek Harness. This standalone Cordis plugin adds the openai-codex provider while DeepSeek Harness continues to own the agent loop, tools, approvals, sessions, and UI.

> [!IMPORTANT] > The plugin currently supports DSH 0.1.0-rc.7 only and is not published > to npm. Install it from a local checkout as shown below.

Why this plugin

  • Subscription OAuth: signs in with ChatGPT; it does not use

OPENAI_API_KEY or API-key billing.

  • Native Harness workflow: Codex models appear in the normal DeepSeek

Harness model picker and participate in regular tool calls.

  • Host-owned credentials: OAuth state is stored through DSH credentials,

with validation, refresh serialization, bounded replay, and sanitized errors.

  • Direct provider path: requests stream through

@earendil-works/pi-ai; no Codex CLI or codex app-server is required.

DeepSeek Harness  →  Cordis plugin  →  Pi AI  →  OpenAI Codex Responses API
 agent + tools        auth + adapter    OAuth        streamed response

Quick start

Prerequisites: Node.js >=22.19.0, pnpm 11.19.0, and the complete DeepSeek Harness 0.1.0-rc.7 package set.

git clone https://github.com/OpenCnid/deepseek-openai-codex.git
cd deepseek-openai-codex
pnpm install --frozen-lockfile
pnpm run build
pnpm pack --pack-destination ./dist-pack

Install the packed plugin into your DSH profile, verify its configuration, and start the profile:

dsh plugin --profile web add ./dist-pack/deepseek-openai-codex-0.1.0.tgz
dsh --profile web --dump-config
dsh --profile web

The config dump should contain exactly one row with the id deepseek-openai-codex.

Connect your ChatGPT subscription

1. In DSH, open Settings → Plugins. 2. Find OpenAI Codex and select Sign in with ChatGPT. 3. Choose the browser or device-code flow and complete the prompts. 4. Wait for Configured, then select an OpenAI Codex model from the normal model picker.

<p align="center"> <img src="./artifacts/openai-codex-assembled-flow.gif" alt="Safe assembled DeepSeek Harness sign-in, model selection, tool round trip, logout, and removal workflow" width="900"> </p>

<p align="center"><sub>Safe assembled workflow: sign in → select a model → run a tool round trip → log out. No real credential is recorded.</sub></p>

<details> <summary>View the key screens</summary>

Sign inChoose a Codex modelComplete a tool round trip
![OpenAI Codex plugin card before sign-in](artifacts/01-not-configured.jpg)![OpenAI Codex models in the DSH model picker](artifacts/06-provider-selection.jpg)![Completed model and tool round trip](artifacts/07-model-tool-roundtrip.jpg)

</details>

Credential safety

OPENAI_CODEX_OAUTH is a plugin-owned DSH credential reference containing a Pi OAuth credential—not a generic API key. Do not copy it into settings, edit it manually, reuse it for another provider, or commit it. Sign-in succeeds only after the credential is durably stored; logout removes it through the active credential provider.

ChatGPT subscription access and OpenAI API billing are separate products. Setting OPENAI_API_KEY does not configure this plugin and is never used as a fallback.

Common fixes

  • Plan or permission error: confirm the ChatGPT account is eligible for

Codex subscription access, then sign in again.

  • Expired or cancelled login: select Retry sign-in in the plugin card.
  • Read-only credential provider: make the active provider for

OPENAI_CODEX_OAUTH writable.

  • Provider collision: remove the other plugin that owns openai-codex;

this plugin deliberately refuses to register an alias.

  • Plugin card does not load: confirm every DSH web package is from

0.1.0-rc.7.

See [COMPATIBILITY.md](COMPATIBILITY.md) for the audited package matrix and [INTEGRATION_PROOF.md](INTEGRATION_PROOF.md) for the clean-tarball and assembled DSH acceptance record.

Development

pnpm install --frozen-lockfile
pnpm run typecheck
pnpm run lint
pnpm run test
pnpm run build
pnpm run pack:inspect

The test suite covers credential durability and locking, auth coordination, mounted Host Remote calls, request and stream conversion, Pi's direct transport, browser interactions, lifecycle cleanup, and package metadata.

The implementation contract lives in [SPEC.md](SPEC.md). Contributor and agent guidance lives in [AGENTS.md](AGENTS.md), and adapted DSH conversion code is acknowledged in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).

Remove

dsh plugin --profile web remove deepseek-openai-codex

Restart the profile after removal. Uninstalling does not silently delete stored credentials; use Log out first if you also want to remove OPENAI_CODEX_OAUTH.

Release status

The package is implemented, tested, locally packable, intentionally private, and not published. A public release still requires repository-owner decisions about licensing, package ownership, visibility, and third-party notices. Do not publish it until those gates are resolved.