@wnjxyk/dsh-codex-oauth
统一接入OpenAI Codex订阅服务,支持配额与搜索 适合拥有Codex订阅、需要使用其GPT模型、图像生成及联网搜索功能的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WNJXYK/dsh-codex-oauth说明文档
阅读完整 README ↗⚙️ Detailed configuration
No configuration is normally required. Available options are:
| Option | Default | Description |
|---|---|---|
dshHome | DSH Home | Custom DSH home directory used to resolve default file paths. |
path | $DSH_HOME/codex-oauth.json | Host-side OAuth credential file. |
preferencesPath | $DSH_HOME/codex-oauth-preferences.json | Model visibility and feature switches; defaults beside path when it is overridden. |
issuer | https://auth.openai.com | OAuth issuer; override only for gateways or tests. |
usageUrl | https://chatgpt.com/backend-api/wham/usage | Subscription usage endpoint. |
controlPort | 1456 | Loopback login, status, and preference service. |
redirectPort | 1455 | Loopback browser OAuth callback. |
Search model | gpt-5.6-sol | Model used by hosted web search, aligned with the default Codex Power configuration. |
Example Cordis configuration:
- insert:
- id: dsh-codex-oauth
name: "@wnjxyk/dsh-codex-oauth"
config:
dshHome: /data/dsh
path: /secure/codex-oauth.json
preferencesPath: /secure/codex-oauth-preferences.json
issuer: https://auth.openai.com
usageUrl: https://chatgpt.com/backend-api/wham/usage
controlPort: 1456
redirectPort: 1455
- id: codex-web-search
name: "@wnjxyk/dsh-codex-oauth/web-search"
config:
model: gpt-5.6-sol
Web search and image-generation orchestration both default to the Codex Power model gpt-5.6-sol; images are rendered by the hosted GPT Image (image_generation) tool; chat models are discovered dynamically from the openai-codex model provider supplied by DSH's built-in llm-pi-ai plugin.