dsh-codex-auth-bridge
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
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.