Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

CXA - Codex Account Switcher

A fast, beautiful CLI to manage multiple OpenAI Codex accounts.

Go License


Features

  • 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

Installation

Homebrew (macOS/Linux)

brew install delhombre/tap/cxa

Go Install

go install github.com/delhombre/cxa/cmd/cxa@latest

From Source

git clone https://github.com/delhombre/cxa.git
cd cxa
make install

Quick Start

# 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

Commands

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

Aliases

  • cxa ls → cxa list
  • cxa sw <name> → cxa switch <name>
  • cxa use <name> → cxa switch <name>

TUI Preview

╭──────────────────────────────────────────╮
│  Codex Accounts                          │
├──────────────────────────────────────────┤
│  ● bruno          (current)              │
│  ○ work                                  │
│  ○ client-project                        │
├──────────────────────────────────────────┤
│  enter: switch  •  /: filter  •  q: quit │
╰──────────────────────────────────────────╯

Session Sharing

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

Data Locations

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

Development

# Run in dev mode
make dev

# Run tests
make test

# Build binary
make build

# Install locally
make install

Credits

Inspired by bashar94/codex-cli-account-switcher.

Built with Charm libraries:


License

MIT License — see LICENSE

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages