codex-multi-auth
v0.1.0
Published
Codex CLI-first multi-account OAuth rotation plugin for OpenCode
Maintainers
Readme
codex-multi-auth
Codex CLI-first multi-account OAuth manager for the official Codex CLI.
Quick Start
Install from source (current project workflow):
npm install -g @openai/codex
git clone https://github.com/ndycode/codex-multi-auth.git
cd codex-multi-auth
npm install
npm run build
npm linkAdd and verify accounts:
codex auth login
codex auth list
codex auth checkIf browser opens during codex auth login, that is expected. Complete OAuth and return to the same terminal.
What You Get
codex auth ...commands for multi-account management.- Interactive beginner-friendly dashboard with hotkeys.
- Health checks, forecasting, safe auto-fix, and diagnostics.
- Live account sync and Codex CLI active-account state sync.
Most-Used Commands
| Command | Use it for |
| --- | --- |
| codex auth login | Add/manage accounts in the dashboard |
| codex auth list | See saved accounts and current account |
| codex auth switch <index> | Switch current account |
| codex auth check | Quick health + live session checks |
| codex auth forecast --live | Choose the best next account |
| codex auth fix --dry-run | Preview safe fixes |
| codex auth fix | Apply safe fixes |
| codex auth doctor --fix | Diagnose and auto-repair common issues |
| codex auth report --live --json | Full machine-readable report |
| codex auth features | Print all implemented feature areas |
Complete command reference: docs/reference/commands.md
Dashboard Hotkeys
Main dashboard:
Up/Down: moveEnter: select1-9: quick switch account/: search?orH: helpQ: back
Account detail menu:
S: set currentR: refresh loginE: enable/disableD: delete account
Settings and Advanced Backend
Open:
codex auth login
# SettingsSettings are persisted in:
~/.codex/multi-auth/settings.json- or
CODEX_MULTI_AUTH_DIR/settings.jsonwhen custom root is set
Reference:
Documentation Map
Start here:
- Docs portal: docs/README.md
- Beginner setup: docs/getting-started.md
- Full feature matrix: docs/features.md
- Configuration: docs/configuration.md
- Troubleshooting: docs/troubleshooting.md
- Storage/path reference: docs/reference/storage-paths.md
- Upgrade guide: docs/upgrade.md
- Privacy/data handling: docs/privacy.md
Maintainer docs:
- Architecture: docs/development/ARCHITECTURE.md
- Config fields: docs/development/CONFIG_FIELDS.md
- Config flow: docs/development/CONFIG_FLOW.md
- Testing: docs/development/TESTING.md
- TUI parity checklist: docs/development/TUI_PARITY_CHECKLIST.md
Quick Troubleshooting
codex auth doctor --fix
codex auth list
codex auth forecast --liveIf command routing is broken:
where codex
codex --version
codex auth status
codex multi auth statusDevelopment
npm run typecheck
npm run lint
npm test
npm run buildSecurity and Usage Notice
This project is for personal development workflows. You are responsible for compliance with OpenAI policies.
- Security policy: SECURITY.md
- License: LICENSE
