返回目录

dsh-codex

编辑精选维护状态: 活跃

yan-zero/dsh-codex

通过 OpenAI Codex 登录流程在 DeepSeek Harness 中使用你的 ChatGPT 订阅。

前往 GitHub
$ dsh plugin --profile web add dsh-codex

51

星标

14

Fork

TypeScript

语言

Apache-2.0

许可证

2026-08-13

创建于

2026-08-20

最近推送

Apache-2.0 的 dsh 插件,通过 OAuth 登录把 ChatGPT Codex 模型接入 DeepSeek Harness——无需 OpenAI API 密钥。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-09-01

许可证

Apache-2.0

01它能帮你完成什么?

  • Run ChatGPT / Codex models inside DeepSeek Harness without an OpenAI Platform API key

    A connected ChatGPT OAuth session plus the Codex GPT catalog (streaming, tool calls, reasoning replay, prompt caching, dsh compaction) through the normal LLM service

    DeepSeek Harness (dsh) users with a ChatGPT subscription who want Codex models without buying OpenAI API access

  • Generate images from prompts inside DeepSeek Harness

    An `imagegen` tool backed by `gpt-image-2`, with workspace or conversation reference images and automatic workspace output

    dsh users who need image generation alongside code and chat

02如何接入 DeepSeek Harness?

前置条件

  • DeepSeek Harness (dsh) installed with a profile — the install commands invoke the `dsh` CLI (`dsh plugin --profile web add dsh-codex`, then `dsh web`)

安装步骤

  1. 01

    Install the prebuilt bundle from npm into the selected dsh profile: `dsh plugin --profile web add dsh-codex`

    $ dsh plugin --profile web add dsh-codex

  2. 02

    Start the web profile: `dsh web`

    $ dsh web

  3. 03

    From a DeepSeek Harness source checkout, use `pnpm dsh plugin --profile web add dsh-codex`

  4. 04

    For local development, install a linked checkout with `link:/absolute/path/to/dsh-codex`

  5. 05

    Sign in: open **Settings → OpenAI Codex → Sign in with ChatGPT**; the plugin completes OpenAI's localhost callback

验证接入成功

  • The account page shows live Codex quota bars and exact remaining percentages

03DSH 适配与能力边界

DSH 适配原生运行时

Native dsh plugin bundle installed via `dsh plugin add`, extending the LLM service and dsh's web_search / read_image / paste-drop tools

  • ChatGPT OAuth sign-in

    DeepSeek Harness Settings panel or a standalone CLIChatGPT OAuth session with automatic token refresh

  • Codex GPT catalog

    ChatGPT accountCodex GPT model catalog, including vision-capable models when the account offers them

  • Streaming, tool calls & dsh compaction

    normal LLM service requestsstreaming, tool calls, reasoning replay, prompt caching, and dsh compaction

  • Codex web search

    dsh's existing `web_search` toolCodex standalone web search results

  • imagegen tool (gpt-image-2)

    text prompts, with optional workspace or conversation reference imagesgenerated images with automatic workspace output

04适合谁?何时不该用?

适合

  • DeepSeek Harness (dsh) users with a ChatGPT subscription who want Codex models without buying OpenAI API access
  • dsh users who need image generation alongside code and chat

不适合

  • Uses only the ChatGPT Codex backend; it does not turn a ChatGPT subscription into a general-purpose OpenAI API credential (different from usage-based OpenAI API access).

05兼容性、维护与安全提示

  • Uses only the ChatGPT Codex backend; it does not turn a ChatGPT subscription into a general-purpose OpenAI API credential (different from usage-based OpenAI API access).
  • Exact credit balances or workspace limits appear only when the account API supplies them.
2026-08-132026-08-20作者未说明

Apache-2.0 independent dsh bundle; no tagged GitHub release; last push 2026-08-20

06常见问题

使用 dsh-codex 需要 OpenAI Platform API 密钥吗?

不需要。dsh-codex 通过 OpenAI 的 Codex 登录流程使用你的 ChatGPT 订阅——无需 OpenAI Platform API 密钥,也无需修改 dsh 源码。它不会把订阅转化为通用 OpenAI API 凭据。

如何把 dsh-codex 安装到 DeepSeek Harness?

从 npm 安装预构建包到对应 dsh 配置:`dsh plugin --profile web add dsh-codex`,然后运行 `dsh web`。若从源码检出,可用 `pnpm dsh plugin --profile web add dsh-codex`;本地开发可用 `link:/absolute/path/to/dsh-codex` 链接本地目录。

如何登录 ChatGPT?

打开 设置 → OpenAI Codex → 用 ChatGPT 登录。插件会打开 OpenAI 授权页并完成本地回调;回环 Web 页面会被自动信任。登录后账户页会显示实时的 Codex 配额条。

dsh-codex 新增了哪些模型和功能?

新增 Codex GPT 模型目录(账户支持时含视觉模型)、流式输出、工具调用、推理回放、提示缓存、dsh 压缩、经 dsh web_search 的 Codex 联网搜索、为 read_image 增加的 HTTP(S) 图片输入、基于 gpt-image-2 的 imagegen 图像生成工具,以及通过 dsh 粘贴/拖放实现的浏览器图片输入。

ChatGPT 订阅和 OpenAI API 访问是一回事吗?

不是。ChatGPT 订阅认证与按量计费的 OpenAI API 访问是两种不同的产品。本插件仅使用 ChatGPT Codex 后端,不会把订阅转化为通用 OpenAI API 凭据。

08数据与来源

  • 作者声明github.come3e54e206f7c…

    `dsh-codex` is an independent dsh bundle. It adds:

  • 作者声明github.come3e54e206f7c…

    streaming, tool calls, reasoning replay, prompt caching, and dsh compaction through the normal LLM service

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-01。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。