How I built a native macOS Codex account switcher without a proxy
说明与用途
Codex Account Switcher 让用户在 macOS 上快速切换多个 Codex 账户,显示当前活跃账户和每周使用量,无需代理。
问题
Users needed to know which Codex Desktop account was active and its weekly usage before opening a repository, but Codex Desktop lacked account switching and usage display.
结果
The app enables quick, secure switching between multiple Codex accounts on macOS without a proxy, preserving local state and respecting usage limits.
工作流
- Maintain a local library of profile directories each containing auth.json
- From the menu bar, identify the active profile and its weekly usage
- Select a different profile and confirm the switch
- Save the current profile’s credentials
- Activate the selected profile by replacing auth.json
- Verify the selected identity
- Reopen Codex Desktop
- Start new Codex CLI processes that read the selected authentication
证据
The app keeps a small library of authorized local Codex profiles.
The switcher stores each saved identity in an independent profile directory.
The current release is free, MIT-licensed, and built for Apple Silicon Macs running macOS 14 or later.
- 记录日期: 2026-09-05T15:44:40.789Z