Skip to content

πŸš€ Run multiple Claude Desktop instances simultaneously on macOS with independent configurations, accounts, and MCP server settings

License

Notifications You must be signed in to change notification settings

weidwonder/claude-desktop-multi-instance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Claude Desktop Multi-Instance Launcher

πŸš€ Run multiple Claude Desktop instances simultaneously on macOS with independent configurations, accounts, and MCP server settings

πŸ“– Documentation Language / 文摣语言:

πŸ“Έ Screenshots

Multi-Window Running Effect

Multi-instance demo

Spotlight Search Integration

Spotlight search showing multiple Claude instances

Use Spotlight (⌘+Space) to quickly find and launch different Claude instances. Each app wrapper shows up as a separate application that maintains its login state and configuration.

Custom Display Names in Dock

First instance name Second instance name

When hovering over icons in the Dock, each instance displays its own custom name instead of just "Claude"

✨ Features

  • πŸ”„ Multi-Instance Management - Run multiple independent Claude Desktop instances on the same machine
  • 🏷️ Custom Display Names - Show different app names in Dock (e.g., "Claude Work", "Claude Personal")
  • βš™οΈ Independent Configurations - Each instance has its own MCP server config and login credentials
  • πŸ“± App Wrappers - Create independent app icons for direct Launchpad access
  • πŸ” Spotlight Integration - Find and launch instances quickly using Spotlight search (⌘+Space)
  • πŸ› οΈ Smart Diagnostics - Built-in problem diagnosis and repair tools
  • πŸ’‘ User-Friendly - Both interactive menu and command-line interfaces

πŸ“‹ System Requirements

  • macOS 11 (Big Sur) or later
  • Claude Desktop app (download from claude.ai/download)
  • Bash shell (built into macOS)

πŸš€ Quick Start

1. Download and Setup

# Clone the repository
git clone https://github.com/weidwonder/claude-desktop-multi-instance.git
cd claude-desktop-multi-instance

# Make script executable
chmod +x claude_quick.sh

Or download the script directly:

# Download single script file
curl -O https://raw.githubusercontent.com/weidwonder/claude-desktop-multi-instance/main/claude_quick.sh
chmod +x claude_quick.sh

2. First Use

# Run script to show menu
./claude_quick.sh

# Or directly create and launch an instance
./claude_quick.sh work

πŸ“– Usage Guide

Interactive Menu Mode

Run ./claude_quick.sh to display the menu:

======================================
    Claude Desktop Quick Launcher
======================================

Available options:
1. Launch default instance
2. Select existing instance
3. Create new instance
4. Delete specified instance
5. Create app wrapper (independent icon)
6. Restore original configuration
7. Diagnose problems
8. Fix wrappers

Command Line Mode

# Launch or create instance
./claude_quick.sh [instance_name]

# Management commands
./claude_quick.sh list                 # List all instances
./claude_quick.sh delete [instance]    # Delete instance
./claude_quick.sh wrapper [instance]   # Create app wrapper
./claude_quick.sh diagnose             # Diagnose problems
./claude_quick.sh fix                  # Fix wrappers
./claude_quick.sh restore              # Restore original config

πŸ’Ό Use Cases

Scenario 1: Separate Work and Personal Accounts

# Create work instance
./claude_quick.sh work
# Login with work account, configure work-related MCP servers

# Create personal instance
./claude_quick.sh personal
# Login with personal account, configure personal MCP servers

Scenario 2: Different Project Configurations

# Project A - with filesystem and web search MCP
./claude_quick.sh project-a

# Project B - with database and API MCP
./claude_quick.sh project-b

# Development environment - with Git and testing tools MCP
./claude_quick.sh dev

Scenario 3: Create App Wrappers

# Create independent app icon for work instance
./claude_quick.sh wrapper work
# Enter display name: Claude Work

# Now you can launch "Claude Work" directly from Launchpad or Spotlight
# It will show as "Claude Work" instead of "Claude" in Dock
# Each wrapper maintains its own login state and configuration

