rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:sudipnext/dsh-chatgpt-codex
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Use your ChatGPT account and Codex models inside DeepSeek Harness. This standalone DSH plugin supports both a localhost browser callback and headless device-code authentication, refreshes OAuth tokens automatically, and streams Codex Responses into the native DSH message/tool protocol.
No OpenAI API key. No pi-ai runtime dependency.
[!IMPORTANT] DeepSeek Harness does not currently ship ChatGPT/Codex OAuth for its main model route. It has a Codex subagent launcher that reuses the official Codex app's login, but that is a separate one-shot delegation path. This plugin fills the main-model gap and targets the current DSH
nextAPI (0.1.0-rc.6or newer).
$DSH_HOMEopenai-codex DSH model provider—no pi-ai adapterThe repository commits its built artifacts, so GitHub installation does not run a dependency prepare script.
Browser callback (recommended on a desktop):
pnpm dlx github:sudipnext/dsh-chatgpt-codex#v0.1.0 login
Device code (recommended over SSH or in a container):
pnpm dlx github:sudipnext/dsh-chatgpt-codex#v0.1.0 login --device
The default credential file is $DSH_HOME/chatgpt-codex/auth.json, or ~/.dsh/chatgpt-codex/auth.json when DSH_HOME is unset.
dsh plugin --profile codex add github:sudipnext/dsh-chatgpt-codex#v0.1.0
dsh --profile codex
The bundle registers openai-codex and selects gpt-5.6-luna as the profile's default model. A later profile patch can choose another model.
# Browser callback without automatically opening a browser
dsh-chatgpt-codex login --no-open
# Device authorization; the code expires after 15 minutes
dsh-chatgpt-codex login --device
# Safe status output never prints tokens
dsh-chatgpt-codex status
dsh-chatgpt-codex status --json
# Rotate the access token immediately
dsh-chatgpt-codex refresh
# Remove local credentials
dsh-chatgpt-codex logout
For a GitHub-only installation, prefix these commands with pnpm dlx github:sudipnext/dsh-chatgpt-codex#v0.1.0.
Override the plugin row in the profile's $DSH_HOME/profiles/<name>/cordis.patch.yml:
- id: llm-chatgpt-codex
config:
defaultReasoningEffort: high
textVerbosity: low
requestTimeoutMs: 300000
- id: agent-default-model
config:
provider: openai-codex
model: gpt-5.6-terra
Available plugin settings:
| Setting | Default | Purpose |
|---|---|---|
authFile |
$DSH_HOME/chatgpt-codex/auth.json |
OAuth credential document |
issuer |
https://auth.openai.com |
OAuth issuer, primarily for compatible deployments/tests |
baseURL |
https://chatgpt.com/backend-api/codex |
Codex Responses base URL |
originator |
dsh-chatgpt-codex |
Honest product identity sent upstream |
models |
Current bundled catalog | Advisory DSH model picker entries |
defaultReasoningEffort |
high |
low, medium, high, xhigh, or max |
textVerbosity |
low |
low, medium, or high |
requestTimeoutMs |
300000 |
Provider request timeout |
The model catalog is advisory. Actual model availability depends on the signed-in ChatGPT plan, workspace policy, region, and current OpenAI rollout.
DeepSeek Harness's general llm-pi-ai adapter intentionally does not expose OAuth-only providers because it has no credential store or login lifecycle. This project owns the missing lifecycle directly:
AuthManager stores and rotates the OAuth token set.CodexAdapter converts native DSH history/tools to stateless Responses input.openai SDK carries the HTTPS/SSE transport.See Architecture for the exact components and trust boundaries.
127.0.0.1 and closes after one result.0600 on POSIX; parent storage uses 0700.~/.codex/auth.json, avoiding refresh-token rotation races with the official Codex client.Read SECURITY.md before reporting a vulnerability. logout removes local credentials but does not revoke the OpenAI session remotely.
This is an independent community plugin, not an official OpenAI or DeepSeek project. Both Codex's private ChatGPT backend and pre-release DSH APIs can change. The repository pins behavior with keyless OAuth, wire, replay, and storage tests; releases describe any required migration.
Using ChatGPT/Codex remains subject to your OpenAI account terms and workspace policy. A ChatGPT subscription does not guarantee every catalog model.
pnpm install
pnpm run check
The test suite uses local HTTP servers and synthetic JWTs; it does not require or read real ChatGPT credentials.
MIT © 2026 sudipnext
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek、openai、deepseek-harness、openai-codex。