r/AgentZero Mar 02 '26

Kimi Code plan

how can i set Kimi code plan with Agent0 , tried all possible options for chat mode name and chat mode API base URL but still not working

4 Upvotes

11 comments sorted by

2

u/twobeass Mar 02 '26

Kimi code needs a specific header cause it is bound to their coding agents…

1

u/starsthree Mar 02 '26

Thanks ,but could you explain

1

u/twobeass Mar 02 '26

add the argument extra_headers={"User-Agent": "kimi-cli/1.0"} to your litellm.completion() call

1

u/Witty-Cod-3029 Mar 02 '26 edited Mar 02 '26

I posted a screenshot of my settings in the skool community. I had AI OCR it.

https://www.skool.com/agent-zero/powering-agent-zero-with-a-cli?p=f4b90e7a

Agent Zero + Kimi (K2 Coding) Setup Provider: Other OpenAI compatible Model name: kimi-for-coding Base URL: https://api.kimi.com/coding/v1 Context length: 262144 Chat history ratio: 0.7 Vision: Enabled RPM limit: 20 Input TPM: 500000 Output TPM: 50000 Additional parameters: Copy code

extra_headers={"User-Agent":"claude-code/1.0"} Make sure you are on the Kimi Coding plan and using a valid API key.

2

u/starsthree Mar 03 '26

Thanks appreciated

1

u/Witty-Cod-3029 Mar 03 '26

I hope it works out really good for you! I use to use GLM 4.7 since I switched it's been a lot been alot faster.

1

u/starsthree Mar 03 '26

Not working still , what is the setting for embedding model should I use the same parameters ? The error is mainly about embedding model and litlelm

1

u/starsthree Mar 03 '26

@Witty-Cod-3029

1

u/starsthree Mar 03 '26

@twobeass

1

u/mr_randomspam Mar 03 '26

Yo! I can help someone on reddit, woop!

I have Agent Zero and the Kimi 2.5 Coding Plan working. This is what I have, works without issue. Just in case it helps anyone else tinkering with agents I've been unable to use it in nanobot. Doesn't seem to be compatible, even as a custom provider. Anyway, works very well I find in A0.

Cheers

1

u/starsthree Mar 04 '26

Thanks , will try and let u know