You don't need claude code router to use GLM, just set the env var to the GLM url. Also, I generally advise people not to bother with claude code router, Bifrost can do the same job and it's much better software.
Quick glance over readme suggest it's only openai compatible but I also found HN post [1] explaining use of claude code with ollama
But anyways, claude-code-router have advantage of allowing request transformers, those are required for getting GitHub copilot as provider and grok-code limitations to messages format.
That's only if you are using on Z.AI API platform... If you are using from OpenRouter, Chutes, Vercel then it's different (or they expose Anthropics API style and I don't know)
Quick glance over readme suggest it's only openai compatible but I also found HN post [1] explaining use of claude code with ollama
But anyways, claude-code-router have advantage of allowing request transformers, those are required for getting GitHub copilot as provider and grok-code limitations to messages format.
[1] https://news.ycombinator.com/item?id=45127509