FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Utilities / Utilidades Claude Code + GLM-5.1 (using Ollama and direct!)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Claude Code + GLM-5.1 (using Ollama and direct!)
Posted: Sun Apr 12, 2026 03:44 AM

ollama signin

ollama launch claude --model glm-5.1:cloud

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Claude Code + GLM-5.1 (using Ollama)
Posted: Sun Apr 12, 2026 04:06 AM

It works really well :idea:

And it seems to be totally free :wink:

edited: It is not free :cry:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Claude Code + GLM-5.1 (using Ollama)
Posted: Sun Apr 12, 2026 05:09 AM

Investigating other ways... :wink:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Claude Code + GLM-5.1 (using Ollama)
Posted: Tue Apr 14, 2026 10:26 PM

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 %*
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion