WNJXYK/dsh-codex-oauth 预览 preview

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配置文件。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 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 DSH 0.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 →

← 上一个 Prev dsh-liquid-glass 下一个 Next dsh-api-dashboard →