🌐 한국어
CLI Account Switcher is a Windows desktop utility for managing authentication accounts for AI coding tools. It supports Codex, Claude Code, Z.ai, OpenCode Go, and Ollama accounts.
The app stores saved account records in its own local application data folder and switches the active account by writing the selected authentication document to the relevant local authentication file for each tool.
- Live taskbar usage: keep the selected service's active account usage visible directly on the Windows taskbar, including both 5-hour and 7-day windows (and monthly usage for OpenCode Go).
- Pacemaker view: see at a glance whether your current usage pace is ahead of or behind the ideal reset-window pace, so you can choose when to slow down or switch accounts.
- Add Codex, Claude Code, Z.ai, OpenCode Go, and Ollama accounts with the supported sign-in and import flows.
- Switch the active account for any supported CLI from the Accounts screen.
- View plan information and remaining usage for supported accounts.
- Monitor active account usage from the Windows taskbar with real-time refresh support.
- Compare usage against the pacemaker indicator to understand whether the current pace is comfortably within the reset window or running too fast.
- Manage Codex, Claude Code, Z.ai, OpenCode Go, and Ollama accounts in one Windows app.
- Click the tray icon to open a quick active account usage popup without opening the full window.
- Refresh account usage and detect expired accounts.
- Back up and restore saved accounts.
- Dashboard: active account summary, average remaining usage, and low-usage account list.
- Accounts: searchable and filterable account list with switch, refresh, rename, delete, backup, and restore actions.
- Taskbar usage: always-on active account usage display with 5-hour and 7-day remaining usage, pacemaker comparison, and manual refresh (monthly usage also shown for OpenCode Go).
- Tray icon popup: quick active account quota view with refresh support from the tray icon.
- Settings: language, theme, startup launch, update checks, refresh intervals, warning thresholds, notifications, and settings import/export.
- About: app version and third-party license information.
- Add one or more accounts from the Accounts screen.
- Review plan and usage information after the app validates each account.
- Select an account and switch it to make it the active account for the matching CLI.
- Restart the tool when prompted so running sessions pick up the newly written authentication file.
- Use backup/export features when moving accounts or settings to another Windows installation.
Switching an account overwrites the local authentication file used by the selected tool. If you already manage those files manually or with another tool, make a backup first.
- Windows 10 version 1809 or later.
- For development: .NET 10 SDK, Windows App SDK, and Visual Studio with WinUI/MSIX tooling.
The repository contains three projects:
| Project | Description |
|---|---|
CliAccountSwitcher.WinUI |
Packaged WinUI 3 desktop app. |
CliAccountSwitcher.Api |
Codex, Claude Code, Z.ai, OpenCode Go, and Ollama authentication, usage, models, and API client helpers. |
CliAccountSwitcher.Api.Sample |
Console sample project for Codex and Claude Code API behavior. |
The WinUI app targets net10.0-windows10.0.26100.0, enables NativeAOT publishing, uses MSIX tooling, and supports x86, x64, and ARM64 package bundles.
Publish profiles live in CliAccountSwitcher.WinUI/Properties/PublishProfiles.
The app currently includes localized resources for:
- English (
en-US) - Korean (
ko-KR) - Japanese (
ja-JP) - Simplified Chinese (
zh-Hans) - Traditional Chinese (
zh-Hant)
- This project was generated with help from OpenAI Codex.
- This project is inspired by isxlan0/Codex_AccountSwitch.
- Thanks to the DevWinUI project for providing high-quality WinUI controls.
This project is licensed under the MIT License.
