dsh-codex-switch
其他 活跃维护

dsh-codex-switch

ZChenW/dsh-codex-switch

为DeepSeek Harness扩展ChatGPT OAuth登录能力,支持多账号快速切换,同时可接入Codex系列模型,开箱即用无需复杂配置

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
Apache-2.0
开源协议
1.2 MB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:ZChenW/dsh-codex-switch
git clone https://github.com/ZChenW/dsh-codex-switch.git
git clone git@github.com:ZChenW/dsh-codex-switch.git
README.md main

Codex Switch

npm version

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.
  • Redeems banked rate-limit resets granted by OpenAI, right from the account card.
  • 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 web

For pnpm 9:

dsh plugin --profile web add -w --config.auto-install-peers=false dsh-codex-switch@alpha

Set 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 list

Credentials 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 check

License

Apache-2.0. Third-party notices and modification history are documented in NOTICE and MODIFICATIONS.md.