DeepSHPlugins
dsh-codex-tools 项目预览
GITHUB / COMMUNITY PROJECT

dsh-codex-tools

工具与集成JavaScriptMIT

基于 Codex 的 `web_search`、`image_gen` 与 `image_vision` 工具,复用 ChatGPT OAuth 登录态为 DeepSeek Harness 提供网页搜索、生图与识图能力。

5 StarsSPYQWER1 更新时间 2026-08-27
访问 GitHub 仓库
dsh-codex-tools 项目预览
dsh-codex-tools 界面截图dsh-codex-tools 界面截图

项目介绍

中文

基于 Codex 的 `web_search`、`image_gen` 与 `image_vision` 工具,复用 ChatGPT OAuth 登录态为 DeepSeek Harness 提供网页搜索、生图与识图能力。

English

Codex-backed `web_search`, `image_gen`, and `image_vision` tools for DeepSeek Harness, reusing ChatGPT OAuth login state.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
SPYQWER1
仓库
SPYQWER1/dsh-codex-tools
GitHub Stars
5
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-27
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

61/ 100
维护活跃
91
文档与实用信息
74
生态关注度
22
安装便捷信号
55
项目声明信号
100

近 15 天仍在更新;关注度尚低(5)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add dsh-codex-tools

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-codex-tools

中文

A DeepSeek Harness plugin that registers three tools provided by ChatGPT Codex:

ToolFunction
codex_web_searchSearches the public web and returns a summary with source URLs.
image_genGenerates a bitmap image. It does not edit or transform an existing image.
image_visionReads a local image and returns a description or an answer to a question about it.

It consumes an existing Codex/ChatGPT login; it does not provide login or an LLM provider.

Runtime requirements

  • DeepSeek Harness.
  • 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 another auth directory; the default is ~/.codex. After an HTTP 401, a transport refreshes the access token once and attempts to persist the refreshed login state to that auth file. When the plugin injects DSH credentials, the refresh code may still write to the auth file selected by CODEX_HOME or the default path.

Installation

# Git
dsh plugin --profile web add github:SPYQWER1/dsh-codex-tools

# npm
dsh plugin --profile web add dsh-codex-tools

Restart after installation (dsh web or dsh --profile web). Remove it with dsh plugin --profile web remove dsh-codex-tools.

Screenshots

Image generation

Image generation example

Image vision

Image vision example

Tool parameters

codex_web_search

ParameterTypeDefault / limits
querystring (required)Public-web research question.
maxSourcesinteger5; from 1 to 10.
freshnessstringcached, or live for time-sensitive queries.
modelstringgpt-5.4-mini.

The result contains summary and sources; each source has a title, URL, and snippet.

image_gen

ParameterTypeDefault / limits
promptstring (required)Describe the subject, style, composition, palette, and constraints.
outstringoutput/imagegen/<timestamp>.<format>; must be relative to the current DSH session workspace. The workspace root comes from DSH's sandbox-policy service. Absolute paths, parent-directory segments, and symbolic links are rejected. Parent directories are created, and existing files are never overwritten. If out is omitted, the extension follows format.
sizestringauto, 1024x1024, 1536x1024, 1024x1536, 2048x2048, or 2048x1152.
formatstringpng, jpeg, or webp; default png.
modelstringgpt-5.5.

image_vision

ParameterTypeDefault / limits
imagestring (required)Existing png, jpeg/jpg, webp, or gif under the current DSH session workspace; absolute paths, parent-directory segments, and symbolic links are rejected. Maximum 15 MiB.
questionstringOptional focus question; omitted means a full description.
modelstringgpt-5.5.

The transport reads the local file, embeds it in the request, and sends it to the ChatGPT Codex endpoint. Only files inside the transport workspace are accepted.

Architecture

Harness model tool
        |
        v
index.js -> tools.js -> scripts/codex-*.mjs
                              |
                              +-- OAuth refresh (auth.openai.com)
                              +-- POST chatgpt.com/backend-api/codex/responses
                              |
             codex_web_search: gpt-5.4-mini by default
             image_gen / image_vision: gpt-5.5 by default

Caveats and service terms

  • chatgpt.com/backend-api/codex/responses is an internal endpoint used by the official Codex CLI, not a documented public API. It may change or be restricted without notice.
  • Search summaries and snippets are model-generated; open the returned source URLs and check the original text before relying on them.
  • Web search and image generation use the metered Codex-usage bucket of the ChatGPT plan.
  • Follow OpenAI's Terms of Use; do not use a ChatGPT subscription to power a public-facing image-generation service.

License

MIT — see LICENSE.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目