prodex
Safe multi-account auto-rotate for codex.
prodex wraps codex with isolated profiles, built-in quota checks, and seamless account rotation.
Why prodex
- auto-rotate to another ready account when the current one is quota-blocked or temporarily unhealthy
- keep each account isolated in its own
CODEX_HOME - preserve continuation affinity so ongoing chains stay on the right account
- keep transport behavior close to direct
codex
Install
Install from npm:
This is usually the lightest option because it does not need a local Rust build.
Or install from crates.io:
The npm package version is kept in lockstep with the published crate version.
Update Tips
Check your installed version first:
The current local binary version in this repo is 0.2.103, so matching update commands look like this:
If you just want the lighter install path, prefer npm over cargo install because npm does not need to compile prodex locally.
If you want to move from a Cargo-installed binary to npm, uninstall the Cargo binary first and then install the npm package:
Quick Start
Import your current codex login:
Or create a profile through codex login:
If you need device-code auth, pass it through unchanged:
Check quotas:
Run codex with safe auto-rotate:
Running prodex without a subcommand is shorthand for prodex run.
Resume a saved Codex session directly:
Pin a specific profile when needed:
prodex run exec also preserves stdin passthrough, so prompt and piped input stay together:
|
Core Commands
Notes
- one
prodexprofile = one isolatedCODEX_HOME prodex loginstill uses the realcodex loginflow, including--device-authprodex loginwithout--profilefirst tries to read the ChatGPT account email fromtokens.id_tokeninauth.json, then falls back to the usage endpoint email when neededprodexwithout a subcommand behaves likeprodex runprodex run <session-id>forwards tocodex resume <session-id>prodex infosummarizes profile count, the installed prodex version and update status, running Prodex processes, aggregated quota pool, and a no-reset runway estimate from active runtime logsprodex quotalive-refreshes every 5 seconds by default, andprodex quota --allalso shows aggregated5handweeklypool remaining before the per-profile table- Prodex-owned screens adapt to terminal width, and live views can also adapt to terminal height
For a slightly longer setup guide, see QUICKSTART.md.