Hu9956/dsh-codex-provider
OpenAI Codex provider for DeepSeek Harness with device-code OAuth, Codex CLI import, token refresh, and a web
An OpenAI Codex provider for DeepSeek Harness that authenticates using the device-code OAuth flow from the Codex CLI: run codex login once, and this plugin reads the resulting auth token from ~/.codex/auth.json to make ChatGPT subscription models available as a DSH LLM provider. It handles token refresh automatically, imports existing Codex CLI session state, and registers the Codex models (gpt-5.6-sol and others) in the DSH model picker alongside your standard providers.
Install
dsh plugin --profile web add dsh-codex-providerdsh plugin --profile web add dsh-codex-provider (npm dsh-codex-provider 0.1.0, repo Hu9956/dsh-codex-provider, verified npm 2026-08-30). Requires a Codex CLI installation with an active ChatGPT subscription — run codex login before enabling this provider.
Compatibility
DSH web profile; requires Codex CLI and a ChatGPT subscription; device-code OAuth flow; auto token-refresh; imports existing Codex CLI credentials; MIT.
Details
- Repo: Hu9956/dsh-codex-provider
- Category: Coding & Development
- Stars: 8
- Version: npm dsh-codex-provider 0.1.0
- Last push: 2026-08-13
- First seen: 2026-08-13
Recent updates
Codex CLI device-code OAuth; reads ~/.codex/auth.json; auto token refresh; Codex models in DSH model picker; imports existing Codex CLI session state.
FAQ
- How does it differ from yequ172672/dsh-llm-codex?
- Both read ~/.codex/auth.json from Codex CLI, but this plugin (dsh-codex-provider) also handles device-code OAuth initiation and token-refresh as a first-class flow, while dsh-llm-codex focuses on the subscription model adapter only.
- Which ChatGPT models are available?
- Any model accessible through your ChatGPT subscription — gpt-5.6-sol is the primary target; the exact set depends on your Plus/Pro plan.
- What happens to the token when it expires?
- The plugin auto-refreshes the token using the refresh-token from ~/.codex/auth.json; a manual re-login via codex login is only needed if the refresh token itself has expired.
Alternatives
yequ172672/dsh-codex-subscription · WNJXYK/dsh-codex-oauth · Player-MINEPIG/dsh-llm-codex-oauth