____ ___ ____ _______ ____ ___ _ ___
/ ___/ _ \| _ \| ____\ \/ /\ \ / / | | |/ _ \
| | | | | | | | | _| \ / \ \ /\ / /| |_| | | | |
| |__| |_| | |_| | |___ / \ \ V V / | _ | |_| |
\____\___/|____/|_____/_/\_\ \_/\_/ |_| |_|\___/
Manage multiple Codex CLI account configurations easily. Switch between work and personal accounts, or maintain separate configurations for different projects.
Sibling project of claudewho, which does the same for Claude Code.
brew install cliq/tap/codexwhoOr:
brew tap cliq/tap
brew install codexwhogit clone https://github.com/cliq/codexwho.git
cd codexwho
chmod +x bin/codexwho
sudo ln -s "$(pwd)/bin/codexwho" /usr/local/bin/codexwhocodexwho add work
codexwho add personal
codexwho add client-projectCopy your existing Codex configuration to a new account:
# During account creation
codexwho add work --migrate
# Or after creating an account
codexwho migrate workThis copies config.toml, AGENTS.md, and your prompts/, rules/,
skills/, and plugins/ directories. Credentials (auth.json), sessions,
and history are not copied — each account logs in separately. Running it
again on the same account is safe — existing items are skipped.
codexwho listOutput:
Configured Codex accounts:
work ~/.codexwho-work (authenticated)
personal ~/.codexwho-personal (not authenticated)
client-project ~/.codexwho-client-project (authenticated)
Switch with codexwho use <name>
# Using the wrapper command (recommended)
codexwho-work
codexwho-personal
# Or switch the default account
codexwho use work
codexcodexwho remove personalThis will prompt for confirmation before deleting the account directory.
| Command | Description |
|---|---|
list |
List all configured accounts |
add <name> |
Create a new account configuration |
migrate <name> |
Migrate settings from ~/.codex |
remove <name> |
Remove an account (with confirmation) |
use <name> |
Switch to the specified account |
shell-init |
Print shell aliases for sourcing |
version |
Show version information |
help |
Show help message |
- Each account is stored in
~/.codexwho-<name>/ - Account names are tracked in
~/.codexwho.conf - Wrapper scripts like
codexwho-workare created in~/.local/bin/and setCODEX_HOMEbefore launching Codex - Your original
~/.codexdirectory is never modified
- Codex CLI installed (
npm install -g @openai/codexorbrew install codex) - Bash 3.2+ or Zsh
- macOS or Linux
- Each account requires a separate OpenAI account (different email)
- Each account has its own usage limits
- Check OpenAI's terms of use to ensure compliance
MIT