Introduction¶
DeepSeek Harness (DSH) invokes models by default through pre-configured model service providers. If you already have a local Codex and ChatGPT login, you typically still need to set up a separate API Key or connect to another service endpoint for DSH. This plugin offers an alternative integration path: it allows DSH to leverage models available under your current ChatGPT login through the local Codex App Server, and reads the models and reasoning tiers it provides.
Plugin Overview¶
hebokenn/dsh-codex-chatgpt is a local Codex ChatGPT app-server model adapter, categorized under “Model Inference.” It connects the model capabilities of your local Codex to DSH’s model menu, making it ideal for users who have already installed and logged into Codex and want to use the models available on their own account within DSH conversations.
Core Features¶
The plugin communicates with the model service through the local Codex App Server. Its main capabilities include:
- Reading the model list: Launches the official
codex app-server, requestsmodel/listvia standard input/output, and passes the model names, descriptions, and supported reasoning tiers returned by Codex to DSH. - Initiating conversation requests: Each model request creates a temporary Codex thread and hands over the structured conversation history stored by DSH. Conversation records and tool results remain under DSH’s management.
- Tool execution: The plugin passes DSH-provided tools to Codex as dynamic tools. When Codex requests a tool call, the plugin delegates the request back to DSH for execution; actual execution and approval follow DSH’s current permissions and workspace restrictions, and the plugin does not execute tools within Codex separately.
- Using local login: The plugin does not read or copy Codex login tokens, and does not require an API Key. Authentication and connection to the model service are handled by the Codex client according to its own mechanisms.
Installation & Activation¶
Install and activate this repository as a DSH plugin. The plugin requires Node.js 22 or higher, as well as a locally runnable Codex that is logged into ChatGPT and supports app-server. If Codex is not in a common installation location or PATH, you can specify the executable file path via the environment variable DSH_CODEX_BIN.
The default idle timeout for event waiting is 180 seconds. For long-running inference tasks, this can be adjusted as needed from 1 second to 1 hour, for example:
config:
idleTimeoutMs: 600000
This is the wait setting for this adapter within the current profile and affects requests that use it; it does not mean model calls are free, nor does it cancel account plans, budgets, or DSH’s own execution limits. After adjusting plugin configuration, the plugin must be reloaded for changes to take effect.
How to Use¶
- Select a model under the Codex · ChatGPT Login group in the DSH model menu.
- If the model supports reasoning tiers, select the appropriate tier in DSH.
- Interact in DSH conversations as usual; tools and approvals are still handled by DSH.
You need to have a Codex installation that supports app-server on your local machine and be logged into ChatGPT. The plugin does not include Codex, nor does it provide account or model quotas.
Privacy & Permission Boundaries¶
- The plugin communicates via the local Codex App Server and does not connect directly to third-party model gateways; however, conversation content is still sent to the model service by Codex according to its official client mechanisms. Please use in accordance with Codex / ChatGPT’s data handling policies.
- Codex reads and refreshes the existing ChatGPT login on its own; the plugin strips common OpenAI / Codex API Key and custom gateway environment variables passed to child processes, to prevent them from being accidentally used as credentials for this channel.
- DSH continues to store conversations, execute tools, and control approvals. The plugin explicitly sends configuration to the Codex App Server to disable native capabilities such as file/command execution, MCP, skills, and sub-agents; the model uses dynamic tools passed in by DSH, and tool calls are delegated back to DSH. Because these toggles rely on Codex’s experimental interfaces, the absence of dynamic tools should not be taken alone as proof that all Codex native tools have been disabled.
- Diagnostic files are located at
~/.dsh/codex-chatgpt/.usage.jsonlstores the selected model, reasoning tier, results, tool call counts, and token usage returned by the service (if any);transport.jsonlstores RPC stages, durations, event counts, timeouts, and process exit metadata. They do not store prompts, conversation content, reasoning text, tool parameters, stderr, or credentials. Token usage is not a ChatGPT quota percentage; when the service does not return usage data, it remains unknown.
Known Limitations¶
- Available models and reasoning tiers depend on your local Codex login and current account permissions; their appearance in the list does not guarantee that actual calls will succeed.
- The plugin relies on Codex App Server’s experimental interfaces. Adaptation may be needed after Codex or DSH upgrades.
- Each model request launches the local app-server and establishes a temporary thread, which may incur additional startup overhead compared to a persistent connection; the full conversation history is still retained by DSH.
- Local testing uses a mock app-server and does not invoke real models:
node --test test/*.test.mjs.
Use Cases & Precautions¶
This plugin is suitable for developers who already use Codex locally and want to access ChatGPT model capabilities without changing their DSH configuration. Before use, ensure the following:
- Codex is installed and logged into ChatGPT on your local machine, and supports the
app-serverfeature. - Node.js version is 22 or higher.
- The plugin runs with the current DSH process permissions; review the source code and license before installation.
Ecosystem Context¶
The DSH philosophy is “everything is a plugin”; the community catalog is an independent site with no official affiliation to DeepSeek / High-Flyer.
Conclusion¶
The hebokenn/dsh-codex-chatgpt plugin provides DSH with the ability to access ChatGPT models through local Codex, without requiring additional API Key configuration, while maintaining DSH’s control over conversation history, tool execution, and approvals. It does not display or add subscription quotas; all authentication and model service communication are handled by the Codex client according to its own mechanisms.
- Catalog page: https://www.skillhub.cn/plugins/hebokenn/dsh-codex-chatgpt
- GitHub: https://github.com/hebokenn/dsh-codex-chatgpt