Aisw
AISW | AI Switcher - Switch between multiple Claude Code, Codex CLI, Antigravity and Gemini CLI accounts in one command. Named profile manager for AI coding agents.
Install
cargo install aiswInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →aisw
Switch Claude Code, Codex CLI, Gemini CLI and Antigravity CLI accounts in one command.
aisw (AI Switcher) saves each coding-agent login as a named profile and switches
between them without logging out, copying auth.json or editing hidden config. It
can switch all four agents together and refuse to start an agent in a repository
while the wrong account is active. It runs locally, with no account, telemetry or
proxy.
The problem it solves
- Two accounts, one machine. A work and a personal Claude Code or Codex login overwrite each other, and switching means signing out and back in.
- Every agent stores auth differently. Claude Code uses the macOS Keychain or
.credentials.json, Codex CLI usesCODEX_HOME/auth.json, Gemini CLI uses~/.gemini. Hand-copying these files breaks token refresh. - The wrong account in the wrong repository. Nothing stops a personal login from running in a client repository.
Features
Save and switch accounts
Import the login you already have, add others by OAuth sign-in or API key, and switch with a backup taken first. Each switch rolls back if any write fails. Adding profiles →
Switch every agent at once
A context maps one profile per agent under a single name, even when the profile
names differ. aisw context use moves all of them together, or none.
Profiles, contexts and workspace rules →
Guard a repository
Bind a folder, repository or GitHub org to a context. With the shell hook, the
guard warns or refuses to launch claude, codex, gemini or agy on a
mismatch and prints the command that fixes it.
Workspace guardrails →
Install
# Homebrew (macOS, Linux)
brew install burakdede/tap/aisw
# Shell installer (macOS, Linux)
curl -fsSL https://raw.githubusercontent.com/burakdede/aisw/main/install.sh | sh
# Cargo (any platform)
cargo install aisw
Windows binaries and checksums are on the releases page. AI Switcher Desktop and the VS Code and Cursor extension use the same profiles.
Quick start
# Install the shell hook and import the logins you already have
aisw init
# Add accounts by OAuth sign-in or API key
aisw add claude work
aisw add codex work-api-key --api-key "$OPENAI_API_KEY"
# Switch one agent, or every agent in a context
aisw use claude work
aisw context create work --claude work --codex work-api-key
aisw context use work
# See what each agent is using now
aisw status
Antigravity switches its keyring credential and authentication provider while
preserving preferences, global integrations, and runtime files. Gemini switching
preserves Antigravity's directories under their shared ~/.gemini parent.
Live Antigravity credentials use Go's platform storage contract, including the
macOS security transport; managed secure profiles retain Rust's native storage.
Start a new agent session after switching; a running process keeps the account it started with. The quickstart walks through each step.
Supported tools
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…