How I built a native macOS Codex account switcher without a proxy
Описание и применение
Приложение Codex Account Switcher позволяет быстро переключаться между несколькими аккаунтами Codex на macOS, показывая активный профиль и еженедельные лимиты, без использования прокси.
Задача
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