DGPisces/dsh-openai-oauth
基于Codex应用服务器,通过托管的ChatGPT OAuth为GPT模型提供DeepSeek Harness provider
项目介绍Project Overview
dsh-openai-oauth 是 DeepSeek Harness 插件,将大模型接口对接官方本地 Codex app-server,以使用 ChatGPT 账号登录、存储凭据、刷新令牌并调用 GPT 模型,无需 OpenAI API key。适用于想在 Harness 主模型中使用 GPT 的用户。注意:需要 ChatGPT 账号具有 Codex 访问权限,且 Node.js 22.19+、Harness 0.1.0-rc.6。
dsh-openai-oauth is a DeepSeek Harness plugin that bridges its LLM interface to the official local Codex app-server, enabling login with a ChatGPT account, credential storage, token refresh, and access to GPT models, with no OpenAI API key required. Use it when you want GPT models as the main model in Harness. Note: a ChatGPT account with Codex access and Node.js 22.19+ are required.
请帮我了解并安装插件:【dsh-openai-oauth】【https://github.com/DGPisces/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 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
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill