SuperAPIAI Directory

aisw

github.com · Other AI tools

aisw (AI Switcher) is a locally running command-line tool for quickly switching between multiple Claude Code, Codex CLI, Gemini CLI, and Antigravity CLI accounts. It saves each coding agent's login information as a named profile, so switching requires no logging out, manually copying auth.json, or editing hidden configuration. It supports switching all four agents at once, and can bind folders, repositories, or GitHub organizations to a specified context, warning or refusing to launch an agent when the account does not match. The tool runs entirely locally and requires no account, telemetry, or proxy.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

aisw (AI Switcher) is a named profile manager for AI coding agents, primarily solving the problem of login information overwriting each other and cumbersome switching when using multiple accounts on the same machine.

Purpose It addresses three common problems: first, work and personal accounts overwrite each other on the same machine, and switching requires repeatedly logging out and back in; second, different agents store authentication information in different ways, for example Claude Code uses the macOS Keychain or .credentials.json, Codex CLI uses CODEX_HOME/auth.json, and Gemini CLI uses ~/.gemini, and manually copying files may break token refresh; third, the wrong account may run in the wrong repository, with no constraints.

Main capabilities

  1. Save and switch accounts: existing login information can be imported, other accounts can be added via OAuth login or API key, a backup is made before switching, and if any write fails, the whole operation rolls back.
  2. Batch switching: through a "context", one profile for each agent is combined under the same name; even if the profile names differ, aisw context use can switch them all at once, or none at all.
  3. Repository protection: a folder, repository, or GitHub organization can be bound to a context; together with a shell hook, it warns or refuses to launch claude, codex, gemini, or agy when the account does not match, and prints the fix command.
  4. Automation support: all commands support --json and return stable exit codes, and aisw verify can be used as a CI gate.
  5. Local security: profiles are stored under ~/.aisw/, and keys are kept in the operating system keychain (Keychain, Secret Service, Credential Manager) or in files with 0600 permissions; before switching, a backup is made, and then writes are made transactionally to the locations each agent originally reads from. The tool does not connect to the network, requires no account, and has no telemetry or proxy.

Usage Operated via the command line, a typical flow includes importing or adding accounts, creating a context, switching with aisw context use, and configuring protection rules for repositories. After switching, a new agent session must be started; running processes keep the account they had at startup. Windows binaries and checksums are published on the releases page; AI Switcher Desktop and the VS Code and Cursor extensions use the same profiles.

Use cases Suitable for developers who need to switch frequently between work and personal accounts, users who use multiple AI coding agents at the same time, and teams that want to prevent personal accounts from being misused in client repositories.

Limitations The material does not provide specific installation commands, complete details of each tool's storage and state modes, pricing information, or the scope of platform support; Antigravity switching replaces keychain credentials and the authentication provider while preserving preferences, global integrations, and runtime files, and Gemini switching preserves Antigravity's directories under the shared ~/.gemini parent directory. For more details, refer to the Supported tools, Commands, Guides, FAQ, and Troubleshooting sections in its documentation.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools