shaomingbo/dsh-codex-auth-bridge
shaomingbo★ 0JavaScript最后同步: 2026-08-15
—
README 摘要
dsh-codex-auth-bridge Reuse the Codex CLI's ChatGPT OAuth login in DeepSeek Harness (DSH). The package is a Host Cordis bundle . It reads Codex's auth.json , keeps the OAuth token fresh through pi-ai's native openai-codex OAuth implementation, synchronizes the access token into DSH's credential service, and configures pi-ai's built-in openai-codex model route. It does not contain, upload, or commit any token. Requirements - Node.js 22.19 or later - A DSH installation using the dsh-llm-pi-ai adapter - Codex logged in with ChatGPT ( /.codex/auth.json contains auth mode: "chatgpt" ) Install Run this on each device after logging in with Codex: The installer: 1. adds this package to /.dsh/profiles/web/package.json ; 2. adds dsh-codex-auth-bridge to that profile's dsh.profile.bundles list; 3. runs pnpm install in the profile. Restart dsh web afterward. The model picker will include the models exposed by pi-ai's installed openai-codex catalog. Use another profile or source when needed: How it works At startup, every ten minutes, and immediately before an openai-codex LLM stream: 1. read ${CODEX HOME:- /.codex}/auth.json ; 2. decode the access-token expiry; 3. refresh an expired or soon-to…
在 GitHub 查看完整 README →