A simple GUI application for managing Claude Code API configurations - easily switch between Claude subscription and Z.ai API keys.
- Easy GUI Interface: No command line required
- One-Click Switching: Toggle between Z.ai and Claude subscription
- Secure Local Storage: API keys saved locally in
~/.claude_ez_switch/ - Real-time Status: Visual feedback for configuration changes
- Cross-Platform: Windows and Linux support with platform-specific optimizations
- Python 3.7+
- Windows 10+ or Linux
- Claude Code CLI
- Windows: Full support with registry-based environment variable management
- Linux: Full support with shell configuration management (.bashrc, .zshrc, .profile)
- macOS: 🚀 Coming soon! Support for shell configuration management (.zshrc, .bash_profile, etc.)
git clone https://github.com/techcow2/claude-code-ez-switch.git
cd claude-code-ez-switch
python ezswitch.py- Launch the app with
python ezswitch.py - Select Z.ai or Claude Subscription
- Enter your Z.ai API key (if applicable)
- Click Apply Configuration
- Restart your Claude Code applications
- After applying configuration, run
source ~/.bashrc(or your shell config) or restart terminal
- Z.ai Mode: Sets
ANTHROPIC_AUTH_TOKENandANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic - Claude Mode: Removes custom environment variables to use default Claude subscription
- Configuration stored in
~/.claude_ez_switch/config.json - Updates both system environment variables and Claude Code settings
MIT