For me the easiest approach of having both claude code and with GLM was to just create a separate alias for like `claude-z`
something like
```
# file - ~/.claude-z-env
export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
export ANTHROPIC_AUTH_TOKEN="your_token"
# file - ~/.bash_profile
alias claude-z='source ~/.claude-z-env && claude'
```Now I just run claude for normal stuff, claude-z when I want to use GLM 4.5.