← 返回列表
D

dsh-open-auth

v0.1.1 · 4 天前发布

One DeepSeek Harness plugin for every pi-ai provider, including subscription OAuth

deepseek-harnessdsh-plugindshpi-aioauthopenai-codexkimi

README

dsh-open-auth

English | 简体中文

一个 DSH LLM 插件,同时接入 pi-ai 当前内置的所有聊天 Provider,并提供统一的 OAuth/API Key 登录 CLI。插件和 CLI 共用同一个受文件权限保护的令牌文件,因此 OpenAI Codex、Kimi Code、GitHub Copilot 等订阅登录可直接用于 DSH 的模型请求。

这不是 OpenAI API Key 到 ChatGPT 订阅的转换。openai-codex 使用 pi-ai 实现的 OpenAI Codex OAuth 和 ChatGPT backend;是否可用、支持哪些模型以及额度限制仍由 OpenAI 账户和适用的服务条款决定。

安装

要求 Node.js 22.19 或更高版本。

将包安装到 DSH profile 中(如果使用其他 profile,请将 web 替换成对应名称):

bash
dsh plugin --profile web add dsh-open-auth

如果你的 DSH 运行时是普通 Node.js 项目,则在该项目中安装:

bash
npm install dsh-open-auth

然后按照下文说明将插件加入 DSH 配置。通过 dsh plugin add 安装时,内置的默认配置会自动生效。

身份认证

安装到 DSH profile 后,通过该 profile 执行 CLI。登录 OpenAI Codex 订阅:

```bash
dsh plugin --profile web exec dsh-open-auth login openai-codex
dsh plugin --profile web exe

查看完整 README →

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
MIT
npm
dsh-open-auth
Repo
git+https://github.com/jianghuife/dsh-open-auth-plugin.git
Engines
{"node":">=22.19.0"}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}