DeepSHPlugins
dsh-codex-switch 项目预览
GITHUB / COMMUNITY PROJECT

dsh-codex-switch

Agent 与自动化JavaScriptApache-2.0

通过 OAuth 连接 ChatGPT 账号,支持手动或自动切换,并为 DeepSeek Harness 添加带用量限额信息的 Codex 模型。

2 StarsZChenW 更新时间 2026-08-27
访问 GitHub 仓库
dsh-codex-switch 项目预览

项目介绍

中文

通过 OAuth 连接 ChatGPT 账号,支持手动或自动切换,并为 DeepSeek Harness 添加带用量限额信息的 Codex 模型。

English

Connects ChatGPT accounts through OAuth, switches among them manually or automatically, and adds Codex models with usage limits to DeepSeek Harness.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
ZChenW
仓库
ZChenW/dsh-codex-switch
GitHub Stars
2
Forks
0
开发语言
JavaScript
许可证
Apache-2.0
最近推送
2026-08-27
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

56/ 100
维护活跃
91
文档与实用信息
85
生态关注度
14
安装便捷信号
80
项目声明信号
100

近 15 天仍在更新;README 含完整安装与使用说明;关注度尚低(2)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add dsh-codex-switch

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

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 5-hour and weekly limits, and the reset time of every window that has started.
  • Redeems banked rate-limit resets granted by OpenAI, right from the account card.
  • Warms up an account on request, to start a window that has not run yet.
  • 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.
ModeBehavior
ManualYou choose the Current account.
AutomaticCodex Switch uses Available accounts by Account order.

Search and view_image are disabled by default. Codex Switch does not change your default model or global search provider.

Quota windows

Codex Switch treats remaining capacity and reset lifecycle as separate facts. A zero-use 5-hour window shows Starts after first use rather than a meaningless countdown. The weekly lifecycle is independent: a stable weekly reset can keep counting down even while the 5-hour window is idle or visually full. Moving full-window projections are never presented as reset anchors. If OpenAI reports usage without a usable reset time, the card says Reset time unavailable.

Warm up reads that account's authorized Codex model list, then sends one minimal request for the core pool and each eligible additional model pool that still needs activation. It consumes a small amount of that account's quota, so it asks for confirmation and never runs on its own — not on refresh, sign-in, automatic switching, or background polling. Acceptance is not proof activation succeeded: Codex Switch re-reads usage, and keeps offering an explicit retry until positive use and at least five elapsed minutes prove the relevant window is running.

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. Codex Switch is maintained by CHAKEW and retains upstream work by Frank Song and Yan-Zero. Third-party notices and modification history are documented in NOTICE and MODIFICATIONS.md.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目