Claude Switch banner
Mamdouh66 Mamdouh66

Claude Switch

Development community

Description

Fast profile switcher for Claude Code — swap accounts in under a second

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

claude-switch

Switching between Claude Code accounts sucks. You have to log out, log back in, wait, do it again when you want to switch back. If you have a work account and a personal account, you know the pain.

This fixes that. One command to switch, instant, done.

$ c status

  Profiles
  ────────────────────────────────────
  ● personal   max   1.7h left
  ○ work       team  7.2h left

$ c work
● Switched to work

Pure bash, zero dependencies, credentials stored securely in macOS Keychain.

Install

Homebrew

brew install Mamdouh66/tap/claude-switch

Then add to your `~/.zshrc`:

source $(brew --prefix)/share/claude-switch.zsh

One-liner

curl -fsSL https://raw.githubusercontent.com/Mamdouh66/claude-switch/main/install.sh | bash

From source

git clone https://github.com/Mamdouh66/claude-switch.git
cd claude-switch
./install.sh

Setup

First install runs a guided setup automatically. You can also run it anytime with `claude-switch setup`.

It asks you to:

  1. Pick a shortcut — c, cc, code, whatever you want
  2. Name your accounts — call them anything, not limited to "work" and "personal"
  3. Add as many accounts as you need

Or do it manually:

# You're logged into your first account
claude-switch save work

# Log into the other one
claude auth logout && claude auth login
claude-switch save personal

Usage

c work              # switch to work + launch claude
c personal          # switch to personal + launch claude
c status            # show all profiles and token health
c refresh           # refresh active profile's token
c                   # launch claude with current profile
c -p "hello"        # any flags pass through to claude

The shortcut name is configurable:

claude-switch alias cc    # now it's `cc work`, `cc status`, etc.

All commands also work directly:

claude-switch          # switch to a profile
claude-switch s