auggie246/dsh-llm-openai-codex0

dsh-llm-openai-codex

OpenAI Codex (ChatGPT Plus/Pro subscription) provider for DeepSeek Harness with DSH Web OAuth, device code, and shared Codex CLI credentials

AI 分析

核心用途是让 DSH 能够调用 ChatGPT Plus/Pro 订阅的 Codex 服务。适合拥有相关订阅、需要在 DSH 中使用该模型的用户。

パッケージ
dsh-llm-openai-codex
バージョン
0.3.0
ライセンス
MIT
最終更新
2026/09/05

インストール

$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.json or $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.