-
-
Save lexrus/b3e883462a941ecdf856237e57c121c0 to your computer and use it in GitHub Desktop.
/usr/local/bin/glm
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
| #!/bin/bash | |
| export ANTHROPIC_AUTH_TOKEN=___REPLACE_ME_WITH_YOUR_ZAI_API_KEY___ | |
| export ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic | |
| export API_TIMEOUT_MS=3000000 | |
| export ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-4.5-air | |
| export ANTHROPIC_DEFAULT_SONNET_MODEL=glm-4.6 | |
| export ANTHROPIC_DEFAULT_OPUS_MODEL=glm-4.6 | |
| $HOME/.claude/local/claude --dangerously-skip-permissions |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember to
chmod +x /usr/local/bin/glm