←back to thread

210 points vincirufus | 1 comments | | HN request time: 0.283s | source
1. askmuhsin2 ◴[] No.45165735[source]
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.