DGPisces/dsh-openai-oauth 预览 preview

DGPisces/dsh-openai-oauth

Plugin插件 Native原生 ⭐ 6 MIT Models & Routing模型与路由

基于Codex应用服务器,通过托管的ChatGPT OAuth为GPT模型提供DeepSeek Harness provider

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that lets users use GPT models from their personal ChatGPT account as DSH’s main LLM. It connects to the official local Codex app-server, which handles all ChatGPT authentication, credential storage, token refresh, and model access requests on the plugin’s behalf. Unlike most OpenAI model integrations, this plugin does not require users to purchase a separate OpenAI API key, and it does not copy auth data from existing Codex installations or implement its own custom OAuth client or call any unpublished ChatGPT API endpoints.

Installation is done with a single terminal command, npx -y dsh-openai-oauth install, and the same command is used to update the plugin after initial setup. The installer automatically registers the plugin with all existing DSH profiles, including the default web and headless profiles, as well as any custom profiles a user has already created. If you create a new custom profile after installing the plugin, just re-run the install command to add the plugin to the new profile. This plugin is ideal for DSH users who have a ChatGPT account with Codex access and want to use GPT models without paying for an extra OpenAI API key.

To run the plugin, you will need Node.js 22.19 or newer, DeepSeek Harness 0.1.0-rc.6 or newer, and an active ChatGPT account with Codex access. It is released under the open-source MIT license and is an independent community project, not endorsed by either DeepSeek or OpenAI. After installation, users sign in to ChatGPT via the DSH web interface settings or a terminal command for headless profiles, and credentials are stored separately in ~/.deepseek-harness/codex and managed by Codex. Uninstall can be done via npx command, with an option to purge saved authentication credentials for a clean removal.

这是DeepSeek Harness(DSH)的原生插件,功能是让用户使用自己ChatGPT账号中的GPT模型作为DSH的主模型,全程保留DSH自身的代理循环和工具运行能力。该插件对接官方本地Codex应用服务器,由后者处理ChatGPT登录、凭证存储、令牌刷新和模型访问的全部流程,不需要用户准备额外的OpenAI API密钥,也不会私自复制现有Codex安装的auth.json或调用未公开端点。

安装流程非常简便,用户只需要执行一条npx命令即可完成安装,安装程序会自动为所有现有配置文件(包括默认的web、headless和自定义配置文件)注册该插件,若后续新增自定义配置,重新执行一次安装命令就能完成注册,更新插件也用同一条命令。它面向拥有ChatGPT Codex访问权限、想要在DSH中使用OpenAI GPT模型但不想额外购买API密钥的用户。

该插件要求Node.js 22.19或更高版本,以及开发者预览版0.1.0-rc.6以上的DSH,同时用户需要拥有带Codex访问权限的ChatGPT账号。它采用MIT许可证开源,是独立社区开发的插件,不获得DeepSeek或OpenAI的官方认可。登录凭证存储在~/.deepseek-harness/codex目录下,由Codex负责管理刷新,卸载时可选择保留或清除凭证。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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 github:DGPisces/dsh-openai-oauth

把 DGPisces/dsh-openai-oauth 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-openai-oauth

English | 简体中文

Use GPT models from your ChatGPT account as the main model in DeepSeek Harness. Harness keeps its own agent loop and runs its own tools. This package connects its LLM interface to the official local Codex app-server, which handles ChatGPT login, credential storage, token refresh, and model access.

You do not need an OpenAI API key. The package does not copy another Codex installation's auth.json, implement its own OAuth client, or call an unpublished ChatGPT endpoint.

Requirements

  • Node.js 22.19 or newer
  • DeepSeek Harness developer preview 0.1.0-rc.6
  • A ChatGPT account with Codex access

Install

Run one command:

npx -y dsh-openai-oauth install

The installer registers the package with the web and headless profiles, plus any custom profiles that already exist. It also replaces the old deepseek-harness-openai-oauth and dsh-llm-codex-app-server packages if found.

Run the same command to update the package later. If you create a custom profile after installation, run it once more to register that profile.

Sign in with ChatGPT

Start the Harness web interface:

npx @deepseek-ai/dsh web

Open Settings > OpenAI OAuth, select Sign in with ChatGPT, and finish authorization in the OpenAI page. The GPT models available to your account will then appear in the normal Harness model picker.

For a headless profile, sign in from the terminal:

npx @deepseek-ai/dsh plugin --profile headless exec dsh-codex-login

The login is stored separately under ~/.deepseek-harness/codex. Codex owns the credentials and refreshes them when needed.

Select a model

Choose the provider and model in the Harness interface, or set them in ~/.dsh/settings.yaml:

agent-default-model:
  provider: openai-codex
  model: gpt-5.6-sol
  reasoningEffort: high

Run Harness as usual:

npx @deepseek-ai/dsh --profile headless "inspect this repository"

The plugin reads the model list from the signed-in Codex account. It does not keep a hardcoded list of GPT versions.

Uninstall

Remove the package from every current Harness profile while keeping the ChatGPT login for a future reinstall:

npx -y dsh-openai-oauth uninstall

For a clean uninstall that also signs out and deletes ~/.deepseek-harness/codex:

npx -y dsh-openai-oauth uninstall --purge-auth

These commands also remove registrations left by the old package name. They do not install a permanent global npm package. npm may retain its normal download cache.

Local development

npm install
npm test
npm pack --dry-run

This is an independent community plugin. It is not endorsed by DeepSeek or OpenAI.

License

MIT

← 上一个 Prev dsh-minimal-v3 下一个 Next dsh-jupyter →