Skip to content

Instantly share code, notes, and snippets.

@faxik
faxik / claude-switch-multi.sh
Created February 17, 2026 13:50
Claude multi-subscription switch with session history / plans preservation
#!/bin/bash
# Claude Code Multi-Account Switcher
# Usage: ./claude-switch-multi.sh [account_name|save-current|list|status]
set -euo pipefail
CLAUDE_DIR="$HOME/.claude"
CLAUDE_CONFIG="$HOME/.claude.json"
BACKUP_DIR="$HOME/.claude-accounts"