aisw
Account manager and switcher for Claude Code, Codex CLI, and Gemini CLI. Current release: v0.3.6.
Named profile and context manager for Claude Code, Codex CLI, and Gemini CLI. Store per-tool accounts, save mixed-name work modes, and switch between them in one command across all three AI coding agents - on macOS, Linux, and Windows.
If you maintain separate work and personal accounts for Claude Code, Codex, or Gemini - or manage credentials for multiple clients - aisw gives you one command to switch instead of manually editing ~/.claude/.credentials.json, juggling CLAUDE_CONFIG_DIR overrides, or copying auth.json files between directories.
Install
Section titled “Install”brew tap burakdede/tap && brew install aiswOther installers:
# Shell installer (Linux/macOS)curl -fsSL https://raw.githubusercontent.com/burakdede/aisw/main/install.sh | sh
# Cargocargo install aiswFirst run
Section titled “First run”aisw initinit creates ~/.aisw/, configures the optional shell hook, and offers to import any currently logged-in tool accounts so you start with zero manual re-authentication.
Core workflow
Section titled “Core workflow”# Store profilesaisw add claude work --api-key "$ANTHROPIC_API_KEY"aisw add claude personal # launches interactive OAuthaisw add codex work --api-key "$OPENAI_API_KEY"aisw add gemini work --api-key "$GEMINI_API_KEY"
# Activate a profileaisw use claude workaisw use --all --profile personal # switch all tools at once
# Save and activate a mixed-name contextaisw context create acme --claude acme-claude --codex acme-codex --gemini acme-geminiaisw context use acme
# Inspect stateaisw statusaisw status --contextaisw listStart here
Section titled “Start here”- Quickstart - install, first profile, first switch
- Commands - complete syntax and flag reference
- How it works - design decisions, credential storage, platform behavior
- Security - local-only storage, keyring integration, file permissions
- Automation and scripting - CI patterns, JSON output, non-interactive mode
- Troubleshooting - common failures and diagnostics