跳到正文

suntianc/dsh-codex-auth

71最近提交 2026年8月15日

dsh-codex-auth DSH 插件

dsh-codex-auth 是 DeepSeek Harness 的自包含插件,与官方 Codex CLI 集成。它复用 Codex 的 ChatGPT 登录凭据,提供 openai-codex LLM 路由、全局网络搜索提供程序和图像生成/编辑工具。它还包含 GPT Auth 设置面板,用于管理登录和配置。

如何安装 dsh-codex-auth DSH 插件

dsh plugin --profile web add dsh-codex-auth

复制不会执行命令。安装 dsh-codex-auth DSH 插件前请核对仓库和版本。

dsh-codex-auth DSH 插件数据来源

dsh-codex-auth DSH 插件快照日期:2026年8月16日

discovered

dsh-codex-auth DSH 插件能做什么

  • 通过 Codex CLI 登录,共享认证协调器用于 LLM、搜索和图像操作
  • 通过 chatgpt.com/backend-api/codex/alpha/search 提供全局网络搜索
  • 通过 generate_image 工具支持图像生成和编辑,支持引用和多个输出
  • list_images 工具用于列出持久化会话图像
  • GPT Auth 设置面板,包含登录、网络搜索和图像创建卡片
  • 可配置的传输方式(SSE、WebSocket、自动)和超时设置

dsh-codex-auth DSH 插件适合哪些场景

  • 在 DSH 中作为主要 LLM 提供者,复用已有的 Codex 登录
  • 在 DSH 代理中使用内置搜索提供程序进行网络搜索
  • 在 DSH 对话中使用 Codex 图像端点生成和编辑图像
  • 从 DSH 设置中管理 Codex 认证状态并查看剩余用量
  • 无需额外 API 密钥,开发结合 LLM、搜索和图像能力的 DSH 代理

dsh-codex-auth DSH 插件适合谁

  • 使用 DeepSeek Harness 且希望利用 Codex CLI 能力的开发者
  • 已经拥有 Codex 登录,并希望在 DSH 中复用其 LLM、搜索和图像功能的用户

dsh-codex-auth DSH 插件的限制

  • 使用前需要安装 Codex CLI 并运行 `codex login` 登录
  • 非官方渠道,仅限个人开发使用,不适用于生产环境
  • 如果 Codex 将凭据存储在系统密钥链中,auth.json 可能为空,需要修改配置
  • 由于 DSH API 限制,无法导出二进制工作区;图像仅作为对话附件持久化
  • WebSocket 传输在常见 HTTP 代理下可能不可靠,默认使用 SSE

dsh-codex-auth DSH 插件的仓库 README 摘录

以下文字摘自 dsh-codex-auth DSH 插件的上游仓库 suntianc/dsh-codex-auth 的 README,版权归原作者,仅作引用。

English | [中文](README.zh.md) Current release: **v0.2.0** A self-contained [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) **Codex Capability Bundle**. It reuses the ChatGPT login maintained by the official **Codex CLI** (`~/.codex/auth.json`, or `$CODEX_HOME/auth.json`) for: - the `openai-codex` LLM route; - a Global Codex Search Provider behind DSH's stock `web_search` tool; - durable image generation and editing through `generate_image`, plus the model-facing `list_images` catalog; - resilient weekly Codex usage status; - one native **GPT Auth** Settings section with Login, Web Search, and Image Creation cards. > **⚠️ Unofficial channel — personal development only.** The private, > account-gated `chatgpt.com/backend-api` surface is unsupported, revocable, and > may be rate-limited or changed without notice. Do not rely on it for > production workloads. ## Features ### Shared Codex Login State - Uses one Host-only auth coordinator for LLM, Search, and Image operations. - Resolves credentials through version-bound auth-file snapshots, a short-lived in-memory cache, and proactive refresh before expiry. - Coalesces concurrent refreshes in-process and

阅读完整 README仓库许可: MIT

dsh-codex-auth DSH 插件常见问题

如何安装 dsh-codex-auth?

可以通过 npm 安装:`dsh plugin --profile web add dsh-codex-auth`。也可以从预构建的发布版本、GitHub 源码或本地 tarball 安装。安装后重启 `dsh web`,打开设置即可看到 GPT Auth 部分。

是否需要先登录 Codex CLI?

是的,dsh-codex-auth 依赖官方 Codex CLI 的登录状态。你需要先安装 `codex` 并运行 `codex login` 登录。你也可以在 DSH 设置的 GPT Auth 卡片中启动登录流程。

这个插件可以用于生产环境吗?

不可以。该插件使用非官方渠道(chatgpt.com/backend-api),该接口受账户限制、可撤销且可能受到速率限制。仅限个人开发使用,请勿用于生产环境。

LLM 路由支持哪些传输方式?

支持 SSE(默认)、WebSocket 和自动模式(优先 WebSocket,失败则回退到 SSE)。由于 WebSocket 在常见 HTTP 代理下不可靠,自动模式可能会回退到 SSE。你可以通过 Host 配置中的 `transport` 字段设置。

为什么不能将生成的图像导出到工作区?

当前版本的 DeepSeek Harness(0.1.0-rc.6)未提供受策略约束的二进制工作区写入 API。生成的图像会作为持久化对话附件保存,但无法导出到工作区。插件不会通过直接 Node 文件系统访问绕过 DSH 策略。