dshbase

插件目录 / Developer / deepseek-harness-openai-oauth

deepseek-harness-openai-oauth

已验证 · 实测可装 DGPisces

✓ 持续维护 基于 3 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

4Stars
0Forks
0未关闭 issue
JavaScript语言
2026-08-15最近推送
跨平台平台

功能简介

使用Codex应用服务器管理ChatGPT OAuth的GPT模型提供者

✅
我们的评价
可用 — 实测通过,早期项目

使用Codex应用服务器管理ChatGPT OAuth的GPT模型提供者 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

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

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 deepseek-harness-openai-oauth」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

Web profile:

dsh plugin --profile web add deepseek-harness-openai-oauth

Headless(CLI)profile:

dsh plugin --profile headless add deepseek-harness-openai-oauth

包信息

npm:deepseek-harness-openai-oauth · 版本 — · 实测环境 dsh 0.1.0-rc.6

实测报告

端到端验证通过:dsh 0.1.0-rc.6 上 L1 安装 + L2 加载 + L3 运行问答。

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7797 个插件 →