@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 用户。
インストール
$
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-codexGPT 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:
| Option | Default | Purpose |
|---|---|---|
path | $DSH_HOME/codex-oauth.json | Host-side OAuth credential file. |
preferencesPath | $DSH_HOME/codex-oauth-preferences.json | Model visibility and feature toggles. If path is overridden, this defaults to the same directory. |
issuer | https://auth.openai.com | OAuth issuer; override only when using a gateway or running tests. |
usageUrl | https://chatgpt.com/backend-api/wham/usage | Subscription usage endpoint. |
controlPort | 1456 | Loopback login and status service. |
redirectPort | 1455 | Loopback browser OAuth callback. |
Search model | gpt-5.4 | Model 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.