For models available via Anthropic-compatible (currently Kimi-K2, GLM, Deepseek), the simplest way to use them with CC is by setting up a function in .zshrc:
That's what I did to try it out but you don't have to export the vars.
VAR=value cmd
Will work to run cmd with value for VAR. Honestly it works pretty well. I wonder how much of the magic is in Claude code the tool and prompts vs the LLM
It can be used with the following endpoint, but it's not particularly good
export ANTHROPIC_BASE_URL=https://dashscope-intl.aliyuncs.com/api/v2/apps/claude-code-...
By the way, I'm benchmarking these comparisons: https://github.com/laiso/ts-bench/blob/main/src/agents/build...