-
Notifications
You must be signed in to change notification settings - Fork 12.9k
How to dispatch to Kimi K2.5 #948
-
Absolutely love this repo. Just curious as I am kinda new to using these tools. How would one forward requests to Kimi K2.5, to save on the Anthropic bill?
Something like?
- Get a Moonshot API key from [platform.moonshot.ai](https://platform.moonshot.ai/)
- Swap the nanoclaw config to point at https://api.moonshot.ai/v1 with the Moonshot key and model name kimi-k2.5
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Late to this, but in case it's still useful — I've been running NanoClaw on Kimi daily for a while, and your instinct is right. Just one correction on the endpoint.
Moonshot exposes an Anthropic-compatible API at https://api.moonshot.ai/anthropic (the /v1 you mentioned is their OpenAI-compatible route). Because NanoClaw drives the Claude Agent SDK, pointing it at the Anthropic-compatible endpoint means it works with no code changes, the SDK speaks the Anthropic wire format and Moonshot answers it.
Concretely, set these on the agent container:
- ANTHROPIC_BASE_URL=https://api.moonshot.ai/anthropic
- ANTHROPIC_AUTH_TOKEN="your Moonshot key"
- model: kimi-k2.5 (or kimi-k2.6, the current one)
That's it, no provider plumbing required. Solid in daily use, and a big drop from the Anthropic bill.
I estimate Kimi 2.6 is 20% of the Sonnet 4.6 costs with no noticeable drop in quality.
Beta Was this translation helpful? Give feedback.