Preface¶
In DSH’s plugin mechanism, providers can be extended as plugins. If you have a ChatGPT subscription and wish to use Gpt series models in DSH sessions, @eddyskywalker/dsh-chatgpt-subscription provides an integration path. Below, we introduce its positioning, core capabilities, installation and activation methods, and the credential storage boundaries to be aware of.
What It Is¶
@eddyskywalker/dsh-chatgpt-subscription is a DSH plugin that registers the codex-chatgpt provider, displayed as Codex (ChatGPT Subscription). It enables DSH to access Gpt series models using the current host user’s ChatGPT OAuth login state, and provides supporting capabilities around login, quota, search, image generation, settings page, and sub-agent configuration.
The npm package author is eddyskywalker, and the GitHub repository is:
https://github.com/Aa728848/dsh-chatgpt-subscription
License information is not provided in the documentation. Before installation, it is recommended to review the source code and repository license.
Core Capabilities¶
Login and Credentials¶
The plugin uses Authorization Code + PKCE (S256) for login, completed via a one-time localhost callback. It supports token refresh, login cancellation, and account logout.
Regarding credential handling:
- Windows uses CurrentUser DPAPI for encrypted token storage;
- Linux uses a
0600file exclusive to the current user; - Tokens do not enter the browser,
settings.yaml, or logs; - OAuth tokens are only sent to
https://auth.openai.com/oauth/token; - Model, image, search, and quota addresses are fixed, with no endpoint override.
Model Integration¶
The plugin fixes the Codex Responses address, supporting streaming text, reasoning summaries, image input, and tool calls/results. It forwards DSH tool schemas as-is and is compatible with pwsh, powershell, bash, sh, and shell.
For error handling, 429/5xx errors are handled by DSH’s retry policy; 401 errors trigger a forced refresh and a single retry, with support for AbortSignal.
The model catalog includes:
gpt-5.6-sol
gpt-5.6-terra
gpt-5.6-luna
gpt-5.5
gpt-5.4
gpt-5.4-mini
gpt-5.3-codex-spark
Among these, 5.6 Sol, Terra, and Luna default to 272K effective context, with options to select up to 1M in settings. The actual models available on an account are still determined by the ChatGPT plan, workspace policy, and upstream compatibility status.
Settings, Search, and Images¶
The settings page displays a redacted email, plan, last four digits of the account ID, connection status, quota, and subscription enhancement feature toggles.
The plugin also provides the following capabilities:
- A Codex search provider on the ChatGPT subscription side, allowing users to switch between DSH default search or Codex subscription search in the settings page;
- A
codex_image_generatetool that generates images and saves them via the DSH attachment system for rendering in the conversation; - An optional composer quick-usage badge, showing the remaining quota for the most constrained window based on the current
codex-chatgptmodel.
Sub-Agents¶
The plugin provides a dedicated sub-agent settings page. This page allows global selection of any provider/model and configuration of thinking depth, sub-agent context, maximum nesting depth, and sub-agent count limit.
Environment Requirements¶
The environment requirements are:
- Windows or Linux;
- DSH installed;
- Node.js and npm;
- Windows requires Windows PowerShell for CurrentUser DPAPI usage;
- Linux requires the host user to have a writable
~/.dshor$DSH_HOME, with credential files using0600permissions and directories using0700permissions.
Linux credential files have no application-layer encryption and rely on file and directory permissions for isolation; do not copy, print, or submit this file. Windows credential files can only be decrypted by the user who created them via DPAPI.
Installation¶
Via DSH CLI¶
If dsh is installed globally, you can run:
dsh plugin --profile web add @eddyskywalker/dsh-chatgpt-subscription
Alternatively, you can use npx:
npx @deepseek-ai/dsh plugin --profile web add @eddyskywalker/dsh-chatgpt-subscription
Via DSH Plugin Marketplace¶
- Open the plugin marketplace in the DSH interface.
- Search for
@eddyskywalker/dsh-chatgpt-subscriptionordsh-chatgpt-subscription. - Click install.
Local Source Debugging¶
To debug from source, you can clone the repository and build:
git clone https://github.com/Aa728848/dsh-chatgpt-subscription.git
cd dsh-chatgpt-subscription
npm install
npm run build
After building, add the local link path to DSH via npx.
Activation¶
After installation, follow these steps to activate:
- Restart
dsh web. - Open
Settings → Codex Subscription. - Complete ChatGPT login.
- Perform
Test Connection. - Select
Codex (ChatGPT Subscription)in the model selector. - If you need to adjust sub-agents, open the dedicated sub-agent settings page and configure sub-agent models, thinking depth, sub-agent context, maximum nesting depth, and count limit.
Route Interface¶
The plugin routes are prefixed with /api/dsh-chatgpt-subscription, providing status, login, logout, refresh, test connection, and preference update interfaces.
Uninstallation and Credential Cleanup¶
Before uninstalling, it is recommended to click Logout in the settings page. This operation will delete the credentials for the current platform and the quota cache in host memory.
Use Cases and Considerations¶
This plugin is suitable for developers who already have a ChatGPT subscription and wish to integrate Gpt series models into DSH. Note the following:
- The plugin runs with the permissions of the current DSH process and accesses models using the current host user’s ChatGPT OAuth login state; before installation, it is recommended to review the source code and repository license.
- Linux credential files have no application-layer encryption and rely on
0600file and0700directory permissions for isolation; do not copy, print, or submit this file. - Windows credential files can only be decrypted by the user who created them via DPAPI.
- The actual models available on an account are determined by the ChatGPT plan, workspace policy, and upstream compatibility status.
Conclusion¶
This plugin streamlines the process of integrating ChatGPT subscription into DSH into installation, login, test connection, provider selection, and maintaining search, quota, and sub-agent configuration in the settings page. The repository address is:
https://github.com/Aa728848/dsh-chatgpt-subscription