WNJXYK/dsh-codex-oauth0

@wnjxyk/dsh-codex-oauth

Unified OpenAI Codex subscription plugin for DeepSeek Harness: GPT models, OAuth, quota, image generation, and web search.

AI 分析

集成 GPT 模型、OAuth 认证、配额及图像生成和搜索功能。适合需要统一管理和调用 OpenAI 订阅服务的 DSH 用户。

パッケージ
@wnjxyk/dsh-codex-oauth
バージョン
0.4.0
ライセンス
MIT
最終更新
2026/08/15

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WNJXYK/dsh-codex-oauth

ドキュメント

README 全文を読む ↗

Usage

  • Chat with GPT or inspect images: select an openai-codex GPT model in the DSH model picker, then start a conversation or attach an image.
  • Generate an image: ask the model to generate, draw, or render an image. It can call generate_image; the result is saved as a DSH attachment and displayed in the tool card.
  • Search the web: ask for current information or request sources. DSH calls its native web_search, while the plugin supplies GPT search results and citations.
  • Manage available capabilities: hide models you do not use or disable image generation and web search from the subscription panel. At least one GPT model must remain visible.

Image generation supports 1024x1024, 1536x1024, and 1024x1536; quality can be low, medium, or high, and the background can be auto or opaque.

Configuration

No configuration is normally required. The bundled defaults are:

OptionDefaultPurpose
path$DSH_HOME/codex-oauth.jsonHost-side OAuth credential file.
preferencesPath$DSH_HOME/codex-oauth-preferences.jsonModel visibility and feature toggles. If path is overridden, this defaults to the same directory.
issuerhttps://auth.openai.comOAuth issuer; override only when using a gateway or running tests.
usageUrlhttps://chatgpt.com/backend-api/wham/usageSubscription usage endpoint.
controlPort1456Loopback login and status service.
redirectPort1455Loopback browser OAuth callback.
Search modelgpt-5.4Model used by hosted web search.

Example Cordis entry overrides:

- insert:
    - id: dsh-codex-oauth
      name: "@wnjxyk/dsh-codex-oauth"
      config:
        path: /secure/codex-oauth.json
        preferencesPath: /secure/codex-oauth-preferences.json
        controlPort: 1456
        redirectPort: 1455

    - id: codex-web-search
      name: "@wnjxyk/dsh-codex-oauth/web-search"
      config:
        model: gpt-5.4

The image tool currently uses gpt-5.4. Chat models are discovered dynamically from DSH's built-in provider rather than hard-coded by this plugin.