GLM 4.6 claude-code module

Have anyone managed to use GLM with claude-code module?
6 Replies
Codercord
Codercord2mo ago
Codercord
Codercord2mo ago
<#1425984623602565170>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
matifali
matifali2mo ago
Does Claude code support non Anthropic models? If it does we should be able to use it Maybe with a custom API url.
ztlod ツ
ztlod ツOP2mo ago
@matifali yeah, it does I have managed to get this working, but only on CLI, the agent API override some core envs If you start claude with those envs { "env": { "ANTHROPIC_AUTH_TOKEN": "your_zai_api_key", "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic", "API_TIMEOUT_MS": "3000000" } } It will work properly, but for some reason even i setting those with coder_env resource agent-api override with api token and default claude url I was considering some alternatives, like creating a opencode module But would be cool to have this integration on claude_code module And those { "env": { "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.5-air", "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.6", "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-4.6" } } Will be very useful for users like (solo developers) that use coding plans instead of enterprise plans I know that the module already accept subscription token, but GLM is 10x cheaper
matifali
matifali2mo ago
This is strange. AgnetAPI shouldn't override any env variables Is it over-riding the base URL too?
ztlod ツ
ztlod ツOP2mo ago
not sure, i'll run some tests here tbh i'll create a z.ai module or opencode module

Did you find this page helpful?