sudipnext/dsh-chatgpt-codex

sudipnext★ 0TypeScriptLast synced: 2026-08-16

Open on GitHub

ChatGPT OAuth and Codex models for DeepSeek Harness — browser callback, device code, no API key, no pi-ai

README excerpt

dsh-chatgpt-codex 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 next API ( 0.1.0-rc.6 or newer). Features - ChatGPT browser OAuth with PKCE, a strict state check, and a localhost callback - ChatGPT device-code OAuth for SSH, containers, and headless machines - Automatic access-token refresh with in-process and cross-process rotation locks - Owner-only atomic credential storage under $DSH HOME - Native openai-codex DSH model provider—no pi-ai adapter - Official OpenAI JavaScript SDK for the Codex Responses transport - Streaming text, reasoning summaries, function calls, images, usage, and finish reasons - Encrypt…

View full README on GitHub →
Agentsagent-harnessai-agentschatgptchatgpt-oauthcodexcodex-authcoding-agentdeepseek

Category