Created
October 30, 2025 04:50
-
-
Save hongkongkiwi/df30df3b0157df98575b388a26ab4b1e to your computer and use it in GitHub Desktop.
glm zsh alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| glm() { | |
| unset ANTHROPIC_API_KEY | |
| unset HTTP_PROXY | |
| unset HTTPS_PROXY | |
| export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic" | |
| export ANTHROPIC_AUTH_TOKEN="<YOUR_API_KEY>" | |
| export ANTHROPIC_MODEL="glm-4.6" | |
| export ANTHROPIC_DEFAULT_OPUS_MODEL="glm-4.6" | |
| export ANTHROPIC_DEFAULT_SONNET_MODEL="glm-4.6" | |
| export ANTHROPIC_DEFAULT_HAIKU_MODEL="glm-4.5-air" | |
| export CLAUDE_CODE_SUBAGENT_MODEL="glm-4.6" | |
| export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 | |
| claude $@ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment