一個 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-our-free-model
作者 ebony-vinyl
在 dsh 裡裝上這個外掛即可,無需登入、註冊或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在內的前沿模型——完全免費,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, DeepSeek V4.1 Flash and Kimi K3 among them. Completely free, with no usage cap.
dsh-routing-suite
作者 yjh051108
DeepSeek Harness(dsh)路由套件:先裝執行時注入器,再載入任務感知的推理模式路由預設(已實測 P1-P23)。
dsh-ops
作者 t-auto
A toolkit for low-level operations in DSH, designed to reduce token usage and task execution time / DSH 底層操作工具外掛,旨在減少 Token 消耗與任務耗時
brooks-lint
作者 hyhmrright
基於 12 本經典工程書籍的 AI 程式碼評審工具,提供腐化風險診斷、書籍引用、嚴重度標籤及 6 種分析模式。
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 個值得優先安裝的外掛,涵蓋各個分類。
