AdonisSheldon/dsh-openai-oauth
在DeepSeek Harness中使用ChatGPT OAuth和OpenAI Codex模型——无需API密钥或Codex CLI。
项目介绍Project Overview
dsh-openai-oauth 是 DeepSeek Harness 社区插件,通过浏览器 PKCE 或设备码登录 ChatGPT 账户,无需 OpenAI API 密钥或 Codex CLI 即可使用 Codex 模型,保持 DSH 标准会话、工具、权限和模型选择器。凭证自动刷新,本地存储于 Harness 主目录。适用于 macOS 与 Linux,Windows 暂不支持。需 ChatGPT 账户具备 Codex 访问权限,OpenAI 可独立更改 Codex OAuth 协议,模型可用性与配额取决于登录账户。
dsh-openai-oauth is a community plugin for DeepSeek Harness that signs in to ChatGPT via browser PKCE or device code, providing access to Codex models without an OpenAI API key or Codex CLI while preserving DSH sessions, tools, permissions, and the model selector. Tokens refresh automatically and credentials are stored locally under the Harness home. It fits Linux and macOS setups using DeepSeek Harness 0.1.0-rc.8 with Node.js 22.19+ or 24+. Windows is not yet supported, and the account must hold Codex access; availability and quotas depend on the signed-in ChatGPT account.
请帮我了解并安装插件:【dsh-openai-oauth】【https://github.com/AdonisSheldon/dsh-openai-oauth】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-openai-oauth@0.1.0
把 AdonisSheldon/dsh-openai-oauth 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-openai-oauth
OpenAI OAuth for DeepSeek Harness
English | 中文
Sign in to ChatGPT from DeepSeek Harness and use available Codex models without an OpenAI API key or Codex CLI. The plugin keeps the standard DSH sessions, tools, permissions, and model selector.
Features
- 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
Requirements
- DeepSeek Harness
0.1.0-rc.8 - Node.js
^22.19.0or>=24.0.0 pnpmonPATH- A ChatGPT account with Codex access
Version 0.1.0 supports macOS and Linux. Windows support is not included yet.
Install
Install with an Agent (recommended)
Give this address to an Agent and ask it to follow the runbook:
https://raw.githubusercontent.com/AdonisSheldon/dsh-openai-oauth/main/AGENTS.md
When it finishes, you only need to approve any DSH restart and complete the ChatGPT login yourself.
Install with DSH
After the package is published:
dsh plugin --profile web add dsh-openai-oauth@0.1.0
dsh --profile web --dump-config
Install from the current 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
Restart a running DSH Web process after installation.
Login and use
- 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.
Browser login waits for a callback on 127.0.0.1:1455. Use Device Code when that port is unavailable or the browser is on another machine.
For a headless profile:
dsh plugin --profile headless add ./dsh-openai-oauth-0.1.0.tgz
dsh plugin --profile headless exec dsh-openai-login
The command asks which login method to use. Non-interactive terminals must pass --browser or --device-code.
Update and uninstall
dsh plugin --profile web update dsh-openai-oauth
dsh plugin --profile web remove dsh-openai-oauth
Restart DSH after installing, updating, or removing the plugin. Login, logout, and token refresh do not require a restart.
Sign out in Settings → OpenAI OAuth before uninstalling if the stored credential should also be deleted. Uninstalling the package otherwise preserves it.
Notes
- This connects a ChatGPT account to the Codex model provider; it does not create an OpenAI API key.
- The Web integration supports only a local DSH Host bound to
127.0.0.1. - Credentials are stored unencrypted at
$DSH_HOME/plugins/dsh-openai-oauth/credentials.json. - Model availability and quota depend on the signed-in account.
- OpenAI may change the Codex OAuth protocol independently of this plugin.
- This is an unofficial community project and is not affiliated with or endorsed by OpenAI or DeepSeek AI.
See SECURITY.md for security reporting and deployment notes.
ruvnet/ruflo
amruthpillai/reactive-resume
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/colleague-skill
nocobase/nocobase
Tencent/WeKnora