AI Switcher
Manage and switch named accounts for local AI coding tools from one command.
- Source repo
- burakdede/aisw
- Stars
- ★ 144
- Last updated
- 10d ago
- License
- MIT
- Primary language
- Rust
- FA score
- 77/100 · Good
At a glance
- How it runs
- Works with
- Platform-specificCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Developers who keep separate work and personal Claude Code logins on one machine.
- Not a fit if
- Teams that do not use Claude Code, Codex CLI, Gemini CLI, or Antigravity CLI
- Website
- aiswitcher.dev ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-10-31latest release v0.3.11 (2026-10-19)+1.0 ★/day over 7 days
- Source review
- 77/100 · Good
What does this agent do, and when should you use it?
aisw is a local CLI that stores named account profiles for Claude Code, Codex CLI, Gemini CLI, and Antigravity CLI. It can import existing logins or add accounts through OAuth or API keys, then writes credentials to the locations each tool already uses. Switch one tool with a profile or move several tools together through a named context. The repository also offers a desktop app and VS Code and Cursor extensions that use the same profiles. Data lives under ~/.aisw/; secrets go in the OS keyring or files with 0600 permissions, and the README says aisw uses no account, telemetry, or proxy service.
Run aisw init to install the shell hook and import existing logins; add profiles with commands such as aisw add claude work or aisw add codex work-api-key --api-key "$OPENAI_API_KEY". Use aisw use <agent> <profile> for one tool, or aisw context create and aisw context use to map and switch several tools together. Each switch takes a backup first and rolls back if a write fails. aisw status shows active accounts. A folder, repository, or GitHub organization can be bound to a context; the shell hook can warn or block when claude, codex, gemini, or agy starts with a mismatched account. Commands support --json and stable exit codes, including for aisw verify as a CI gate.
- Developers who keep separate work and personal Claude Code logins on one machine.
- Engineers managing multiple Codex CLI, Gemini CLI, or Antigravity CLI accounts.
- Repository contributors who want a work context enforced before launching a coding assistant.
- Users who want to switch several supported coding tools to a matching set of accounts together.
How do you install or deploy this agent?
Install on macOS or Linux with Homebrew or the shell installer; Cargo works on any platform. Windows binaries and checksums are available from Releases.
How do you use this agent?
Install the shell hook and import existing logins, then add profiles and create or activate a context. The API-key example reads its value from an environment variable; adding an API-key profile requires a valid key for the relevant service.
What are this agent's strengths and limitations?
- Manages accounts for four named coding CLIs, with both per-tool switching and grouped contexts.
- Backs up credentials before switching and rolls back when a write fails.
- Can bind folders, repositories, or GitHub organizations to contexts and guard launches with a shell hook.
- Keeps profiles locally and supports OS keyrings or files protected with 0600 permissions.
- Its account management is limited to Claude Code, Codex CLI, Gemini CLI, and Antigravity CLI.
- Setup includes installing aisw and configuring the shell hook; running agent processes retain their original account after a switch.
- OAuth and API-key profiles still depend on accounts or credentials from the relevant services; the README does not state their costs.
- Secure storage varies by platform; live Antigravity credentials use Go's platform storage contract.
How does this agent compare with similar options?
The README identifies signing out and back in, copying auth.json, and editing hidden config as manual alternatives. aisw replaces those steps with named profile switching and takes a backup before writing credentials.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| AI Switcher This agent | 77 · Good | CLIFree | ★ 144 | 10d ago | Rust | Codex · Claude Code |
| Multi-CLI | 78 · Good | CLIFree | ★ 177 | 2mo ago | PowerShell | Codex · Claude Code |
| Clausona Account Manager | 76 · Good | CLI | ★ 61 | 1d ago | TypeScript | Codex · Claude Code |
| CCB Multi-Agent Terminal Workspace | 79 · Good | CLIFree + model costs | ★ 3.6k | 4d ago | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The documentation limits access to aisw data, supported tools' credential locations, relevant keyring entries, and shell hooks explicitly configured by the user. It gives concrete details on API-key input, 0600/0700 permissions, OS keyrings, path validation, and backup rollback, supporting high scores for sensitive-data handling and rollback. OAuth launches upstream login flows, switching rewrites live credentials, and some behavior depends on a shell hook; these effects and backups are documented, but the packet does not show confirmation behavior for every path, so confirmation and external-effects are not full marks. Dependencies are listed and CI uses locked builds, but the packet has no dependency audit or vulnerability mitigation record, so dependency security scores 1. Repository, upstream-contract, and audit references provide attribution clues, but this packet cannot independently verify them; publisher identity remains unknown.
The README, security page, configuration guide, and FAQ are broadly consistent about transactional switching, backups, locks, recovery, and tool limits. Some scope descriptions differ, such as Cargo installation being described as available on any platform while the main support table focuses on macOS, Linux, and Windows, so self-consistency is not full marks. CI configuration covers multi-platform builds, lint, and tests, and a real credential-store canary workflow is present; this shows a reliability design, not that any tests were executed. Error chains, machine-mode failures, and lock-timeout diagnostics are described, but the packet does not support a criterion-by-criterion review of failure messages, so that score is 2.
The product addresses personal and work accounts, client repositories, GUI and CI workflows, with per-tool switching, contexts, workspace guards, JSON, and stdin examples. Support boundaries are concrete, including Codex ChatGPT-managed credentials, Gemini encrypted storage, Antigravity isolation, and the need to restart processes, warranting high scenario and capability-boundary scores. The hook is described as triggering by command and workspace rules, but matching logic is not fully shown, so trigger precision scores 2. Major desktop platforms and shells are covered, though Linux keyring service availability and Antigravity shared-state constraints limit environment fit.
Documentation is organized across security, configuration, quickstart, commands, supported tools, FAQ, and troubleshooting, with a schema, directory layout, actionable examples, and explicit limitations. The MIT license text is complete. Installation covers Homebrew, a shell installer, Cargo, and a Windows releases page, but verification and security guidance are uneven across methods. Naming and schema versioning are described, and Cargo.toml specifies 0.3.11; the packet lacks a full changelog, limiting evidence of version history. The author, repository, and release entry points are named, but no clear maintenance commitment or response policy is shown.
Named profiles, context switching, workspace guards, stable JSON, and diagnostic commands directly address multi-account switching and wrong-account use. Human-readable status, machine output, and remediation commands make results usable. The product offers clear value through centralized credential management and cross-tool switching. Cost-benefit scores 2 because users must understand multiple upstream credential models, state modes, and hooks, while some tools retain shared-state constraints.
The README's main feature claims have corresponding explanations in the security, quickstart, configuration, and FAQ materials; the audit also lists defects, repairs, and types of regression evidence. However, the packet omits implementation details, complete test results, and some referenced documents, so corroboration is incomplete. Documentation generally distinguishes support boundaries, limitations, and upstream contracts, and identifies the audit's reviewed version; some security claims remain project assertions without independent verification in this packet, so none of the verifiability criteria receive full marks.
- This assessment uses only the supplied static material; the program was not run and its security claims were not independently verified.
- Before switching, confirm the intended profile and tool state. Key limits include isolated mode for Codex ChatGPT-managed credentials, unsupported Gemini encrypted OAuth, and Antigravity's shared-state boundary.
- Dependencies and locked CI builds are documented, but this packet contains no dependency-security audit evidence.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Reliable account switching aisw 0.3.11 is a bug-fix and stability release. It has no new features, and existing profiles and configuration still work. Fixed - macOS: Claude Code no longer reports "Not logged in" after aisw use or aisw add claude --from-live. aisw was writing a trailing newline into Claude's Keychain item. Affected profiles are repaired the next time you switch to them. …View on GitHub ↗ -
v0.3.10 aisw 0.3.10 — Linux binaries run on older distributions
Release notes excerpt
Linux binaries run on older distributions again The aisw-x86_64-unknown-linux-gnu binary in 0.3.8 and 0.3.9 was built against glibc 2.39, so it failed to start on Ubuntu 22.04, Debian 12, and older distributions: ``` /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found ``` aisw 0.3.10 fixes that. What changed - The x86_64 Linux binary is now built the same way as the aarch64 one, against an older glibc. Any Linux distribution with glibc 2.28 or newer is supported. …View on GitHub ↗ -
v0.3.9 aisw 0.3.9 — Find the right workflow faster
Release notes excerpt
A clearer path from “I need another account” to a safe daily workflow aisw 0.3.9 is a documentation-focused release that makes the project easier to evaluate, adopt, and use correctly. It explains the product around the problems developers actually have: switching between work and personal logins, coordinating different accounts across Claude Code, Codex CLI, Gemini CLI, and Antigravity CLI, and preventing the wrong account from being used in a repository. What is new …View on GitHub ↗
FAQ
Does aisw send account credentials to a cloud service?
Will a running coding-agent session change accounts when I switch?
What happens if a credential write fails?
Which tools and sign-in methods are supported?
Is AI Switcher free?
Is AI Switcher open source?
Is AI Switcher safe to use?
Is AI Switcher still maintained?
Who makes AI Switcher?
What is AI Switcher's official website?
Thanks — we use this to improve the page.