前言¶
DSH 的擴展思路偏向「一切皆插件」:模型接入、登錄方式可以由插件補充。如果需要在 DeepSeek Harness 裏使用 OpenAI Codex 模型,又不想額外準備 OpenAI API key 或 Codex CLI,可以看 dsh-openai-oauth。它從 DeepSeek Harness 登錄 ChatGPT,並把可用的 Codex 模型放進 DSH 的標準模型選擇器。
社區目錄是獨立站點,與 DeepSeek / 幻方沒有官方從屬關係,也不是官方應用商店。
這是什麼¶
dsh-openai-oauth 是 AdonisSheldon 維護的社區插件,版本爲 0.1.0,許可證爲 MIT。它解決的核心問題是:在沒有 OpenAI API key 或 Codex CLI 的情況下,從 DeepSeek Harness 使用可用的 Codex 模型。
核心功能¶
- Browser login with PKCE or Device Code login
- Web settings and a headless login command
- Automatic token refresh
- Codex models in the standard DSH model selector
- Credentials stored locally under the Harness home
安裝與啓用¶
先確認運行條件:
- DeepSeek Harness
0.1.0-rc.8 - Node.js
^22.19.0or>=24.0.0 pnpmonPATH- 一個具有 Codex access 的 ChatGPT 賬號
- 版本
0.1.0支持 macOS 和 Linux;Windows support 尚未包含
README 給出的 DSH 安裝命令是:
dsh plugin --profile web add dsh-openai-oauth@0.1.0
該命令在 README 中被放在 “After the package is published” 場景下;當前資料未確認包發佈狀態。安裝、更新或移除插件後,需要重啓 DSH。
典型用法¶
Web profile 的登錄流程:
- Open Settings → OpenAI OAuth.
- Choose Browser login or Device Code.
- Sign in with a ChatGPT account that has Codex access.
- Open Models and select an
openai-codexmodel.
Web 集成只支持綁定到 127.0.0.1 的本地 DSH Host。
headless profile 示例:
dsh plugin --profile headless add ./dsh-openai-oauth-0.1.0.tgz
dsh plugin --profile headless exec dsh-openai-login
第二條命令用於執行登錄流程。
適用場景與注意¶
適合在 macOS 或 Linux 的 DSH 環境中使用,尤其是已有可訪問 Codex 的 ChatGPT 賬號,並希望避免 OpenAI API key 或 Codex CLI 的場景。
使用前注意:
- 插件以當前
dsh進程權限運行;安裝前應檢查源碼與許可證。 - 憑據未加密,保存在:
$DSH_HOME/plugins/dsh-openai-oauth/credentials.json
- Web 集成僅支持本地 DSH Host,且綁定到
127.0.0.1。 - 這是非官方社區項目,未與 OpenAI 或 DeepSeek AI 存在官方從屬關係,也未獲得其背書。
- 許可證是 MIT。
鏈接¶
- GitHub: https://github.com/AdonisSheldon/dsh-openai-oauth
- 目錄頁(來自插件線索): https://www.skillhub.cn/plugins/AdonisSheldon/dsh-openai-oauth