That tends to work quite poorly because Claude Code does not use standard completions APIs. I tried it with Kimi, using litellm[proxy], and it failed in too many places.
Just connect Claude Code to Kimi's API endpoint and everything works well
https://www.kimi.com/code/docs/en/more/third-party-agents.ht...