← Back to context

Comment by sidgtm

2 days ago

I am quite impressed with this model. Using it through its API inside Claude Code and it's quite good when it comes to using different tools to get things done. No more weekly limit drama of Claude also their quarterly plan is available for just $8

Can we use Claude models by default in Claude Code and then switch to GLM models if claude hits usage limits?

  • This 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).

They have a promo now to get a whole year for like $25. On the lite plan.