liuzhao1225/codex-account-switcher
概要
Native Codex account switcher by Zhao Liu (liuzhao1225) for macOS and Windows. Local accounts, weekly/5h usage, confirmed Desktop switching.
Web・アプリ開発できること
- Browser sign-in & local registration - Add new accounts via Codex's browser login flow or register the currently active ~/.codex/auth.json login.
- Safe Desktop & CLI handoff - Closes Codex Desktop, saves the previous credential, installs and verifies the target credential, and reopens Desktop (or switches auth.json directly for CLI-only users). Restores the previous credential if verification fails.
- Usage & reset tracking - Displays 7-day usage by default, optional exact 5-hour usage, selectable status-bar/tray percentage window, remaining banked reset counts, and configurable low-usage notifications.
- Live subscription dates - Refreshes subscription validity, renewal, and delinquency details on both macOS and Windows, with inactive-account 401 token recovery and local caching.
計測したスター増加
- 24時間
- 0
- 7日間
- +4
- 15日間
- +13
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
Codex Account Switcher
Switch Codex accounts on macOS and Windows.
Add accounts once, then choose when you need them. No Terminal commands or config-file editing.
Download free for Mac · Download free for Windows · Website · Discussions
English · 中文

Created and maintained by Zhao Liu (GitHub: liuzhao1225) · X · Bilibili
Codex Account Switcher is a free, open-source native app for managing multiple authorized Codex accounts on macOS and Windows. Add personal, work, or client accounts through browser sign-in once, then switch accounts from the macOS menu bar or Windows system tray.
When you confirm a switch, the app closes Codex Desktop (if installed and running), updates ~/.codex/auth.json atomically, verifies the target identity, and reopens Codex Desktop. CLI-only setups without Codex Desktop installed also switch cleanly. Saved account profiles stay local on your computer.
Download
Get the latest unified release with SHA-256 checksums:
| Platform | Requirements | Download and install |
|---|---|---|
| macOS | macOS 14+, Apple Silicon (arm64) | Download DMG, open it, and drag the app to Applications |
| Windows | Windows 10/11, x64 | Download EXE and run it; no separate .NET or Swift SDK required |
Features
| Feature | Details |
|---|---|
| Browser sign-in & local registration | Add new accounts via Codex's browser login flow or register the currently active ~/.codex/auth.json login. |
| Safe Desktop & CLI handoff | Closes Codex Desktop, saves the previous credential, installs and verifies the target credential, and reopens Desktop (or switches auth.json directly for CLI-only users). Restores the previous credential if verification fails. |
| Usage & reset tracking | Displays 7-day usage by default, optional exact 5-hour usage, selectable status-bar/tray percentage window, remaining banked reset counts, and configurable low-usage notifications. |
| Live subscription dates | Refreshes subscription validity, renewal, and delinquency details on both macOS and Windows, with inactive-account 401 token recovery and local caching. |
| Use resets before expiry | Opt-in automation that checks and consumes expiring codexRateLimits reset credits across saved accounts 10, 5, and 1 minute before expiry, backed by a bounded crash-resilient local log. |
| Notes, ordering & localization | Add custom account notes, reorder saved accounts in Manage Accounts, choose 3, 5, or 8 visible popover rows on macOS, and pick System Default, English, Simplified Chinese, or Italian. |
Privacy & Architecture
- Saved profiles live in
~/Library/Application Support/Codex Account Switcher/on macOS (0700directories,0600files) and%LOCALAPPDATA%\Codex Account Switcher\on Windows (current-user ACLs). - Every
codex app-serversession runs with file-backed credentials (cli_auth_credentials_store="file") and disables background plugin/app sync (features.plugins=false,features.remote_plugin=false,features.apps=false,features.shell_snapshot=false) so profile folders stay lightweight. - Idle quota sessions expire after 90 seconds, releasing child processes between 5-minute background polls while reusing warm sessions during active UI interactions.
- No developer-operated proxy, telemetry, or third-party forecast polling is included.
Development
git clone https://github.com/liuzhao1225/codex-account-switcher.git
cd codex-account-switcher
./scripts/run-tests.sh
./scripts/package-local-app.sh
Project layout
Sources/CodexAccountSwitcher/ Native macOS SwiftUI menu-bar app and AppKit/Sparkle adapters
Sources/SwitcherCore/ Shared account store, controller, switching, RPC, subscription & auto-reset
Sources/SwitcherHost/ Typed single-pass JSON stdio host for the Windows client
Sources/SwitcherPlatform/ Win32 private ACLs, extended-path cleanup, and atomic writes
windows/ Native Windows WPF/tray client, adapters, and UI/integration checks
Tests/ Unified Swift Testing suite (core, transport, live subscriptions, macOS UI)
scripts/ Test runner, local packaging, and release verification scripts
docs/ Architecture, shared-core protocol, testing, and release documentation
Documentation
License
Released under the MIT License. Independent open-source project; not affiliated with or endorsed by OpenAI.
関連プロジェクトを探す
読み込み中…