3 ms·
Are you using an API proxy to route GLM into the Claude Code CLI? Or do you mean side-by-side usage? Not sure if custom endpoints are supported natively yet.
by dsrtslnd23 9mo ago
Are you using an API proxy to route GLM into the Claude Code CLI? Or do you mean side-by-side usage? Not sure if custom endpoints are supported natively yet.
- sumedh 9mo agoThis works: $ZAI_ANTHROPIC_BASE_URL=xxx $ZAI_ANTHROPIC_AUTH_TOKEN=xxx alias "claude-zai"="ANTHROPIC_BASE_URL=$ZAI_ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN=$ZAI_ANTHROPIC_AUTH_TOKEN claude" Then you can run `claude`, hit your limit, exit the session and `claude-zai -c` to continue (with context reset, of course). Someone gave me that command a while back.
- nunodonato 9mo agothats pretty much what I do, I have a bash alias to launch either the normal claude code, or the glm one
- Mashimo 9mo agoThis is the official guide: https://docs.z.ai/devpack/tool/claude https://docs.z.ai/devpack/tool/claude