
Yan-Zero/dsh-codex
123最近提交 2026年8月15日
dsh-codex DSH 插件
dsh-codex 增加了 ChatGPT OAuth 登录、Codex GPT 模型目录、流式传输、工具调用等功能。支持图像输入/输出和网络搜索,无需修改 dsh 源码。
如何安装 dsh-codex DSH 插件
dsh plugin --profile web add dsh-codex复制不会执行命令。安装 dsh-codex DSH 插件前请核对仓库和版本。
dsh-codex DSH 插件数据来源
dsh-codex DSH 插件快照日期:2026年8月16日
discovered
dsh-codex DSH 插件能做什么
- 从 dsh 设置面板或独立 CLI 进行 ChatGPT OAuth 登录,自动刷新令牌
- Codex GPT 模型目录,包含支持视觉的模型
- 流式传输、工具调用、推理回放、提示缓存和 dsh 压缩
- 通过 dsh 现有的 web_search 工具进行 Codex 独立网络搜索
- 通过粘贴、拖放或 HTTP(S) URL 进行图像输入,并通过 gpt-image-2 生成图像
dsh-codex DSH 插件适合哪些场景
- 在 DeepSeek Harness 中使用 ChatGPT 订阅,无需 OpenAI API 密钥
- 利用 ChatGPT 的视觉能力进行图像分析
- 使用工作区或对话参考图像通过 gpt-image-2 生成图像
- 通过 Codex 搜索后端执行网络搜索
- 在无头或 TUI 环境中使用 CLI 命令进行登录、状态查看和登出
dsh-codex DSH 插件适合谁
- 拥有 ChatGPT 订阅并希望将其集成到 DeepSeek Harness 工作流中的用户
- 希望使用 Codex 模型目录和图像生成功能但无需 OpenAI Platform API 密钥的开发者
dsh-codex DSH 插件的限制
- 需要 ChatGPT 订阅;不能将订阅转换为通用 OpenAI API 凭据
- Codex 端点不强制执行普通 Responses 的 max_output_tokens 字段,且压缩的摘要上限无法在此路由上服务端强制执行
dsh-codex DSH 插件的仓库 README 摘录
以下文字摘自 dsh-codex DSH 插件的上游仓库 Yan-Zero/dsh-codex 的 README,版权归原作者,仅作引用。
English | [中文](README.zh.md) Use a ChatGPT subscription in [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) through OpenAI's Codex sign-in flow—no OpenAI Platform API key required and no dsh source patch required. `dsh-codex` is an independent dsh bundle. It adds: - ChatGPT OAuth from the dsh Settings panel or a standalone CLI, with automatic token refresh - the Codex GPT catalog, including vision-capable models when the account offers them - streaming, tool calls, reasoning replay, prompt caching, and dsh compaction through the normal LLM service - Codex standalone web search through dsh's existing `web_search` tool - optional HTTP(S) URL input added to Harness's existing `read_image` tool - an `imagegen` tool backed by `gpt-image-2`, with workspace or conversation reference images and automatic workspace output - browser image input through dsh's existing paste and drop controls ChatGPT subscription authentication and usage-based OpenAI API access are different products. This plugin uses the ChatGPT Codex backend only; it does not turn a subscription into a general-purpose OpenAI API credential. ## Install Install the prebuilt bundle from npm into the sel
阅读完整 README仓库许可: Apache-2.0
dsh-codex DSH 插件常见问题
如何安装 dsh-codex?
运行 `dsh plugin --profile web add dsh-codex` 从 npm 安装预构建的 bundle 到选定的 dsh 配置文件,然后使用 `dsh web` 启动 Web 界面。如果从源码构建,使用 `pnpm dsh plugin --profile web add dsh-codex`。
使用这个插件需要 OpenAI API 密钥吗?
不需要。该插件通过您的 ChatGPT 订阅凭据使用 Codex 登录流程。您需要拥有有效的 ChatGPT 订阅,但无需 OpenAI Platform API 密钥。
非 Codex 模型也能使用图像生成功能吗?
图像生成工具 (imagegen) 仅对支持视觉的对话模型可用。设置页面有一个开关,用于控制是否允许其他模型使用图像生成。关闭后,只有 Codex 视觉模型才能调用 imagegen。
如何注销或删除凭据?
在设置面板的账户页面中操作,或运行 CLI 命令 `dsh plugin --profile web exec dsh-openai-codex logout`。移除 bundle 不会删除凭据文件,必须显式登出。
该插件支持无头或终端环境吗?
支持。您可以将 bundle 安装到 dsh-tui 配置文件中:`dsh plugin --profile dsh-tui add dsh-codex`。在终端中使用 CLI 命令进行登录,例如 `dsh plugin --profile web exec dsh-openai-codex login`。TUI 提供 `/codex` 命令用于状态、登录、登出、使用情况和配置。