Better HN
topnewbestaskshowjobs
Log inSign up

askmuhsin2

3 karma · joined Sep 8, 2025 (1y ago) · 1 submissions

Submissions

comment 1y ago · link · parent

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.