Introduction¶
When using an OpenAI Codex subscription in DeepSeek Harness (DSH), the common practice is to maintain a separate set of LLM adapters or extra credential stores, and then manually configure the provider in Models. DSH 0.2.x already ships with official ChatGPT login and OAuth flows via the @deepseek-ai/dsh-llm-pi-ai adapter, but a unified entry point is still needed for login, logout, and adding openai-codex to the model configuration.
dsh-codex-account (Maintainer: yoggu, Community Category: Model Inference) provides an account card under Plugins → Codex Account: sign in, cancel ongoing authorizations, sign out, and add the openai-codex provider to Models when necessary, eliminating the need to install a separate LLM adapter or build a custom credential store.
What is this¶
The plugin’s full name is dsh-codex-account, and the current release version is v0.2.0 (MIT License). It does not implement OAuth for DSH; instead, it calls the Harness’s built-in services such as authorization and credentials. Combined with the enabled llm-pi-ai adapter, it manages a single ChatGPT login under the adapter’s name; the credential key is fixed as llm-pi-ai/openai-codex.
The account card and Codex icon appear only on the Plugins page and will not appear in the Settings dialog. Interface text supports English and German.
Core Features¶
The following capabilities are derived from the plugin README and implementation notes, and can be used as a reference as needed.
Login & Provider Configuration¶
- In Plugins → Codex Account, click Sign in with ChatGPT and complete the flow according to the OpenAI authorization page and adapter prompts; the card will update its status while authorization is in progress, and Cancel sign-in can abort attempts that have not yet completed.
- Upon successful authorization, if the configuration does not already contain the entry, the plugin will append
llm-pi-ai.providers.openai-codex: {}without modifying existing provider configurations. - If a login is already saved locally but
openai-codexis missing in Models, the card will display Add to Models; if the login succeeds but writing the configuration fails, the login is preserved and repairs are allowed without needing to re-run OAuth. - Select the
openai-codexmodel in DSH’s Models to use it; the plugin will not change the model selected in the current session, nor will it proxy model requests.
Logout¶
Sign out only deletes the locally saved llm-pi-ai/openai-codex grant; Models configuration and other credentials are retained, and it is not a global ChatGPT logout. When authorization or provider configuration operations are in progress, account-related changes will be blocked.
Security & Credential Ownership¶
OAuth and credential records are held by the llm-pi-ai adapter released with DSH. This plugin only initiates the flow via the authorization service and only checks for the existence of credentials; it does not read, copy, import, or return grant contents. Upon logout, it calls the credential service’s deleteRecord for the fixed key.
The frontend communicates via the DSH authenticated /api/dsh-codex-account channel; external links are restricted to HTTPS OpenAI/ChatGPT domains. Access to DSH and the Plugins page should be treated as sensitive account management; do not share authorization codes, tokens, login URLs, or credential files.
Environment & Installation¶
Requirements¶
- Node.js 22.19.0 or newer.
- DSH 0.2.x, with the
@deepseek-ai/dsh-llm-pi-aiadapter released with DSH enabled, and services such as authorization, credentials, configuration editor, and authenticated connection available. - Access to the ChatGPT account you wish to authorize; specific available models depend on that account and the adapter directory.
The plugin runs with the permissions of the current DSH process; it is recommended to review the repository source code and LICENSE before installation to ensure it meets your security policies.
Installation¶
Install from a specified GitHub tag (if the profile actually used is not web, replace the profile in the command with yours):
dsh plugin --profile web add 'https://github.com/yoggu/dsh-codex-account.git#v0.2.0'
You can also clone and link a local directory (the checkout must persist; the README contains a git clone example, so the clone steps are not repeated here). The package includes a client bundle; no build or additional installation of private pi-ai dependencies is required.
Restart DSH and refresh your browser after replacing an installed version.
To uninstall the account UI (will not automatically log out or delete provider / old account data; if you need to clear the local ChatGPT login, please Sign out first):
dsh plugin --profile web remove dsh-codex-account
Typical Usage¶
After the installation and restart described above, follow the order below to reproduce the flow in the README:
- Open Plugins → Codex Account, click Sign in with ChatGPT, and complete the authorization.
- Confirm that
openai-codexappears in Models (click Add to Models if necessary). - Select the
openai-codexmodel in a session for inference.
Simply enabling the plugin will not automatically start authorization, nor will it modify provider configurations.
Migration from Old Plugins¶
From dsh-codex-sign-in¶
This plugin is the renamed successor to that package. Login/logout, provider repair, card, and icon behaviors are consistent, and the credential key is unchanged, so no re-login is required. After installing dsh-codex-account and confirming the card works normally:
dsh plugin --profile web remove dsh-codex-sign-in
Refresh your browser. The module name is now dsh-codex-account, the bundle entry ID is codex-account, and the API is /api/dsh-codex-account.
From dsh-codex-account 0.1.x¶
v0.2.0 no longer provides the custom multi-account LLM adapter found in 0.1.x; it has been changed to manage a single ChatGPT login released with DSH. Old accounts configurations, custom codex-personal / codex-business routes, /codex commands, local login CLIs, Codex CLI imports, and account/token detail displays have all been removed.
- Delete overrides containing
accounts,models,transport, etc., in the oldid: codex-account; the new bundle does not need account configuration. - New requests should go through the
openai-codexreleased with DSH; sessions still bound to old custom routes may need to reselect models. - 0.1.x logins will not automatically import into the adapter released with DSH; if there is no corresponding credential, you need to log in again on the new card.
- Legacy
$DSH_HOME/codex-accounts.jsonand~/.codex/auth.jsonfiles will not be read or deleted; please keep them secure if you retain them.
Use Cases & Notes¶
Suitable for: Developers already using the pi-ai adapter released with DSH 0.2.x, who wish to drive Codex models using a ChatGPT subscription, and want to centralize login/logout and provider completion within Plugins.
Notes:
- Uninstalling this plugin will not log out of ChatGPT or remove the provider configuration in Models.
- The community plugin directory skillhub.cn is an independent site and has no official affiliation with DeepSeek / High-Flyer; responsibility for installation and credential management lies with the user.
Links¶
- Community Directory: https://www.skillhub.cn/plugins/yoggu/dsh-codex-account
- Source Code & README: https://github.com/yoggu/dsh-codex-account