
SPYQWER1/dsh-codex-tools
30最近提交 2026年8月15日
dsh-codex-tools DSH 插件
该插件为 DeepSeek Harness 提供三个工具:web_search、image_gen 和 image_vision,均基于 ChatGPT Codex 传输。它使用 Node.js 内置的 https 模块,需要已有的 ChatGPT/Codex 登录状态。这些工具可在 DSH 会话中实现网页搜索、图像创建和图像理解。
如何安装 dsh-codex-tools DSH 插件
dsh plugin --profile web add github:SPYQWER1/dsh-codex-tools复制不会执行命令。安装 dsh-codex-tools DSH 插件前请核对仓库和版本。
dsh-codex-tools DSH 插件数据来源
dsh-codex-tools DSH 插件快照日期:2026年8月16日
discovered
dsh-codex-tools DSH 插件能做什么
- `web_search` 搜索公共网页并返回摘要及来源 URL
- `image_gen` 根据文本提示生成新的位图图像(不编辑现有图像)
- `image_vision` 读取本地图像并返回描述或回答关于图像的问题
- 支持每个工具配置不同模型(例如搜索使用 gpt-5.4-mini,图像任务使用 gpt-5.5)
- OAuth 刷新机制:在收到 401 时自动刷新访问令牌并持久化新状态
dsh-codex-tools DSH 插件适合哪些场景
- 搜索网页获取最新信息,并得到带来源的摘要结果
- 根据文字描述生成图像,用于创意或原型制作
- 描述图像内容或对图像提出具体问题
- 将网页搜索和图像能力集成到 DSH 驱动的工作流中
- 自动化图像描述任务,用于无障碍或日志记录
dsh-codex-tools DSH 插件适合谁
- 需要在 DSH 会话中使用网页搜索、图像生成或图像分析的 DSH 用户
- 构建需要这些模型工具能力的 AI 辅助工作流的开发者
dsh-codex-tools DSH 插件的限制
- 需要已有的 ChatGPT/Codex 登录(凭证或认证文件);本插件不提供登录功能
- 使用内部未公开的端点(`chatgpt.com/backend-api/codex/responses`),可能发生变更或受到限制
- `image_gen` 和 `image_vision` 只接受工作区相对路径;拒绝绝对路径、父目录段和符号链接
- 图像生成从不覆盖现有文件,且不支持透明背景
- 网页搜索和图像生成会消耗 ChatGPT 计划中的 Codex 使用配额
dsh-codex-tools DSH 插件的仓库 README 摘录
以下文字摘自 dsh-codex-tools DSH 插件的上游仓库 SPYQWER1/dsh-codex-tools 的 README,版权归原作者,仅作引用。
A DeepSeek Harness plugin that registers three model tools backed by the ChatGPT Codex transport: | Tool | Function | | --- | --- | | `web_search` | Searches the public web and returns a summary with source URLs. | | `image_gen` | Generates a bitmap image. It does not edit or transform an existing image. | | `image_vision` | Reads a local image and returns a description or an answer to a question about it. | The package has no npm runtime dependencies and uses Node's built-in `https` transport. It consumes an existing Codex/ChatGPT login; it does not provide login or an LLM provider. ## Runtime requirements - DeepSeek Harness, with the plugin installed as a profile-level Cordis bundle. - Node.js >= 22. - A ChatGPT/Codex login state, either `codex login` with an auth file, or credentials in DSH: - `OPENAI_CODEX_API_KEY` - `OPENAI_CODEX_REFRESH_TOKEN` Credentials are resolved from `CODEX_ACCESS_TOKEN` and `CODEX_REFRESH_TOKEN` environment variables first (the plugin maps the DSH credential names above to these variables). If those are absent, the transport reads `$CODEX_HOME/auth.json` when `CODEX_HOME` is set, or `~/.codex/auth.json` otherwise. Set `CODEX_HOME` to choose an
阅读完整 README仓库许可: MIT
dsh-codex-tools DSH 插件常见问题
如何安装 dsh-codex-tools?
你可以通过 Git 安装:`dsh plugin --profile web add github:SPYQWER1/dsh-codex-tools`。或者下载 tarball 后使用 `dsh plugin --profile web add ./dsh-codex-tools-1.0.0.tgz`。安装后,使用 `dsh web` 或 `dsh --profile web` 重启 profile。
使用该插件需要什么凭证?
你需要一个 ChatGPT/Codex 登录状态。插件使用 `CODEX_ACCESS_TOKEN` 和 `CODEX_REFRESH_TOKEN` 环境变量,或者位于 `$CODEX_HOME/auth.json`(默认 `~/.codex/auth.json`)的 Codex 认证文件。你也可以在 DSH 凭证配置中设置 `OPENAI_CODEX_API_KEY` 和 `OPENAI_CODEX_REFRESH_TOKEN`。
image_gen 支持透明背景吗?
不支持透明背景输出。文档建议请求一个纯色或色键背景,然后在本地移除背景。
image_vision 支持哪些图像格式?
image_vision 接受 PNG、JPEG/JPG、WebP 和 GIF 文件。图像大小必须小于 15 MiB,且位于传输工作区内。绝对路径、父目录段和符号链接会被拒绝。
没有 ChatGPT 订阅能使用该插件吗?
不能。该插件需要包含 Codex 使用量的 ChatGPT 计划。网页搜索和图像生成会消耗计量的 Codex 配额。你必须拥有有效的 Codex 凭证。