A tool for switching between different Claude Code service providers.
- Switch between multiple Claude Code providers with a simple command
- Interactive provider selection menu
- Support for custom API endpoints and authentication
- Environment variable management for different providers
brew tap iuhoay/claude-code-bridge
brew install claude-code-bridge-
Make the
ccbscript executable:chmod +x ccb
-
Move it to your PATH (optional):
mv ccb /usr/local/bin/
Create a configuration file at ~/.config/claude_code_bridge/providers.json:
{
"providers": {
"anthropic": {
"name": "Anthropic Official",
"description": "Uses Claude Code's default configuration, no environment variables needed"
},
"z_ai": {
"name": "Z.AI",
"base_url": "https://api.z.ai/api/anthropic",
"auth_token": "your_z_ai_token_here",
"model": "GLM-4.5",
"small_model": "GLM-4.5-X"
}
}
}ccbccb anthropic
ccb z_ai --helpccb --helpjqfor JSON parsing- Claude Code installed
CCB_CONFIG_DIR: Configuration directory (default:~/.config/claude_code_bridge)CCB_CONFIG_FILE: Configuration file path (default:$CCB_CONFIG_DIR/providers.json)