3 ms·
You can also use z.ai with Claude Code. My workflow: 1. Use Claude Code by default. 2. Use z.ai when I hit the limit Another advantage of z.ai is that you ca
by azuanrb 10mo ago
You can also use z.ai with Claude Code. My workflow:
1. Use Claude Code by default.
2. Use z.ai when I hit the limit
Another advantage of z.ai is that you can also use the API, not just CLI. All in the same subscription. Pretty useful. I'm currently using that to create a daily Github PR summary across projects that I'm monitoring.
zai() {
ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic \
ANTHROPIC_AUTH_TOKEN="$ZAI_API_KEY" \
ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-4.5-air \
ANTHROPIC_DEFAULT_SONNET_MODEL=glm-4.7 \
ANTHROPIC_DEFAULT_OPUS_MODEL=glm-4.7 \
claude "$@"
}
- beacon294 10mo agoCan you use search? Anything else missing? I use cerebras glm 4.6 thinking on aider and looking to switch some usages to claude code or opencode.