WNJXYK/dsh-codex-oauth
使用你的OpenAI订阅与DeepSeek Harness,即可访问GPT模型、图像生成和网络搜索功能。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that lets users connect their existing ChatGPT or Codex subscription via OpenAI OAuth to access GPT models, image generation, and web search directly within DSH. To install the plugin, you can run the official DSH CLI command to pull the latest version either from the public npm registry or directly from the project’s GitHub repository. It has been verified to work with DSH version 0.1.0-rc.6, and the maintainer will continue testing it against future DSH releases to maintain long-term compatibility.
This plugin is intended for DSH users who already hold an active ChatGPT or Codex subscription from OpenAI and want to use that subscription’s quota within the DSH environment. On first run, you can choose between two OAuth sign-in methods: browser-based sign-in or headless device code authorization, whichever fits your use case. The plugin automatically adapts its interface to match DSH’s current language setting (English or Chinese) and selected theme (light, dark, or system), so it fits seamlessly into your existing DSH workflow. It also supports automatic token renewal, status refreshes, and sign-out to help you manage your connected account without leaving DSH.
This plugin is released under the permissive MIT open-source license, so you can use, modify, and distribute it according to the license terms. Because it relies on non-public OpenAI ChatGPT Codex backend endpoints, there is some risk that changes to OpenAI’s protocols could break functionality until the plugin receives an update. There is also a small risk of account suspension from OpenAI for using this integration, so you should use this plugin at your own risk. Most users will not need any extra configuration, but advanced users can customize settings like OAuth endpoints, file paths, and network ports via the Cordis configuration if needed.
这是一个专为DeepSeek Harness(DSH)开发的原生插件,用于让用户通过OpenAI OAuth授权接入自己的ChatGPT/Codex订阅,在DSH中使用GPT大模型、图像生成和网页搜索功能,同时支持展示订阅配额的使用情况。可通过DSH官方CLI指令从npm或GitHub仓库直接安装,已针对DSH 0.1.0-rc.6版本完成兼容性验证。
该插件面向已有OpenAI ChatGPT/Codex订阅、想要在DSH中使用对应服务的用户。使用时可选择浏览器登录或无头设备码授权两种方式,支持自动刷新令牌、登出、状态刷新,界面会自动适配DSH的中英文语言设置与明暗主题。授权完成后即可在DSH的模型选择器中看到订阅账户下的所有可用模型。
该插件基于MIT许可证开源,它依赖非公开的ChatGPT Codex后端接口,存在OpenAI修改协议导致功能暂时不可用的风险,同时也有极低的账号封禁风险。正常使用无需额外配置,仅高级用户需要自定义OAuth端点、文件路径、端口号等选项时,才需要修改Cordis配置文件。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-codex-oauth(WNJXYK/dsh-codex-oauth)
仓库:https://github.com/WNJXYK/dsh-codex-oauth
本站详情页:https://www.yhbd.top/plugins/wnjxyk-dsh-codex-oauth/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 14 · 最近提交 2026-08-15 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 14 stars - an early-stage project星标 14,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add -w github:WNJXYK/dsh-codex-oauth
把 WNJXYK/dsh-codex-oauth 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
🔐 DSH-Codex-OAuth
English | 简体中文
🎯 What it does: Sign in with a ChatGPT / Codex subscription to enjoy powerful GPT models, image generation, and web search in DeepSeek Harness, with subscription quota reporting included.
🧩 Compatibility: Verified on DSH0.1.0-rc.6; future releases will continue to be tested against the latest DSH version.
⚠️ Risk: This project is built on open-source software and relies on non-public ChatGPT Codex backend endpoints. OpenAI protocol changes may temporarily break features until the plugin is updated, and there may also be a low risk of account suspension.
✨ Plugin highlights
- 🚀 Direct subscription access — GPT models, image generation, and web search share your OpenAI subscription quota.
- 🧩 Controlled integration — the model picker, generated images, and web search integrate into DeepSeek Harness with dedicated controls.
- 🔐 Multiple sign-in methods — supports browser sign-in and headless device-code authorization.
- 🌗 UI adaptation — follows DSH's English/Chinese language and Light, Dark, or System theme.
📦 Install / Upgrade
🟢 npm
dsh plugin --profile web add -w @wnjxyk/dsh-codex-oauth@latest
🐙 GitHub
dsh plugin --profile web add -w github:WNJXYK/dsh-codex-oauth
🗑️ Uninstall
npm and GitHub installations use the same removal command:
dsh plugin --profile web remove -w @wnjxyk/dsh-codex-oauth
🧰 Plugin capabilities
| Capability | Description |
|---|---|
| 🤖 GPT models | Activates DSH's built-in openai-codex provider and dynamically loads models available to the account. |
| 🎨 Image generation | Registers the generate_image tool, supports multiple image sizes and quality levels, and displays the generated result. |
| 🌐 Web search | Routes native web_search through hosted GPT search and returns answer text with structured source URLs. |
| 📊 Subscription usage | Shows plan, remaining quota, reset times, and windows such as 5-hour and weekly limits. |
| 🔑 OAuth | Supports browser sign-in, device codes, automatic token renewal, status refresh, and sign-out. |
| 🖥️ Native integration | Provides model and feature controls, image previews, bilingual copy, and theme adaptation while following DSH's hot-plug design. |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Flyvhidbwo/dsh-vision-proxy
moduqishi/GrassVison
Totoro-qaq/dsh-plugin-bridge
william-jin-cmu/dsh-vision
rinDBeans/dsh-miraculous-standard
xiaoxianyu-office/dsh-router-flash
v587d/dsh-opencode-go-usage