A simple GUI application for managing Claude Code API configurations - easily switch between Claude subscription, Z.ai API, and custom endpoints.
- New Feature: Advanced Model Selection for Z.ai
- Screenshot
- Recent Updates
- Important Update - Settings.json Only
- Features
- Requirements
- Platform Support
- Installation
- Usage
- Pro Tips
- Model Selection Guide
- How It Works
- License
Now you can choose specific GLM models for each Claude tier when using Z.ai:
- GLM-4.6: Most capable, best for complex reasoning and coding tasks
- GLM-4.5: Balanced performance, good for most everyday tasks
- GLM-4.5-Air: Fastest response time, ideal for quick queries and simple tasks
Mix and match models based on your needs - use GLM-4.6 for Opus (complex tasks) and GLM-4.5-Air for Haiku (quick responses)!
Claude Code EZ Switch has reached its stable v1.0 release! This milestone includes:
- β Stable and tested core functionality
- β Windows executable (.exe) available for easy installation
- β Cross-platform compatibility verified
- β Complete feature set with advanced model selection
Windows users can now download the pre-built .exe file from the GitHub Releases page - no Python installation required!
Fixed a critical error that was preventing the app from opening on Windows due to an unnecessary dependency that was present. The application now launches properly on all Windows systems.
Claude Code EZ Switch now works completely differently!
The app no longer modifies your system environment variables or shell configuration files. Instead, it only updates Claude Code's internal settings file (~/.claude/settings.json).
- No System Pollution: Your terminal and other applications are unaffected
- Faster Switching: No need to restart terminals or source shell files
- Cleaner Operation: Only affects Claude Code, nothing else
- Better Security: Configuration is isolated to Claude Code only
- Before: Modified system environment variables and shell files (.bashrc, .zshrc, etc.)
- Now: Only updates
~/.claude/settings.json
- Apply configuration in the app
- Just restart Claude Code (VS Code extension or CLI)
- No terminal restart or shell sourcing needed!
- 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 (Opus, Sonnet, Haiku)
- 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
- No Python installation required
- Just download and run the .exe file
- Python 3.7+
- Windows, Linux, or macOS
- Claude Code CLI
- Windows: Full support (including pre-built .exe)
- Linux: Full support (Python source)
- macOS: Full support (Python source)
- Go to the GitHub Releases page
- Download
claude-code-ez-switch-v1.0.exe - Run the executable - no installation needed!
git clone https://github.com/techcow2/claude-code-ez-switch.git
cd claude-code-ez-switch
python ezswitch.py- Double-click
claude-code-ez-switch-v1.0.exeto launch the app - 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 for each tier (Opus, Sonnet, Haiku)
- Click Apply Configuration
- Just restart Claude Code - no terminal restart needed!
- Launch the app with
python ezswitch.py - 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 for each tier (Opus, Sonnet, Haiku)
- 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
- Model Selection: Mix and match GLM models based on your needs - use GLM-4.6 for complex tasks, GLM-4.5-Air for faster responses
- Settings are applied instantly to
~/.claude/settings.json
- GLM-4.6: Most capable, best for complex reasoning and coding tasks
- GLM-4.5: Balanced performance, good for most everyday tasks
- GLM-4.5-Air: Fastest response time, ideal for quick queries and simple tasks
Configures these settings in ~/.claude/settings.json:
ANTHROPIC_AUTH_TOKEN: Your Z.ai API keyANTHROPIC_BASE_URL:https://api.z.ai/api/anthropicANTHROPIC_DEFAULT_OPUS_MODEL: Your selected GLM model for Opus tierANTHROPIC_DEFAULT_SONNET_MODEL: Your selected GLM model for Sonnet tierANTHROPIC_DEFAULT_HAIKU_MODEL: Your selected GLM model for Haiku tierAPI_TIMEOUT_MS:3000000(50-minute timeout)
Choose the perfect GLM model for each Claude tier:
- Available Models: GLM-4.6, GLM-4.5, GLM-4.5-Air
- Opus Model: Select which GLM model to use for Claude Opus requests
- Sonnet Model: Select which GLM model to use for Claude Sonnet requests
- Haiku Model: Select which GLM model to use for Claude Haiku requests
- Flexible Configuration: Mix and match models based on your needs (e.g., GLM-4.6 for Opus, GLM-4.5-Air for Haiku)
- Clears all custom settings to use your default Claude subscription
- Removes ANTHROPIC_* variables from settings.json
- Configures any API endpoint with your custom base URL and auth token
- Sets
ANTHROPIC_AUTH_TOKENandANTHROPIC_BASE_URLto your values
- App configuration stored in
~/.claude_ez_switch/config.json - Only modifies
~/.claude/settings.json - Never touches system environment variables or shell files
- Settings apply instantly - just restart Claude Code
MIT

