Codex Switch

English | 中文
Multi-account Codex for DeepSeek Harness, powered by your ChatGPT subscription.
What it does
- Connects ChatGPT accounts with OAuth.
- Shows each account's weekly limit and reset time.
- Switches accounts manually or automatically.
- Adds Codex models to the Harness model picker.
- Optionally enables Codex search and
view_image.
Install
dsh plugin --profile web add dsh-codex-switch@alpha
dsh webFor pnpm 9:
dsh plugin --profile web add -w --config.auto-install-peers=false dsh-codex-switch@alphaSet up
1. Open Settings → Plugins → Plugin configuration → Codex Switch. 2. Select Sign in with ChatGPT and add your accounts. 3. Choose Manual or Automatic, then select a Codex model.
| Mode | Behavior |
|---|---|
| Manual | You choose the active account. |
| Automatic | Codex Switch uses enabled accounts in order. |
Search and view_image are disabled by default. Codex Switch does not change your default model or global search provider.
Commands
dsh plugin --profile web exec dsh-codex-switch status
dsh plugin --profile web exec dsh-codex-switch doctor
dsh plugin --profile web exec dsh-codex-switch accounts listCredentials are stored under $DSH_HOME/openai-codex/credentials/. Removing the plugin does not delete them; use Sign out to remove an account.
> ChatGPT subscription access is not an OpenAI API key. Available models and limits are controlled by OpenAI.
Development
pnpm install --frozen-lockfile
pnpm run checkLicense
[Apache-2.0](LICENSE). Third-party notices and modification history are documented in [NOTICE](NOTICE) and [MODIFICATIONS.md](MODIFICATIONS.md).