Yan-Zero/dsh-codex 预览 preview

Yan-Zero/dsh-codex

Plugin插件 Native原生 ⭐ 72 Apache-2.0 Models & Routing模型与路由

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

Project Overview项目介绍

dsh-codex is a native plugin built exclusively for DeepSeek Harness that lets users connect their ChatGPT Codex subscription to DSH without requiring an OpenAI Platform API key or modifying DSH source code. To install the prebuilt version, users run the command dsh plugin --profile web add dsh-codex to add it to their selected DSH profile. It supports both the DSH web interface and DSH-TUI, and includes instructions for local development installation from source. After installation, users complete the OAuth login flow through DSH’s settings panel, and the plugin handles automatic token refresh to keep the connection active. It pulls the full list of Codex models available to the signed-in account, including vision-capable models that support image input.

This plugin adds several Codex-specific features to DSH, including client-side context window overrides, image generation via gpt-image-2, standalone Codex web search through DSH’s existing web search tool, and a quota indicator that shows remaining weekly usage. When automatic fallback is enabled, the plugin will switch to a compatible backup model if the current model hits a quota limit, including the hidden Luna Reserve route if instructed by OpenAI. It works with DSH’s existing tools for file system access, shell commands, MCP servers, and permissions, so users do not need to reconfigure these core features separately. It is designed for DSH users that already have a ChatGPT subscription with Codex access but do not have an OpenAI Platform API key.

dsh-codex is released under the open-source Apache 2.0 license, and targets DSH version 0.1.5-rc.2 and above, relying on the @earendil-works/pi-ai version 0.85.1 package for core functionality. It automatically migrates session data created by older versions of the plugin to the new format, so existing users do not need to manually upgrade their old session data. All model access, quota limits, and backend behavior are controlled by OpenAI and may change over time, and the Codex endpoint does not support server-side enforcement of output token limits. Filesystem, shell, and other core DSH capabilities are still provided by the active DSH profile, not this plugin.

dsh-codex 是专为 DeepSeek Harness 开发的原生模型路由插件,允许用户通过已有的 ChatGPT 订阅使用 OpenAI Codex 服务,无需 OpenAI Platform API 密钥,也不需要修改 DSH 源代码。用户可通过 npm 命令将预编译包安装到指定 DSH 配置,也支持源码检出后通过 pnpm 安装本地开发版本,适配 Web 和 TUI 两种 DSH 运行模式。

对于普通用户,安装完成后只需要在 DSH 设置的 OpenAI Codex 页面完成登录授权,就可以获取当前账号可见的所有 Codex 模型,包括支持视觉的模型和 gpt-image-2 图像生成。用户还可以配置代理、开启自动模型回退,在配额不足时自动切换到可用备用模型,适合拥有 ChatGPT 个人订阅但没有 OpenAI Platform API 密钥的 DSH 用户使用。

本插件采用 Apache 2.0 开源协议,依赖 DSH 0.1.5-rc.2 及以上版本的插件接口,依赖 @earendil-works/pi-ai 0.85.1 版本。当前版本会自动迁移旧格式的会话数据,模型访问权限、配额和后端行为由 OpenAI 控制,可能发生变动,不支持服务端强制施加输出长度限制。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-codex

把 Yan-Zero/dsh-codex 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh Codex

English | 中文

Migration guide: repair Sessions created by dsh-codex versions before 0.3.0

Use a ChatGPT subscription in 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
  • a live client-side context-window capacity override for dsh's token meter and compaction policy
  • 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 with a selectable GPT Image backend, workspace or conversation reference images, and automatic workspace output
  • browser image input through dsh's existing paste and drop controls
  • a per-conversation Fast Mode switch and compact weekly quota indicator in the Web composer
  • optional backend-authorized model recovery, including hidden Luna Reserve routing
  • a three-scope HTTP(S) proxy control for Codex-only or process-wide routing

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 selected dsh profile:

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

From a DeepSeek Harness source checkout, use pnpm dsh plugin --profile web add dsh-codex. A local plugin checkout can still be installed with link:/absolute/path/to/dsh-codex for development.

Open Settings → OpenAI Codex and choose Browser sign-in or Device code. Browser sign-in shows an authorization link; click it to open the system browser, which returns to the dsh host's localhost callback when both run on the same machine. Device code works when the browser is on another machine. The account page shows live Codex quota bars and exact remaining percentages; exact credit balances or workspace limits appear only when the account API supplies them.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-mcp-panel 下一个 Next dsh-evolve-in-git →