Task-by-task guides, not just reference docs.
Every guide answers one specific question for Claude Code, Codex CLI, Gemini CLI, or Antigravity CLI, switching an account, keeping work and personal separate, or catching an account mismatch before a repository launch, with both a CLI and a desktop workflow.
Claude Code
Switching, isolating, and binding accounts for Claude Code.
- Claude Code Account per RepositoryBind a repository to the Claude Code account it should use, so aisw can warn or block before the wrong account touches the wrong codebase.
- Claude Code Login: Manage Multiple AccountsUse Claude Code's native login flow, then save work, personal, and client accounts as named aisw profiles for repeatable switching.
- Claude Code Work and Personal AccountsKeep work and personal Claude Code accounts on one computer: save both as aisw profiles, switch before each session, and block the wrong one in work repos.
- How to Switch Claude Code AccountsA Claude Code account switcher for the terminal: save each account as an aisw profile, switch with one command, verify it, and bind repositories to an account.
Codex CLI
Switching, isolating, and binding accounts for Codex CLI.
- Codex CLI Account Switcher: Switch AccountsSwitch or change Codex CLI accounts without logging out or copying auth.json: save each login as a named aisw profile and change accounts with one command.
- Codex CLI Login: Manage Multiple AccountsUse `codex login` for ChatGPT or API-key authentication, then keep multiple Codex CLI accounts in isolated aisw profiles.
- Manage Multiple Codex CLI AccountsSave several Codex CLI accounts as named aisw profiles, list them, rename them, and remove the ones you no longer need.
- Use a Codex CLI Account Per RepositoryBind a repository to the Codex CLI profile or context it should use, and let aisw warn or block before the wrong account touches it.
Gemini CLI
Switching and isolating accounts for Gemini CLI.
- Gemini CLI: Switch or Change AccountsSwitch eligible Gemini CLI enterprise, Vertex AI and API-key profiles with aisw. Learn when individual Google accounts need Antigravity CLI instead.
- Work and Personal Gemini CLI AccountsSeparate eligible work and personal Gemini CLI API-key or enterprise profiles with aisw, and use Antigravity for individual Google subscription sign-ins.
Antigravity CLI
Switching and managing Antigravity CLI accounts.
- Antigravity CLI: Switch or Change AccountsHow to change or switch accounts in Antigravity CLI (agy) without signing out each time: save each login as a named profile and swap with one command.
- Keep Work and Personal Antigravity AccountsStore work and personal Antigravity CLI accounts as separate local aisw profiles and switch between them without repeatedly editing credential files.
Cross-tool workflows
Contexts, client setups, and repository guardrails spanning all supported tools.
- aisw Profiles, Contexts, and Workspace RulesProfiles save one account per tool, contexts switch Claude Code, Codex CLI, Gemini CLI and Antigravity together, and workspace rules bind a repo.
- Client Accounts for AI Coding AgentsFor freelancers and consultants: create one aisw context per client, map the tools they use, bind repositories, and switch accounts safely.
- Manage Multiple AI Coding Agent AccountsSave a profile per tool, group Claude Code, Codex CLI, Gemini CLI and Antigravity CLI into one aisw context, and switch every account together.
- One Coding-Agent Account per GitHub OrgBind a GitHub, GitLab or Bitbucket remote pattern to a context so every repo from that org, including future clones, uses the right coding-agent account.
- Prevent the Wrong Account in a RepositoryBind a repository to its context and enable guardrails so aisw blocks a coding-agent launch before the wrong account touches the codebase.
Find the guide by the problem you are trying to solve.
These guides are written around the actual queries people use: switching between two Claude Code accounts, managing multiple Codex CLI accounts, keeping a Gemini CLI or Antigravity CLI work account separate from a personal one, or catching the wrong account before it opens a repository. If you already know the problem, jump to the matching guide instead of reading the full command reference first.
Guides FAQ
This index page exists to route broad search intent to the narrower guide that answers it directly.
Where should I start if I want to switch between two accounts for one tool?
Start with the guide for that tool's switch-accounts workflow. Those pages answer the direct query first, then show the CLI method, the desktop method, and common problems.
Where should I start if I need separate work, personal, and client accounts?
Start with the work-personal guide for one tool, or the cross-tool client-account workflows if the account boundary spans Claude Code, Codex CLI, Gemini CLI, and Antigravity CLI together.
Which guide covers preventing the wrong account in the wrong repository?
Use the cross-tool repository guardrail guide or the per-tool repository guides. Those explain workspace bindings, guard modes, and how AI Switcher catches a mismatch before you launch a coding agent.
Don't see your exact situation?
The documentation covers every command in detail, including common switching situations not written up as a dedicated guide yet.
Install aisw