codex oauth · Codex OAuth model connector
birat-chapagain/dsh-codex-oauth · skills
DeepSeek Harness plugin: use your OpenAI Codex (ChatGPT Plus/Pro) subscription through OAuth.
★ 5GitHub stars
0Forks
2026-08-23Last updated
TypeScriptLanguage
MITLicense
Key features
- Built on the published seam packages (@deepseek-ai/dsh-llm, @deepseek-ai/cordis) — no fork, no core change.
- The store document is written atomically with 0600 permissions under a 0700 directory, and a group/world-readable document is refused on POSIX.
- src/store.ts — FileCredentialStore, a persistent pi-ai CredentialStore with serialized read-modify-write (dsh-atomic-write).
- pi-ai's provider-owned Codex OAuth flows handle the wire protocol: browser login with a local callback server, headless device-code login, and automatic refresh under a cross-process credential-store lock.
- Tokens live in $DSH_HOME/codex-oauth.json (0600, owner-only directory), the same place the CLI bin and the harness plugin both read.
Requirements
- A ChatGPT Plus or Pro subscription.
- (A plain OpenAI platform API key does not work — subscription access is bound to your ChatGPT account, not an API key.)
Install command
dsh plugin --profile web add github:birat-chapagain/dsh-codex-oauth