πŸ“ File Structure

~/.claude-instances/                    # Instance data directory
β”œβ”€β”€ work/                              # Work instance
β”‚   └── Application Support/Claude/
β”‚       └── claude_desktop_config.json
β”œβ”€β”€ personal/                          # Personal instance
β”‚   └── Application Support/Claude/
β”‚       └── claude_desktop_config.json
└── scripts/                           # Helper scripts
    β”œβ”€β”€ restore.sh                     # Quick restore config
    └── list.sh                        # List all instances

/Applications/                          # App wrappers
β”œβ”€β”€ Claude.app                         # Original app
β”œβ”€β”€ Claude-work.app                    # Work instance wrapper
└── Claude-personal.app                # Personal instance wrapper

πŸ”§ Troubleshooting

Issue: App wrapper won't launch

Solution:

# 1. Run diagnostics
./claude_quick.sh diagnose

# 2. Fix wrappers
./claude_quick.sh fix

# 3. If still not working, recreate
rm -rf /Applications/Claude-work.app
./claude_quick.sh wrapper work

Issue: Claude Desktop not found

Solution:

  1. Ensure Claude Desktop is downloaded and properly installed from claude.ai/download
  2. Confirm the app is located at /Applications/Claude.app
  3. Run ./claude_quick.sh diagnose to check installation status

Issue: Instance configuration lost

Solution:

# Restore original configuration
./claude_quick.sh restore

# Check backup files
ls -la ~/Library/Application\ Support/Claude.backup.*

Issue: Icon display problems

Solution:

# Fix icons
./claude_quick.sh fix

# Or recreate app wrapper
./claude_quick.sh wrapper [instance_name]

πŸ“Š Command Reference

Command Description Example
./claude_quick.sh Show interactive menu ./claude_quick.sh
./claude_quick.sh [instance] Launch or create instance ./claude_quick.sh work
./claude_quick.sh list List all instances ./claude_quick.sh list
./claude_quick.sh delete [instance] Delete specified instance ./claude_quick.sh delete old
./claude_quick.sh wrapper [instance] Create app wrapper ./claude_quick.sh wrapper work
./claude_quick.sh diagnose Diagnose problems ./claude_quick.sh diagnose
./claude_quick.sh fix Fix wrappers ./claude_quick.sh fix
./claude_quick.sh restore Restore original config ./claude_quick.sh restore

πŸ”’ Security Considerations

  1. Configuration Backup: Script automatically backs up original configs, but manual backups are recommended
  2. Sensitive Information: Each instance stores login information independently
  3. Permission Control: App wrappers use the same permissions as original Claude app
  4. Data Isolation: Different instances' data is completely isolated

❓ Frequently Asked Questions

Q: Can I run multiple instances simultaneously?
A: No. macOS limits to one Claude Desktop instance at a time, but you can quickly switch between them.

Q: Will chat history sync between instances?
A: No. Different instances use different accounts, so chat history won't sync.

Q: How do I backup instance configurations?
A: Copy the ~/.claude-instances/[instance_name] directory to backup the entire instance configuration.

Q: Can I import/export MCP configurations?
A: Yes. Copy the claude_desktop_config.json file to share MCP configurations between instances.

🀝 Technical Support

If you encounter issues:

  1. First run ./claude_quick.sh diagnose for automatic diagnosis
  2. Check the troubleshooting section in this document
  3. Ensure Claude Desktop app is the latest version
  4. Check macOS system version compatibility

πŸ“„ License

MIT License - Free to use and modify


πŸ’‘ Tip: This tool is especially useful for users who need to manage multiple Claude accounts or different MCP server configurations simultaneously. Each instance is completely independent and can be safely used in different work environments.

About

πŸš€ Run multiple Claude Desktop instances simultaneously on macOS with independent configurations, accounts, and MCP server settings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages