DeepSeek Harness 插件

deepseek-harness-plugins

OpenAI Codex OAuth replacement adapter for DeepSeek Harness(英文原文)

跳到安装方式

来源信息

GitHub 仓库
jinbaozi/deepseek-harness-plugins
最近更新
2026年8月14日
分类
工具与能力
GitHub stars
2
载体类型
plugin
包路径
packages/dsh-llm-pi-ai-oauth
目录证据
上游声明已找到 dsh.bundle
证据路径
packages/dsh-llm-pi-ai-oauth/package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/jinbaozi/deepseek-harness-plugins/tree/HEAD/packages/dsh-llm-pi-ai-oauth
插件名:deepseek-harness-plugins
作者:jinbaozi

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-llm-pi-ai-oauth

OpenAI Codex / ChatGPT OAuth support for DeepSeek Harness.

This package is a replacement-type DSH Bundle based on @deepseek-ai/dsh-llm-pi-ai@0.1.0-rc.6. It adds:

  • /login-codex browser and device-code login;
  • OAuth credential storage under OPENAI_CODEX_OAUTH;
  • request-time access-token refresh;
  • the openai-codex provider in the configurable-provider directory.

Compatibility

PackageVersion
DeepSeek Harness0.1.0-rc.6
@deepseek-ai/dsh-llm-pi-ai baseline0.1.0-rc.6
@earendil-works/pi-ai0.82.1
Node.js>=22.19.0

Install

dsh.cmd plugin --profile web add dsh-llm-pi-ai-oauth@0.1.0-rc.6.0

The package declares a dsh.bundle patch. Installation therefore disables the stock llm-pi-ai row and inserts this package. Do not keep an older profile-local patch that inserts ./plugins/dsh-llm-pi-ai-oauth/lib/index.js, or the row may be inserted twice.

Restart the DSH Web process and run:

/login-codex

The browser callback uses pi-ai's fixed port 1455. For a remote server, use device-code login or provide the required local forwarding.

Credential safety

The OAuth credential is stored by the DSH credential service, normally in $DSH_HOME/.credentials.yaml. Never commit that file, print its contents, or place an access/refresh token in a test fixture.

Architecture note

The stock rc.6 adapter has no external OAuth resolver hook and the LLM registry uses single ownership. This package must therefore replace the stock row rather than load beside it. The public package contract is the Cordis plugin root; ./oauth is an implementation/testing subpath.

Upgrade and rollback

Publish a new package version for each incompatible DSH or pi-ai baseline. Pin the package version in deployments:

dsh.cmd plugin --profile web add dsh-llm-pi-ai-oauth@0.1.0-rc.6.0

To remove it:

dsh.cmd plugin --profile web remove dsh-llm-pi-ai-oauth

After removal, switch any openai-codex default model back to a provider that the stock adapter supports.