bufeibufei/dsh-openai-codex
dsh-openai-codex is an experimental, out-of-tree DeepSeek Harness plugin. It registers pi-ai's openai-codex models against the public DSH ctx.llm adapter seam and manages a ChatGPT OAuth login in its own credential file. It does not patch or replace an installed DSH package.
catalog 简介 / catalog descriptioncatalog description:ChatGPT OAuth model provider plugin for DeepSeek Harness
项目介绍Project Overview
dsh-openai-codex 是 DSH 的第三方实验插件,将 pi-ai 的 openai-codex 模型注册到 DSH 的 ctx.llm 适配接口,并管理独立的 ChatGPT OAuth 凭据文件,登录基于订阅而非 OpenAI Platform 计费。适用于希望在 DSH 中以 Codex 模型进行订阅制访问的 Web 与无头环境。安装需在每个 profile 中通过 dsh plugin add github 拉取 v0.1.1 标签,并锁定 DSH 0.1.0-rc.7。设备码登录需在 ChatGPT 安全或工作区设置中启用,使用代理时需设置 NODE_USE_ENV_PROXY=1,凭据存于 $DSH_HOME/.dsh-openai-codex/auth.json。注意:OpenAI 未文档化本插件,端点或策略变更可能使其失效,且不得与内置 llm-pi-ai 的 openai-codex 路由重复配置。
dsh-openai-codex is a third-party experimental DSH plugin that registers pi-ai's openai-codex models against the public ctx.llm adapter seam and manages its own ChatGPT OAuth credential file, using subscription-backed access rather than OpenAI Platform API billing. Use it when you want Codex models inside a DSH Web or headless profile via tagged GitHub release v0.1.1, targeting @deepseek-ai/dsh 0.1.0-rc.7. Caveat: OpenAI does not document this plugin, so endpoint or policy changes can break it, device-code login must be enabled in ChatGPT security or workspace settings, and the same openai-codex route must not be configured in the built-in llm-pi-ai adapter.
请帮我了解并安装插件:【dsh-openai-codex】【https://github.com/bufeibufei/dsh-openai-codex】
把上面这条消息直接发给当前会话里的 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 headless add github:bufeibufei/dsh-openai-codex#v0.1.1
把 bufeibufei/dsh-openai-codex 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-openai-codex
dsh-openai-codex is an experimental, out-of-tree DeepSeek Harness plugin. It registers pi-ai's openai-codex models against the public DSH ctx.llm adapter seam and manages a ChatGPT OAuth login in its own credential file. It does not patch or replace an installed DSH package.
The plugin targets @deepseek-ai/dsh 0.1.0-rc.7. ChatGPT sign-in is subscription-backed access, not OpenAI Platform API billing. This third-party integration uses the Codex backend behavior implemented by pi-ai; OpenAI documents ChatGPT sign-in for official Codex clients, not this plugin, so endpoint or policy changes may break it.
Install
Install the tagged GitHub release into each DSH profile that should expose Codex:
dsh plugin --profile headless add github:bufeibufei/dsh-openai-codex#v0.1.1
dsh plugin --profile web add github:bufeibufei/dsh-openai-codex#v0.1.1
The repository ships runnable JavaScript and reuses DSH rc.7's installed pi-ai runtime through an exact peer dependency, so a GitHub installation requires no package build.
The release also publishes a tarball for an offline or pinned local installation:
dsh plugin --profile web add .\dsh-openai-codex-0.1.1.tgz
Authenticate
Run the plugin's binary inside either installed profile. Both profiles share the same credential when they use the same DSH_HOME:
dsh plugin --profile headless exec dsh-codex-auth login
Open the displayed URL, enter the device code, and approve access. Device-code login may need to be enabled in your ChatGPT security or workspace settings.
Node does not enable environment-proxy support by default. When the terminal uses HTTP_PROXY or HTTPS_PROXY, enable it for login, refresh, and model requests before starting DSH:
$env:NODE_USE_ENV_PROXY = '1'
Other commands:
dsh plugin --profile headless exec dsh-codex-auth status
dsh plugin --profile headless exec dsh-codex-auth models
dsh plugin --profile headless exec dsh-codex-auth path
dsh plugin --profile headless exec dsh-codex-auth logout
After login, open DSH's Models settings and choose provider openai-codex plus one of the listed models. For a CLI-only profile, set the same provider/model through the existing DSH settings surface before starting a task.
Verify the bundle layer without starting an agent:
dsh --profile headless --dump-config
Storage and security
The credential is stored at $DSH_HOME/.dsh-openai-codex/auth.json, or ~/.dsh/.dsh-openai-codex/auth.json when DSH_HOME is unset. Writes use a same-directory temporary file, atomic rename, and a cross-process writer lock. POSIX installations request directory mode 0700 and file mode 0600.
These permissions protect against other OS users only. DSH tools that run as your own user may be able to read this file and put tokens into a session transcript. Use an isolated OS account or filesystem policy for untrusted agents. Never commit the file, attach it to diagnostics, or paste its contents.
The managed OAuth token is sent only through pi-ai's fixed https://chatgpt.com/backend-api Codex provider. The plugin exposes no endpoint override or custom-header setting. It fixes transport to SSE so a completed one-shot DSH process does not retain an authenticated WebSocket cache.
Compatibility limits
- This package deliberately has no native
dsh authtop-level command and no OAuth card in the DSH Web UI; those require host product surfaces. Its command isdsh-codex-auth, invoked throughdsh plugin ... exec. - Do not also configure an
openai-codexroute in DSH's built-inllm-pi-aisettings. Two adapters cannot own the same route. - The implementation is pinned to pi-ai
0.82.1, matching DSH0.1.0-rc.7's adapter event format. - The plugin does not reuse or overwrite
codex loginstate in~/.codex/auth.json.
Development
npm install
npm run check
npm test
npm pack
All tests are keyless. A real login and model call require an eligible ChatGPT account.
ruvnet/ruflo
amruthpillai/reactive-resume
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/colleague-skill
nocobase/nocobase
Tencent/WeKnora