Lightweight, native Swift macOS menu bar app for switching between multiple Codex auth sessions.
- Fast menu bar account switching
- Manage accounts (add/import/rename/delete)
- Usage refresh with "next best" recommendation
- Prompted switching that closes Codex sessions when needed
- Automatic Codex app relaunch after confirmed account switches
brew tap VincentBurke/tap
brew install codex-toolsRun once:
codex-toolsStart at login (recommended):
brew services start codex-toolsDisable launch-at-login:
brew services stop codex-toolsWhen started via brew services:
Quit codex-toolsexits the app and keeps it stopped for the current session.- If the process crashes, launchd restarts it.
git clone <your-repo-url>
cd codex-tools
swift run CodexToolsOr open CodexTools.xcodeproj and run the CodexTools target.
CODEX_HOME(default:~/.codex)CODEX_TOOLS_HOME(default:~/.codex-tools)- Active auth file:
${CODEX_HOME}/auth.json - Account store:
${CODEX_TOOLS_HOME}/accounts.json - Stored auth files use restrictive permissions (
0600)
swift testauth.jsonimports require token-based auth data (API-key-only imports are rejected)- API-key accounts report usage as unavailable