ollama signin
ollama launch claude --model glm-5.1:cloud
ollama signin
ollama launch claude --model glm-5.1:cloud
It works really well :idea:
And it seems to be totally free :wink:
edited: It is not free :cry:
Investigating other ways... :wink:
Se puede usar con una key directamente desde https://z.ai/manage-apikey/billing
funciona muy bien
claude-glm51.bat
@echo off
REM Launch Claude Code using z.ai GLM-5.1 as the backend.
set "ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic"
set "ANTHROPIC_AUTH_TOKEN=b61..."
set "ANTHROPIC_DEFAULT_OPUS_MODEL=glm-5.1"
set "ANTHROPIC_DEFAULT_SONNET_MODEL=glm-5.1"
set "ANTHROPIC_DEFAULT_HAIKU_MODEL=glm-4.5-air"
claude %*