ndycode/codex-multi-auth
Codex CLI multi-account OAuth manager with account switching, health checks, runtime rotation, diagnostics, and recovery tools for @openai/codex
What it solves
It addresses the limitations of using a single account with the official OpenAI Codex CLI, such as hitting rate limits, quota exhaustion, or needing to separate work across different organizations and workspaces. It allows users to manage multiple ChatGPT accounts and rotate between them seamlessly.
How it works
It functions as a local account manager and a loopback-only proxy. You log in to multiple accounts via OAuth, which are stored securely in a local pool. When you run the Codex CLI through the provided wrapper, the tool automatically routes requests through the healthiest available account, performs health checks, and manages quota-based failovers without modifying the official binary.
Who it’s for
It is designed for power users, developers, and those running automated agents who require higher throughput, need to manage multiple workspaces, or want to avoid the downtime associated with hitting rate limits on a single account.
Highlights
- Account Pool Management: Securely store and switch between multiple ChatGPT accounts locally.
- Automated Rotation: Automatically selects the best account for each request to optimize for health and quota availability.
- Diagnostic Tools: Includes commands to verify account health, forecast usage, and repair stale or damaged local state.
- Governance Features: Provides a local usage ledger, budget guards, and account tagging to monitor and control spending and usage.
- Non-Intrusive: Does not modify or patch the official Codex CLI binary; it operates as a wrapper and proxy.
Related
- Project
- Project
- Project
- Project
- Project