AI Agent Hub
Back to plugins
🖥️

dsh-codex-auth-bridge

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install shaomingbo/dsh-codex-auth-bridge

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install shaomingbo/dsh-codex-auth-bridge in your DeepSeek Harness terminal to install this plugin, source at https://github.com/shaomingbo/dsh-codex-auth-bridge

About this plugin

If you have already completed a ChatGPT login in Codex CLI and want to call openai-codex models from DeepSeek Harness without re-running an OAuth flow, dsh-codex-auth-bridge removes that redundant step. It attaches to a DSH profile as a Host Cordis bundle, reads Codex auth.json at startup, every ten minutes, and immediately before each openai-codex streaming request. When the access token is expired or about to expire, it refreshes through pi-ai's native openai-codex OAuth implementation, atomically writes the rotated tokens back to auth.json, and synchronizes the current token into DSH's credential service.

No token value is ever uploaded, committed, or logged. A compare-before-write guard prevents a stale refresh from overwriting a newer one if Codex refreshes concurrently. The model route reuses pi-ai's built-in openai-codex-responses transport rather than treating the ChatGPT backend as a generic OpenAI endpoint, preserving protocol fidelity.

Ideal for users who have completed a Codex ChatGPT login and want DSH to expose the full openai-codex model catalog with zero extra token management. After installing and restarting dsh web, the model picker immediately lists every model in pi-ai's installed openai-codex catalog, ready to use.

Use Cases

  • Reuse Codex-logged-in ChatGPT models in DSH without repeating an OAuth flow
  • Detect and refresh near-expiry access tokens, atomically write back to auth.json, and sync into DSH credential service
  • After install and restart, the model picker immediately exposes pi-ai's full openai-codex catalog

Best For

  • Developers who have completed ChatGPT login via Codex CLI
  • Users running DSH with the dsh-llm-pi-ai adapter
  • Users who want to invoke openai-codex models without manual token management