Reading time: 5 minutes | Skill level: Beginner | Prerequisites: Claude Code CLI installed
Get up and running in 2 minutes
📖 New to Claude Code? Start with the Claude Code Ultimate Guide to learn the basics before configuring multiple providers.
What you'll achieve:
- ✅ Install cc-copilot-bridge and verify setup
- ✅ Run your first command successfully
- ✅ Know which command to use daily
Clean, dependency-managed, easy updates - no script execution needed
Homebrew (macOS/Linux)
brew tap FlorianBruniaux/tap
brew install cc-copilot-bridge
eval "$(claude-switch --shell-config)"Add to ~/.zshrc or ~/.bashrc:
eval "$(claude-switch --shell-config)"Update: brew upgrade claude-switch
Uninstall: brew uninstall claude-switch
Debian/Ubuntu (.deb)
VERSION="1.5.3" # Check releases for latest
wget https://github.com/FlorianBruniaux/cc-copilot-bridge/releases/download/v${VERSION}/claude-switch_${VERSION}.deb
sudo dpkg -i claude-switch_${VERSION}.deb
eval "$(claude-switch --shell-config)"Add to ~/.bashrc:
eval "$(claude-switch --shell-config)"Uninstall: sudo dpkg -r claude-switch
RHEL/Fedora (.rpm)
VERSION="1.5.3" # Check releases for latest
wget https://github.com/FlorianBruniaux/cc-copilot-bridge/releases/download/v${VERSION}/claude-switch-${VERSION}-1.noarch.rpm
sudo rpm -i claude-switch-${VERSION}-1.noarch.rpm
eval "$(claude-switch --shell-config)"Add to ~/.bashrc:
eval "$(claude-switch --shell-config)"Uninstall: sudo rpm -e claude-switch
Full guide: PACKAGE-MANAGERS.md
Respects your shell config - asks before modifying .zshrc/.bashrc
curl -fsSL https://raw.githubusercontent.com/FlorianBruniaux/cc-copilot-bridge/main/install.sh | bashWhat it does:
- ✅ Downloads
claude-switchto~/bin/ - ✅ Creates
~/.claude/aliases.shwith all aliases - ✅ ASKS if you want automatic
.zshrcmodification - ✅ Provides instructions for antigen, oh-my-zsh, zinit, etc.
- ✅ Verifies prerequisites
After install: Choose your integration method (see INSTALL-OPTIONS.md)
- Standard:
source ~/.zshrc - Antigen: Add
antigen bundle ~/.claude/aliases.shto.zshrc - Oh-My-Zsh: Link as custom plugin
Perfect if you want to review every step or customize the installation.
Verify you have the required tools:
# Check Claude Code CLI
claude --version
# If missing: npm install -g @anthropic-ai/claude-code
# Check netcat (for provider health checks)
nc -h 2>&1 | head -1
# If missing:
# macOS: brew install netcat
# Linux: sudo apt-get install netcat# Create binary directory
mkdir -p ~/bin
# Create logs directory
mkdir -p ~/.claudeOption A: With curl
curl -fsSL https://raw.githubusercontent.com/FlorianBruniaux/cc-copilot-bridge/main/claude-switch \
-o ~/bin/claude-switchOption B: With wget
wget -q https://raw.githubusercontent.com/FlorianBruniaux/cc-copilot-bridge/main/claude-switch \
-O ~/bin/claude-switchOption C: Clone repository (for local development)
git clone https://github.com/FlorianBruniaux/cc-copilot-bridge.git
cp cc-copilot-bridge/claude-switch ~/bin/chmod +x ~/bin/claude-switchDetect your shell:
echo $SHELL
# Output: /bin/zsh → Use ~/.zshrc
# Output: /bin/bash → Use ~/.bashrcAdd aliases to shell config (~/.zshrc or ~/.bashrc):
# For zsh users
cat >> ~/.zshrc << 'EOF'
# Claude Code Multi-Provider
export PATH="$HOME/bin:$PATH"
alias ccd='claude-switch direct'
alias ccc='claude-switch copilot'
alias cco='claude-switch ollama'
alias ccs='claude-switch status'
# Copilot Model Shortcuts
alias ccc-opus='COPILOT_MODEL=claude-opus-4-6 claude-switch copilot'
alias ccc-sonnet='COPILOT_MODEL=claude-sonnet-4-6 claude-switch copilot'
alias ccc-haiku='COPILOT_MODEL=claude-haiku-4.5 claude-switch copilot'
alias ccc-gpt='COPILOT_MODEL=gpt-4.1 claude-switch copilot'
alias ccc-gemini='COPILOT_MODEL=gemini-2.5-pro claude-switch copilot'
EOF
# For bash users, replace ~/.zshrc with ~/.bashrc in the command aboveManual alternative (if you prefer editing manually):
- Open
~/.zshrc(or~/.bashrc) in your editor - Scroll to the end of the file
- Copy-paste the alias block above
- Save and close
source ~/.zshrc # or source ~/.bashrc# Test that claude-switch is in PATH
which claude-switch
# Expected output: /Users/yourname/bin/claude-switch
# Test aliases
ccs
# Expected output: Provider status tableExpected output:
=== Claude Code Provider Status ===
Anthropic API: ✓ Reachable
copilot-api: ✗ Not running (install with: npm install -g copilot-api)
Ollama: ✗ Not running (install with: brew install ollama)
=== Recent Sessions ===
(no logs yet)
| Issue | Solution |
|---|---|
claude-switch: command not found |
Run source ~/.zshrc or restart terminal |
Permission denied |
Run chmod +x ~/bin/claude-switch |
| Aliases not working | Check you added to correct file (~/.zshrc vs ~/.bashrc) |
~/bin not in PATH |
Add export PATH="$HOME/bin:$PATH" to shell config |
- ✅ Review every command before execution
- ✅ Understand what's installed (single script + aliases)
- ✅ Avoid "curl | bash" pattern security concerns
- ✅ Customize paths if needed
Manual installation touches exactly 3 locations:
| Location | Purpose | Reversible? |
|---|---|---|
~/bin/claude-switch |
Main script (334 lines) | ✅ Yes: rm ~/bin/claude-switch |
~/.zshrc (or ~/.bashrc) |
Aliases block (11 lines) | ✅ Yes: Remove block manually |
~/.claude/ |
Log files directory | ✅ Yes: rm -rf ~/.claude |
# Download and inspect before installing
curl -fsSL https://raw.githubusercontent.com/FlorianBruniaux/cc-copilot-bridge/main/claude-switch \
-o /tmp/claude-switch-preview
# Review the script
less /tmp/claude-switch-preview
# Check file integrity (optional)
shasum -a 256 /tmp/claude-switch-preview
# Compare with published checksum at:
# https://github.com/FlorianBruniaux/cc-copilot-bridge/releases
# Install after verification
mv /tmp/claude-switch-preview ~/bin/claude-switch
chmod +x ~/bin/claude-switch# Remove script
rm ~/bin/claude-switch
# Remove aliases (manual edit)
# Open ~/.zshrc or ~/.bashrc
# Delete the "Claude Code Multi-Provider" block
# Remove logs (optional)
rm -rf ~/.claude
# Reload shell
source ~/.zshrc # or ~/.bashrcPrerequisites:
- ✅ GitHub Copilot Pro ($10/mo) or Pro+ ($39/mo) subscription active
- ✅ copilot-api running (
copilot-api startin separate terminal)
# Launch Claude Code with Copilot bridge
ccc
# Try asking something
❯ What model am I talking to?What to expect:
Claude Sonnet 4.6 (Default Model):

