dsh-codex-native
开发工具 活跃维护

dsh-codex-native

Tests4gptplay/dsh-codex-native

社区模型适配器,基于官方OpenAI Codex应用服务器,复用原生ChatGPT登录,免去额外认证流程,直接接入自定义模型。安装简单,登录即用,体验与原生Codex一致。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
2 MB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Tests4gptplay/dsh-codex-native
git clone https://github.com/Tests4gptplay/dsh-codex-native.git
git clone git@github.com:Tests4gptplay/dsh-codex-native.git
README.md main

DSH Codex Native

An OpenAI Codex app-server main-model integration for DeepSeek Harness. Use ChatGPT sign-in, DSH tools, native Codex model settings and an on-demand Token usage history panel.

简体中文 · Releases · Installation guide · Release verification

Latest release — v0.2.1-alpha.9-http.10

New Codex processes resolve the official npm @openai/codex@latest channel and download the platform runtime when needed. Existing processes keep running; subsequent processes use the updated executable. An unavailable update retains the usable runtime and logs the reason. Updates are demand-driven, with no background polling.

The DSH model selector now reads the official Codex App Server model/list catalog on each model-list request, automatically reflecting newly available models, names, input capabilities and reasoning efforts when refreshed. Existing account sign-in and settings are preserved.

Embedded codex_computer_use_recovery provides guide, status, repair, release, and rollback. Patch bytes, exact-path process recovery and troubleshooting instructions ship in the plugin; no external BAT, PS1 or Python dependency is required.

The full guide loads only with the Computer Use skill body or an explicit guide call, not in the standing system prompt. It distinguishes native FrameArrived timeouts, file locks, transport failures, stale handles and intentional Esc cancellation. The Windows 10 patch accepts only the verified @oai/sky 0.7.13 binary and requires agreement to invalidating its signature. Release requires permission to interrupt the selected screenshot helper; it does not terminate DSH, Codex or parent processes.

Included features

Release and downloads · Context accounting details

  • Native questions and notifications: Codex questions use DSH's selectable question cards and native notifications, including free-text answers.

  • Automatic chat replies: submitted answers return to the active task and appear as ordinary user messages, with a single submission and no extra send step.

  • Host version compatibility: plugin peer dependencies use host-provided DSH modules without version-range gating.

  • Direct HTTP connection: the OpenAI route uses authenticated HTTP with existing ChatGPT sign-in, reducing reconnect waits after WebSocket interruptions.

  • On-demand skill discovery: DSH searches local and remote connector skills and reads selected instructions. Startup carries a compact discovery hint, with a 10,000-token skill budget.

  • Session warning deduplication: identical configuration, deprecation, and ordinary warnings appear once per session; changed notices and errors remain visible.

  • Context management: Codex manages routine context compaction, with DSH's overflow recovery available for exceptional cases.

  • Accurate usage accounting: total token consumption is tracked independently from the latest active context-window sample; delayed reports are reconciled with completed responses.

  • Connection stability: retains the transport recovery and account lifecycle improvements from alpha.6 and alpha.7.

  • Manual Token history: query account usage, review dated totals and reference periods, and clear the displayed table.

  • Main-model integration: official Codex app-server, ChatGPT sign-in, DSH tools and model settings.

  • Installed-plugin identity: ChatGPT authentication-channel icon and bilingual plugin-manager descriptions are included in the installable package.

Installation

github:Tests4gptplay/dsh-codex-native#v0.2.1-alpha.9-http.10

In Desktop, open Plugins → Add plugin, paste the fixed-version source above, and enable it. For Web:

dsh plugin --profile web add 'github:Tests4gptplay/dsh-codex-native#v0.2.1-alpha.9-http.10'

The fixed tag includes prebuilt runtime files. Upgrades retain existing configuration and sign-in. The installation guide covers login and the alternative TGZ package.

On-demand skill discovery

Version 0.2.1-alpha.9-http.10 provides codex_skill_search and codex_skill_read through DSH: models search summaries, then read the skills they need. The catalog covers local files and installed remote connector skills, preferring connectors for duplicate entries from the same plugin while retaining independently authored local skills. Both HTTP and local DSH models can use these tools.

The default skillsMode: dsh replaces Codex's automatic skill catalog injection with these discovery tools. skillsMaxContextTokens: 10000 selects the maximum native budget. Metadata is cached by working directory; use refresh: true after changing skills or plugins. skillsMode: native selects the native catalog. These settings apply to plugin-owned processes and retain existing authentication, connectors, and native tools.

Token usage panel

The history panel queries official Codex account data when Query is clicked. The header shows the returned daily-row total, while a separate value identifies the official lifetime total. The cycle grouping uses dated public reset announcements from codex-reset.com as reference information.

Clear resets the displayed table; Query retrieves it again. The panel uses DSH interface primitives and respects the active theme.

Real Desktop screenshot

Anonymized real DSH Desktop Token history panel

User-confirmed alpha.5 Desktop history view, with a fictional account label substituted before publication. Screenshot provenance · Light example · Dark example

The market screenshot order is defined in screenshots.json.

Verification and engineering notes

The http.7 update passed the build and 16 focused tests, including native file replacement and rollback. On Windows 10 build 19045, the installed recovery tool released the selected helper, reconnected and captured the live DSH window in approximately 0.4 seconds.

The http.6 question update passed 33 focused tests and the build. Native selection, automatic answer delivery, and visible chat receipts were confirmed in a live DSH session. Both compiled bundles retain the accepted installed runtime bytes.

The http.4 compatibility update passed Windows 209/209 plugin tests and Ubuntu 208 passed / one platform skip. Final packaged-runtime tests passed 28/28 on both platforms. Compatibility update CI.

The alpha.9 candidate passed Windows 191/191 plugin tests and Ubuntu 190 passed / one platform skip. The final packaged-runtime suite passed 28/28; the patched DSH host build, fresh installation, authenticated Web startup, and fixed-tag installation passed.

Candidate CI · Publication CI · Technical audit · Account lifecycle repair · Transport repair

License and attribution

Windows 10 MTA-dispatch patch reference: chen0416ccc-cpu/codex-windows-fast-patch-skill. The bundled profile adapts the reference regions to the tested @oai/sky 0.7.13 binary.

Community integration based on MIT-licensed wss534857356/dsh-plugin-codex, baseline f1f61886f4defcf7294d63c3641fba01ee554e7b. Original attribution is retained in LICENSE. DeepSeek Harness is developed by DeepSeek; Codex is developed by OpenAI. Public reset-date data is credited to codex-reset.com. The ChatGPT icon uses Lobe Icons artwork; its MIT license is bundled in assets/LOBE-ICONS-LICENSE.txt.

支持项目 / Support

GitHub Sponsors · Ko-fi · Patreon · 爱发电 / Afdian · 支付宝 / Alipay