auggie246/dsh-llm-openai-codex ↗★ 0
dsh-llm-openai-codex
适用于 DSH 的 OpenAI Codex 服务商插件,支持 Web OAuth、设备码及共享 Codex CLI 凭据登录。
AI 分析
核心用途是让 DSH 能够调用 ChatGPT Plus/Pro 订阅的 Codex 服务。适合拥有相关订阅、需要在 DSH 中使用该模型的用户。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:auggie246/dsh-llm-openai-codex說明文件
閱讀完整 README ↗Credentials and configuration
The Settings card supports two credential sources.
- DSH-managed stores credentials at
$DSH_HOME/credentials/openai-codex.json. - Shared Codex CLI reads
~/.codex/auth.jsonor$CODEX_HOME/auth.json.
DSH-managed credentials are the default for a new installation.
Use Connect ChatGPT in browser to create them.
DSH receives the OAuth callback at http://localhost:1455/auth/callback.
Use Use device code when the callback port is busy or the browser is remote.
For the shared Codex CLI source, sign in through the Codex CLI with ChatGPT. The shared source is read-only for interactive DSH login. The plugin never starts an OAuth login that can replace the Codex CLI file. The plugin refreshes the shared token pair safely when necessary. The plugin never deletes the shared Codex CLI credential file.
Every plugin configuration key is optional.
- insert:
- id: llm-openai-codex
name: 'dsh-llm-openai-codex'
config:
route: openai-codex
displayName: OpenAI Codex
storage: dsh
# authPath: ~/.codex/auth.json
refreshMarginMs: 60000
streamIdleTimeoutMs: 300000
reasoning: medium
models: [gpt-5.4, gpt-5.4-mini]
retryPolicy: { mode: normal, maxRetries: 2 }
authPath pins the credential file and disables the Settings source selector.
route changes the provider prefix shown in model pickers.
Changing route can conflict with another plugin that owns the same route.