Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just register a subscription [1] with z.ai (company behind the GLM models), get an API key [2], and then put something like this in your ~/.zshrc or ~/.bashrc, etc:

    alias zcc='ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic" ANTHROPIC_AUTH_TOKEN="your z.ai api key" claude --model GLM-4.6'
1. https://z.ai/subscribe

2. https://z.ai/manage-apikey/apikey-list



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: