How to use dsh-codex-subscription
DSH 插件:直接复用 Codex CLI 本地登录订阅凭证,在 DeepSeek Harness 中使用 ChatGPT 订阅模型,无需 API Key | DSH plugin: reuse your Codex CLI local subscription login to use ChatGPT subscription models in DeepSeek Harness, no API key required
This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.
This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.
Quick start
DSH 插件:直接复用 Codex CLI 本地登录订阅凭证,在 DeepSeek Harness 中使用 ChatGPT 订阅模型,无需 API Key | DSH plugin: reuse your Codex CLI local subscription login to use ChatGPT subscription models in DeepSeek Harness, no API key required
— source: plugins.ai_summary
Install & verify
dsh plugin --profile web add dsh-llm-codex
Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.
— source: plugins.install
Key points
- 凭证热跟随:每次请求都重新读
auth.json,CLI 登录/换号/登出,DSH 下一次请求自动生效。 - 令牌刷新:access_token 过期(HTTP 401)时用
refresh_token走 - 模型目录:优先实时拉取
GET {base}/codex/models,失败时回退 - 协议:OpenAI Responses API(
stream: trueSSE),推理摘要、正文、工具调用分别映射为 - 本插件会读取并(在刷新时)改写
~/.codex/auth.json,与 codex CLI 行为一致;如不希望
— source: plugin_wiki.readme_en (fallback readme_raw)
Pitfalls
Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.
— source: general rule