全部软件
codex-account-switcherProductivity
版本
v0.2.2
发布日期
2026-12-01
平台
macOS · Windows
安装包大小
macOS 3.9 MB · Windows 102.4 MB
发布者
liuzhao1225
Productivity · liuzhao1225

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.

版本 v0.2.2
macOS · Windows

README

Codex Account Switcher logo

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.

Release macOS 14 or later Apple Silicon Windows 10/11 x64 License: MIT

Download free for Mac · Download free for Windows · Website · Discussions

English · 中文

Native macOS Codex Account Switcher showing saved Codex profiles, usage, and account switching from the menu bar

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 (0700 directories, 0600 files) and %LOCALAPPDATA%\Codex Account Switcher\ on Windows (current-user ACLs).
  • Every codex app-server session 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.