←back to thread

210 points vincirufus | 1 comments | | HN request time: 0.213s | source
Show context
arjie ◴[] No.45145744[source]
Okay, I'm going to try it, but why didn't you link the information on how to integrate it with Claude Code: https://docs.z.ai/scenario-example/develop-tools/claude

Chinese software always has such a design language:

- prepaid and then use credit to subscribe

- strange serif font

- that slider thing for captcha

But I'm going to try it out now.

replies(6): >>45145985 #>>45146764 #>>45146977 #>>45147778 #>>45148478 #>>45155380 #
Szpadel ◴[] No.45146977[source]
you can use any model with Claude code thanks to https://github.com/musistudio/claude-code-router

but in my testing other models do not work well, looks like prompts are either very optimized for Claude, or other models are just not great yet with such agentic environment

I was especially disappointed with grok code. it is very fast as advertised but in generating spaces and new lines in function calling until it hits max tokens. I wonder if that isn't why it gets so much tokens on openrouter.

gpt-5 just wasn't using the tools very well

I didn't tested glm yet, but with current anthropic subscription value, alternative would need to be very cheap if you consider daily use

edit: I noticed that also have very inexpensive subscription https://z.ai/subscribe, if they trained model to work well with CC this might actually be viable alternative

replies(3): >>45147046 #>>45147052 #>>45148517 #
CuriouslyC ◴[] No.45147046[source]
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.
replies(2): >>45147657 #>>45155396 #
1. Szpadel ◴[] No.45147657[source]
I wasn't aware that there is an alternative

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