AdonisSheldon/dsh-openai-oauth
Use ChatGPT OAuth and OpenAI Codex models in DeepSeek Harness—no API key or Codex CLI required.
This is a DeepSeek Harness (DSH) plugin. Review its GitHub README, installation information, maintenance status, and public security signals here.
dsh-openai-oauth
English | 中文
在 DeepSeek Harness 中直接登录 ChatGPT 并使用可用的 Codex 模型,不需要 OpenAI API Key,也不依赖 Codex CLI。插件保留 DSH 原有的会话、工具、权限和模型选择。
能做什么
- 支持浏览器 PKCE 登录和设备代码登录
- 提供 Web 设置页和 headless 登录命令
- 自动刷新登录凭据
- 在 DSH 原生模型选择器中使用 Codex 模型
- 凭据保存在本机 Harness 主目录
准备 DSH
- DeepSeek Harness
0.1.0-rc.6 - Node.js
^22.19.0或>=24.0.0 pnpm已加入PATH- 当前具有 Codex 使用资格的 ChatGPT 账号
0.1.0 支持 macOS 和 Linux,暂不支持 Windows。
安装
使用 Agent 安装(推荐)
向 Agent 发送以下地址,并让它按照操作清单完成安装:
https://raw.githubusercontent.com/AdonisSheldon/dsh-openai-oauth/main/AGENTS.md
安装结束后,你只需决定是否重启 DSH,并亲自完成 ChatGPT 登录。
DSH 命令安装
包发布后执行:
dsh plugin --profile web add dsh-openai-oauth@0.1.0
dsh --profile web --dump-config
从当前 checkout 安装
pnpm install --frozen-lockfile
pnpm run check
pnpm pack
dsh plugin --profile web add ./dsh-openai-oauth-0.1.0.tgz
dsh --profile web --dump-config
如果 DSH Web 已经运行,安装后手动重启一次。
登录与使用
- 打开 DSH 的设置 → OpenAI OAuth。
- 选择浏览器登录或设备代码。
- 登录具有 Codex 使用资格的 ChatGPT 账号。
- 打开 Models,选择一个
openai-codex模型。
浏览器登录会等待 127.0.0.1:1455 上的回调。端口不可用或浏览器位于另一台机器时,请使用设备代码。
在 headless profile 中使用:
dsh plugin --profile headless add ./dsh-openai-oauth-0.1.0.tgz
dsh plugin --profile headless exec dsh-openai-login
命令会询问登录方式。非交互终端需要明确传入 --browser 或 --device-code。
更新与卸载
dsh plugin --profile web update dsh-openai-oauth
dsh plugin --profile web remove dsh-openai-oauth
安装、更新或卸载插件后需要重启 DSH。登录、退出登录和 token 刷新不需要重启。
如果还要删除保存的凭据,请在卸载前前往设置 → OpenAI OAuth退出登录;否则卸载会保留凭据。
说明
- 本插件把 ChatGPT 账号连接到 Codex 模型提供方,不会生成 OpenAI API Key。
- Web 集成只支持绑定到
127.0.0.1的本地 DSH Host。 - 凭据以未加密文件保存在
$DSH_HOME/plugins/dsh-openai-oauth/credentials.json。 - 可用模型和额度取决于已登录的账号。
- OpenAI 可能独立修改 Codex OAuth 协议。
- 本项目为非官方社区项目,与 OpenAI、DeepSeek AI 无隶属或背书关系。
安全问题和部署说明见 SECURITY.md。
Security & install evidence
This score is based solely on public repository metadata and the install evidence registered here — it is not a code security audit.
From a public plugin catalog, linked to a public GitHub repository.
The repository declares the MIT license.
Code updates within the last 180 days.
No verifiable install metadata registered yet — please review the repository instructions manually.
The inspected package metadata declares no install lifecycle scripts.