π Seamlessly switch between personal and work Claude Code accounts across multiple IDEs on Windows
Are you tired of manually logging in and out of different Claude Code accounts when switching between personal and work projects? This tool solves that problem by isolating Claude Code configurations for each IDE instance.
- Complete Account Isolation: Separate Claude Code accounts for personal and work
- Multiple IDE Support: VS Code, Cursor, Windsurf, and Antigravity
- Google Account Switching: Special support for Antigravity with Google account isolation
- Simple Commands: Easy-to-use PowerShell functions
- Zero Configuration Conflicts: Each profile maintains its own settings
| IDE | Personal Account | Work Account | Google Account Switching |
|---|---|---|---|
| VS Code | β | β | β |
| Cursor | β | β | β |
| Windsurf | β | β | β |
| Antigravity | β | β | β |
- Windows 10/11
- PowerShell 5.1 or higher
- At least one of the supported IDEs installed
git clone https://github.com/yourusername/claude-ide-switcher.git
cd claude-ide-switcher# Open your PowerShell profile
notepad $PROFILE
# Copy the desired switcher scripts from the scripts/ folder
# Paste them into your profile and save. $PROFILE# Launch VS Code with personal Claude account
code-personal
# Launch VS Code with work Claude account
code-work
# Launch Antigravity with work Claude AND work Google account
antigravity-work-google# Personal account (default settings)
code-personal
code-personal C:\MyPersonalProjects
# Work account (isolated profile)
code-work
code-work C:\MyWorkProjects# Personal account
cursor-personal
# Work account
cursor-work# Personal account
windsurf-personal
# Work account
windsurf-work# Personal Claude account only
antigravity-personal
# Work Claude account only
antigravity-work
# Work Claude + Work Google account (fully isolated)
antigravity-work-googleThe switcher uses environment variables to isolate Claude Code configurations:
CLAUDE_CONFIG_DIR: Points to different configuration directories--user-data-dir: (Antigravity only) Isolates browser profile and Google login
Each account maintains:
- Separate API keys
- Independent settings
- Isolated login sessions
- No cross-contamination
After setup, your home directory will contain:
C:\Users\YourName\
βββ .claude-personal\ # Personal Claude config
βββ .claude-work\ # Work Claude config
βββ .antigravity-work-profile\ # Work Antigravity + Google (optional)
βββ .cursor-work-profile\ # Work Cursor profile (optional)
βββ .windsurf-work-profile\ # Work Windsurf profile (optional)
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the developer community for testing and feedback.
- First launch of each profile will require Claude Code login
- Work profiles are completely isolated from personal profiles
- GitHub account switching is handled separately by each IDE
- Google account switching only works with Antigravity using the
-googlevariant
# Reload your profile
. $PROFILE# Check if IDE is in PATH
Get-Command code # or cursor, windsurf, antigravity- Make sure you're logged out before switching profiles
- Delete the config directory and login again
- Check if
CLAUDE_CONFIG_DIRis set correctly
- Use descriptive project folders to remember which profile to use
- Set up keyboard shortcuts for frequently used commands
- Consider creating aliases for shorter commands
- Keep your work and personal projects in separate root directories
If this project helped you, please consider giving it a star! β
Have questions or suggestions? Open an issue on GitHub!