A fast, beautiful CLI to manage multiple OpenAI Codex accounts.
- Instant switching — Directory-based storage (no zip/unzip delays)
- Beautiful TUI — Interactive interface powered by Charm
- Session sharing — Share threads and history between accounts
- Secure — Authentication stays isolated per account
brew install delhombre/tap/cxago install github.com/delhombre/cxa/cmd/cxa@latestgit clone https://github.com/delhombre/cxa.git
cd cxa
make install# Save your current account
cxa save personal
# Add another account
cxa save work # After logging in with 'codex login'
# Switch between accounts
cxa switch work
cxa switch personal
# Or use the interactive TUI
cxa| Command | Description |
|---|---|
cxa |
Launch interactive TUI |
cxa list |
List all saved accounts |
cxa switch <name> |
Switch to an account |
cxa save <name> |
Save current session as account |
cxa current |
Show active account |
cxa share enable |
Enable session sharing |
cxa share status |
Show sharing configuration |
cxa version |
Print version |
cxa ls→cxa listcxa sw <name>→cxa switch <name>cxa use <name>→cxa switch <name>
╭──────────────────────────────────────────╮
│ Codex Accounts │
├──────────────────────────────────────────┤
│ ● bruno (current) │
│ ○ work │
│ ○ client-project │
├──────────────────────────────────────────┤
│ enter: switch • /: filter • q: quit │
╰──────────────────────────────────────────╯
Share sessions, threads, and history between accounts while keeping authentication separate.
cxa share enable # Enable global sharing
cxa share status # View current configuration
cxa share disable # Disable sharing| Path | Purpose |
|---|---|
~/.codex |
Active Codex session |
~/codex-data/accounts/<name> |
Saved account data |
~/codex-data/shared/ |
Shared sessions and threads |
~/.codex-switch/state.json |
Current/previous account tracking |
# Run in dev mode
make dev
# Run tests
make test
# Build binary
make build
# Install locally
make installInspired by bashar94/codex-cli-account-switcher.
Built with Charm libraries:
- Bubble Tea — TUI framework
- Lip Gloss — Styling
- Bubbles — Components
MIT License — see LICENSE