返回目錄

dsh-codex-connect

編輯精選維護狀態: 活躍

franksong2702/dsh-codex-connect

為 DeepSeek Harness 接入 ChatGPT OAuth 與 Codex 模型,複用訂閱免 API 金鑰。

前往 GitHub專案首頁
$ dsh plugin --profile web add dsh-codex-connect@alpha

161

星數

41

Fork

TypeScript

語言

Apache-2.0

授權條款

2026-08-14

建立於

2026-10-21

最近推送

一個 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 外掛,絕不濫發。