A simple GUI application for managing Claude Code API configurations - easily switch between Claude subscription, Z.ai API, and custom endpoints.
- Download the latest
.exefrom the Releases page - Run the executable - no installation required!
git clone https://github.com/techcow2/claude-code-ez-switch.git
cd claude-code-ez-switch
python ezswitch.py- Launch the application
- Select Z.ai, Claude Subscription, or Custom
- Enter your API key and base URL (if applicable)
- For Z.ai users: Choose your preferred GLM models (GLM-4.6, GLM-4.5, GLM-4.5-Air) for each tier
- Click Apply Configuration
- Just restart Claude Code - no terminal restart needed!
- Use the "Show Claude Settings" checkbox to see your current configuration
- Check "Show API Keys" to view sensitive values in the settings display
- Mix and match GLM models based on your needs (see guide below)
- Settings are applied instantly to
~/.claude/settings.json
- Easy GUI Interface: No command line required
- One-Click Switching: Toggle between Z.ai, Claude subscription, and custom APIs
- Advanced Model Selection: Choose specific GLM models for each Claude tier
- Secure Local Storage: API keys saved locally in
~/.claude_ez_switch/ - Real-time Status: Visual feedback for configuration changes
- Cross-Platform: Works on Windows, Linux, and macOS
- Settings-Only: Modifies only Claude Code settings.json, never system environment
When using Z.ai, you can choose from three GLM models:
- GLM-4.6: Most capable, best for complex reasoning and coding tasks
- GLM-4.5: Balanced performance, good for everyday tasks
- GLM-4.5-Air: Fastest response time, ideal for quick queries
Strategy: Use GLM-4.6 for Opus (complex tasks), GLM-4.5 for Sonnet (general use), and GLM-4.5-Air for Haiku (quick responses).
The app only modifies ~/.claude/settings.json - no system environment variables or shell files are touched.
Configures:
ANTHROPIC_AUTH_TOKEN: Your Z.ai API keyANTHROPIC_BASE_URL:https://api.z.ai/api/anthropicANTHROPIC_DEFAULT_OPUS_MODEL: Your selected GLM model for OpusANTHROPIC_DEFAULT_SONNET_MODEL: Your selected GLM model for SonnetANTHROPIC_DEFAULT_HAIKU_MODEL: Your selected GLM model for HaikuAPI_TIMEOUT_MS:3000000(50-minute timeout)
Clears all custom settings to use your default Claude subscription.
Configures any API endpoint with your custom base URL and auth token.
MIT