Note: Model correctly identifies as "Claude Sonnet 4.6" (via system prompt injection)
# Claude Opus (premium quality)
ccc-opus
❯ Analyze this architecture diagram
# GPT-4.1 (OpenAI)
ccc-gpt
❯ Compare Python vs JavaScript for data processing
# Ollama Offline (100% private)
cco
❯ Review this proprietary encryption algorithmVisual Examples:
ccsExpected output:
=== Claude Code Provider Status ===
Anthropic API: ✓ Reachable
copilot-api: ✗ Not running
Ollama: ✗ Not running
=== Recent Sessions ===
(no logs yet)
If you have ANTHROPIC_API_KEY set:
ccdYou're in! Start coding with Claude.
Requirements: Active Copilot Pro ($10/mo) or Pro+ ($39/mo) subscription
Note: Usage consumes your premium request quota. See Pricing & Limits for details.
# 1. Install copilot-api
npm install -g copilot-api
# 2. Start and authenticate
copilot-api start
# Follow the GitHub authentication flowcopilot-api proxy server running with authentication logs
# 3. Test
cccKeep copilot-api running in a terminal or set up auto-start (see README.md).
Requirements: 10-20GB disk space for models
# 1. Install Ollama
brew install ollama # macOS
# or download from https://ollama.ai
# 2. Start server
ollama serve &
# 3. Pull a coding model (choose one)
ollama pull devstral-small-2 # Best agentic (default)
# or
ollama pull ibm/granite4:small-h # Long context, less VRAM
# 4. Test
ccoccd # Anthropic (official API)
ccc # Copilot (uses quota)
cco # Ollama (offline)
ccs # Check statusccc-opus # Claude Opus 4.6 (3x quota)
ccc-sonnet # Claude Sonnet 4.6 (1x quota)
ccc-haiku # Claude Haiku 4.5 (0.33x quota)
ccc-gpt # GPT-4.1 (0x = free)ccc -c # Resume session
ccd --model opus # Use Opus with Anthropic# Use GPT-4.1 for routine tasks (doesn't consume quota)
ccc-gpt
> Help me understand this React project structure
# Use Claude Sonnet for complex logic (1x quota)
ccc-sonnet
> Add user authentication with JWT
# Use Anthropic Direct for production review (official API)
ccd
> Review this code for security issues
# Private code: Use local model
cco
> Analyze this proprietary algorithmnpm install -g @anthropic-ai/claude-codecopilot-api startKeep it running in a separate terminal.
ollama pull devstral-small-2# Check script is installed
which claude-switch
# Should output: /Users/yourname/bin/claude-switch
# Check aliases are loaded
alias ccs
# Should output: alias ccs='claude-switch status'- Read README.md for full documentation
- Check MODEL-SWITCHING.md for model selection strategies
- See ARCHITECTURE.md for advanced setup
That's it! You're ready to use cc-copilot-bridge.
For a printable quick reference, see Cheatsheet.
Now that you're set up:
- 📖 Learn all commands → Command Reference
- 🎯 Choose right tool → Decision Trees
- 📋 Print reference → Cheatsheet
- 🆘 Troubleshooting → Common Issues
- Questions? Check the FAQ
- Issues? See Troubleshooting Guide
- Bug reports: Open an issue
Related Documentation:



