It's much easier than that, no openrouter needed Open your terminal that you normally use claude code with Type export ANTHROPIC_AUTH_TOKEN=EnterKimiv2APIHere Type export ANTHROPIC_BASE_URL= https://api.moonshot.ai/anthropic Start claude and you're done lol Kimi v2 works well with opencode too but to be honest, I'm finding it to be quite slow. Answer from ayowarya on reddit.com
🌐
Reddit
reddit.com › r/vibecoding › how i'm using kimi k2 in claude code
r/vibecoding on Reddit: How I'm using Kimi K2 in Claude Code
July 14, 2025 -

Kimi K2 is a pretty interesting model, I'm getting good results when compared to Sonnet 4 and paying 80% less by using it through OpenRouter. So here it goes a small guide if you want to give it a try!

  1. Create an account at https://openrouter.ai/ and grab your API key

  2. Run: npm install -g u/anthropic-ai/claude-code

  3. Run: ​npm install -g u/musistudio/claude-code-router

  4. Add the content of this gist to your ~/.claude-code-router/config.json (update it with your OpenRouter API key)

  5. Run: ccr code

And that's it!

Cool thing is that you can edit the config.json file and add any other LLM available in openrouter.ai !

If you want more tips and tricks about AI coding like that, check https://aicode.guide !

🌐
Medium
medium.com › @hungry.soul › vibe-coding-with-claude-code-groq-kimi-k2-ef814bbcdac5
Vibe coding with Claude Code + Groq + Kimi K2 | by Hungrysoul | Medium
July 16, 2025 - Just to give you an idea why I’m excited, here’s a quick comparison between Kimi K2 on Groq and Claude Sonnet 4 from Anthropic: ... Yup, that’s right — it’s nearly 3x faster and about 5x cheaper per token. Pretty hard to beat. The best part? The setup takes about five minutes. Here’s how you do it: First, install Claude Code and Claude Code Router:
🌐
GitHub
github.com › musistudio › claude-code-router › issues › 245
About kimi-k2 · Issue #245 · musistudio/claude-code-router
July 18, 2025 - I know many people are currently accessing Kimi through CCR, but unfortunately, most unofficial APIs are using quantized versions of the model. Only a small number of providers offer models with ca...
Published   Jul 18, 2025
🌐
Reddit
reddit.com › r/chatgptcoding › claude code router - which models work best? kimi k2?
r/ChatGPTCoding on Reddit: Claude Code Router - Which models work best? Kimi K2?
May 21, 2025 -

Which model has the best tool calling with Claude code router?

Been experimenting with claude code router seen seen here: https://github.com/musistudio/claude-code-router

I got Kimi-K2 to work with Groq, but the tool calling seems to cause issues.

Is anyone else having luck with Kimi-k2 or any other models for claude code router (which is of course quite reliant on tool calling). Ive tried trouble shooting it quite abit but wondering if this is a config issue.

🌐
Hugging Face
huggingface.co › blog › francesca-petracci › kimi-k2-claude-code
Use Kimi K2 with Claude Code Router: A Developer's Guide
Agentic Capabilities: Kimi K2 is ... and execute them autonomously. ... Claude Code Router is an open-source tool that acts as a local proxy for your LLM requests....
🌐
Reddit
reddit.com › r/localllama › kimi k2 vs claude 4 sonnet - unexpected review result (400k token codebase)
r/LocalLLaMA on Reddit: Kimi K2 vs Claude 4 Sonnet - Unexpected Review Result (400k token Codebase)
July 30, 2025 -

I tested Kimi K2 again, against Claude 4 Sonnet (Sonnet 4) this time, here are my findings (vid in comments):

- K2 isn't only less reliable in VSCode tool calling, it's considerably less in Cline as well, vs Claude 4 Sonnet

- I integrated K2 via OpenRouter inference into my own application LIVE and it did the same thing: instead of calling tools, it outputs the tool calls as text, mostly malformed and consolidated

- Ref: https://youtu.be/p2LKJo3EK7w

- Tip for AI coding agent authors: write a parser or a specialized prompt for Kimi K2 - even if it sounds like coupling, the value for money is well worth it

- The "Agent Benchmarks" are definitely not accurate, Sonnet 4 is NATIVELY much better in almost every AI Coding tool

- I'm still going to test K2 in Qwen Coder and maybe a custom coding tool, but it's a very good coder

- K2 is better than Gemini 2.5 Pro in tool calling, according to me

- Currently, the best implementation of K2 I found is in Windsurf (I tested VSCode, Cline, Windsurf and RooCode)

🌐
Apidog
apidog.com › blog › kimi-k2-claude-code
You Can Use Kimi K2 with Claude Code, Here's How:
July 13, 2025 - Is Kimi K2 another Deepseek Moment for Open Source LLMs?Kimi K2 is Really Good at in Agentic CodingThe Power of Open SourceThe Tutorial: Connecting Kimi K2 to Claude CodeStep 1: Register on the Moonshot AI PlatformStep 2: Get Your API KeyStep ...
Find elsewhere
🌐
Reddit
reddit.com › r/claudecode › you can use the new "kimi k2 thinking" model with claude code
r/ClaudeCode on Reddit: You can use the new "Kimi K2 Thinking" model with Claude Code
November 8, 2025 -

Kimi K2 Thinking model has been released recently with an impressive benchmark.

They got some affordable coding plans from $19 to $199.

And I've found this open-source plugin so we can use their models with Claude Code: Claude Code Switch (CCS)

  • Web: https://ccs.kaitran.ca/

  • Github: https://github.com/kaitranntt/ccs

It helps you switch between Claude, GLM and Kimi models with just a simple command:

# use Claude models
ccs

# switch to GLM models
ccs glm

# switch to Kimi models
ccs kimi

So far when I tried, it isn't as smart as Claude models, and quite slower sometime. But I think it's great for those who use Pro plan: you can try planning with Claude and then give that plan to Kimi for implementing.

Have a great weekend guys!

🌐
Kimi-k2
kimi-k2.org › blog › 07-ai-coding-assistant-en
Claude Code and Kimi K2: The Ultimate AI Coding Assistant Combination
July 16, 2025 - Discover how Claude Code's intelligent routing perfectly complements Kimi K2's trillion-parameter MoE architecture to create the most advanced AI coding assistant for modern developers.
🌐
Reddit
reddit.com › r/claudeai › claude code + kimi k2 with just 2 env vars
r/ClaudeAI on Reddit: Claude Code + Kimi K2 with just 2 env vars
May 27, 2025 -

Just followed Gary Svenson’s Medium guide — it works perfectly. You only need to set two environment variables, and Claude Code will start routing requests through the Kimi K2 model.

Here’s what to set:

export ANTHROPIC_AUTH_TOKEN=your Moonshot API key
export ANTHROPIC_BASE_URL=https://api.moonshot.ai/anthropic

Then launch Claude Code as usual. It automatically redirects API calls to the new endpoint — no code changes, no extra tools.

The whole setup takes seconds. Claude Code behaves the same as always, but under the hood it’s now powered by K2. It’s a super clean switch, and easy to undo — just clear the variables or revert the URL.

I just hope it helps me get through this rough patch with Claude Code lately.

🌐
Reddit
reddit.com › r/claudecode › claude code router - which models work best? kimi k2?
r/ClaudeCode on Reddit: Claude Code Router - Which models work best? Kimi K2?
May 22, 2025 -

Which model has the best tool calling with Claude code router?

Been experimenting with claude code router seen seen here: https://github.com/musistudio/claude-code-router

I got Kimi-K2 to work with Groq, but the tool calling seems to cause issues.

Is anyone else having luck with Kimi-k2 or any other models for claude code router (which is of course quite reliant on tool calling). Ive tried trouble shooting it quite abit but wondering if this is a config issue.

🌐
GitHub
github.com › musistudio › claude-code-router
GitHub - musistudio/claude-code-router: Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the model while enjoying updates from Anthropic.
"transformer": { "use": ["openrouter"], "moonshotai/kimi-k2": { "use": [ [ "openrouter", { "provider": { "only": ["moonshotai/fp8"] } } ] ] } } groq: Adapts requests/responses for groq API. maxtoken: Sets a specific max_tokens value. tooluse: Optimizes tool usage for certain models via tool_choice.
Starred by 24.1K users
Forked by 1.9K users
Languages   TypeScript 95.4% | JavaScript 2.9% | CSS 1.6%
🌐
Yage
yage.ai › kimi-k2-en.html
Kimi K2: An In-Depth Review Beyond the Chatbox
(General-purpose agentic tools like Cursor or Trae also require specific adaptations for each model. The reason I didn't use them here is that they lack a convenient integration method like Claude Code Router). Kimi K2 was like a highly skilled actor with a different accent, suddenly thrown into a script written for another star.
🌐
Composio
composio.dev › blog › kimi-k2-thinking-vs-claude-4-5-sonnet-vs-gpt-5-codex-tested-the-best-models-for-agentic-coding
GPT-5.1 Codex vs. Claude 4.5 Sonnet vs. Kimi K2 Thinking : Tested the best models for agentic coding - Composio
We have Sonnets, Haiku 4.5, Codexes, GLM, Kimi k2 thinking, and GPT 5.1, and each is good enough for most day-to-day coding tasks. However, human greed knows no bounds, and I don't think anyone wants to spend their time and money on a model that's second or third-best. Hence, we run a regular series of blog posts that compare these models on coding tasks you may actually encounter, and it also allows us to dogfood the tool router, which is currently in public beta.
🌐
GitHub
gist.github.com › automata › 9f47a6ddc231e17eb790e9464be698b3
Kimi K2 + Claude Code Router + Claude Code · GitHub
Kimi K2 + Claude Code Router + Claude Code. GitHub Gist: instantly share code, notes, and snippets.
🌐
Reddit
reddit.com › r/roocode › thoughts on kimi-k2
r/RooCode on Reddit: Thoughts on Kimi-K2
May 14, 2025 -

Kimi-K2 from Moonshot AI is a 1T parameter, non-reasoning, open weights model. I've seen glowing reports recently from all the "influencers" (i.e.: affiliate marketers). Naturally, I put it in Roo to give it a go. My first impressions:

  1. The price is good, at Input: $2/MTok, Output: $5/MTok (vs. Sonnet's $3/$15).

  2. The 128k context is small, but it's workable using Orchestrator mode.

  3. Problem is, the model inevitably fails at coding tasks.

I love open weight models and this model is quite an accomplishment. But sadly, after just a couple hours of usage, I had to go back to Sonnet. It's not a Sonnet replacement, by any stretch.