songoao25/dsh-chatgpt-subscription

Bind your ChatGPT account via official OAuth and chat with ChatGPT models inside DSH, using your Plus/Pro subscription quota.

dsh-chatgpt-subscription lets you sign in with your ChatGPT account through the official OAuth flow and chat with ChatGPT models inside DSH, consuming your ChatGPT Plus/Pro subscription quota: click 授权登录 on the new 订阅 (Subscription) page in DSH Settings → your browser opens OpenAI's official authorization page → approve → bound. No API keys, no CLI, no config-file editing. Full PKCE + state flow against auth.openai.com (the same mechanism Codex CLI and OpenCode use); tokens are exchanged directly with OpenAI and the plugin never sees your password. Strict official mode: only an authorization completed through the plugin's settings page counts as bound — an existing codex CLI login is left alone. After binding, ChatGPT models (gpt-5.6-terra, gpt-5.5, gpt-5.4) appear under provider 'ChatGPT'. A token guardian auto-refreshes the access token before expiry (JWT-aware, 45-min threshold) at startup and every 30 minutes, keeping the last known good state on failure.

Models & Providers ★ 0 updated 2026-09-21
View on GitHub ↗

Install

dsh plugin --profile web add songoao25/dsh-chatgpt-subscription

GitHub/source per README (npm name dsh-chatgpt-subscription 404 verified 2026-09-04; README EN primary w/ zh edition). Option 1 (recommended): git clone https://github.com/songoao25/dsh-chatgpt-subscription.git && cd dsh-chatgpt-subscription && ./install.sh (installs to the 'web' profile; --profile <name> to override). Option 2: git clone, npm run build, then dsh plugin --profile web add . from the checkout. Restart dsh web after installing — plugins compose at host start, a page refresh alone is not enough.

Compatibility

DeepSeek Harness web UI; PKCE + state OAuth against auth.openai.com; ChatGPT Plus/Pro subscription quota consumed via the ChatGPT provider.

Details

Recent updates

Settings → 订阅 page shows bound/unbound status, token expiry and remaining time with 授权登录 / 重新授权 actions.

FAQ

Do I need an API key?
No — the plugin uses the official OAuth flow against auth.openai.com; after approving in your browser, ChatGPT models appear under provider 'ChatGPT' and consume your Plus/Pro subscription quota.
Is my existing codex CLI login reused?
No — strict official mode: only an authorization completed through this plugin's Settings page counts as bound; an existing codex login is left alone.
Why restart after install?
Plugins are composed when the host process starts — a page refresh alone is not enough for the new provider and settings page to load.

Alternatives

wss534857356/dsh-plugin-codex · nzfern/dsh-codex-auth

More plugins in Models & Providers

Browse more in Models & Providers

Guides for Models & Providers plugins