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
🌐
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
🌐
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 ... 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...
Discussions

Has anyone tried the new open‑source Kimi K2 module alongside Claude Code?
I've been using it tonight for incredibly niche obscure python library differences and yeah it's pretty good, like seriously, has that "I'm already thinking 2 steps ahead so here you go" vibe with the benefit of actually being right lol I wonder if not being a thinking model it's actually better that said, be mindful of what data you're sharing... blah blah blah More on reddit.com
🌐 r/ClaudeAI
43
27
July 14, 2025
Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model
For real-world speeds though yeah, you'd need serious hardware. This is more of a "deploy your own stamp" model, less a "local" model · I may not be able to reasonably run it myself, but at least I can choose who I trust to run it and can have inference pricing determined by a competitive market. More on news.ycombinator.com
🌐 news.ycombinator.com
179
348
July 27, 2025
Can you please give a sample config.json for configuring kimi.ai and whether it needs Transformer or not?
Can you please give a sample config.json for configuring kimi.ai and whether it needs Transformer or not? As you know, kimi has released a new model More on github.com
🌐 github.com
8
May 27, 2025
Claude Code Router - Which models work best? Kimi K2?
You might have better luck on r/localllama . Sounds like it might need a chat template or system prompt or if it's open router check their function calling docs to see if there have been any changes More on reddit.com
🌐 r/ChatGPTCoding
4
4
May 22, 2025
🌐
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 !

🌐
Moonshot
platform.moonshot.ai › docs › guide › agent-support
Use kimi k2 Model in ClaudeCode/Cline/RooCode
November 20, 2025 - Kimi Open Platform, providing trillion-parameter K2 large language model API, supporting 256K long context and Tool Calling. Professional code generation, intelligent dialogue, helping developers build AI applications.
🌐
Skool
skool.com › ai-community › use-kimi-k2-in-claude-code
Use Kimi K2 in claude code · AI Marketing
is to use kimi k2 model inside of claude code · you get almost the same functionality and can still get lots done. here is how · sign up to openrouter, get an api key, load some money · install claude code router - https://github.com/musistudio/claude-code-router ·
🌐
Apidog
apidog.com › blog › kimi-k2-claude-code
You Can Use Kimi K2 with Claude Code, Here's How:
July 13, 2025 - Something crazy just happened for the AI Coding Game. I was scrolling through my feed when I stumbled upon a thread discussing a wild new setup: developers are running Moonshot AI's brand-new Kimi K2 model directly within Claude's coding environment. At first, it sounded like a weird fan-fiction ...
🌐
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.
Router: Used to set up routing rules. default specifies the default model, which will be used for all requests if no other route is configured. API_TIMEOUT_MS: Specifies the timeout for API calls in milliseconds.
Starred by 24.1K users
Forked by 1.9K users
Languages   TypeScript 95.4% | JavaScript 2.9% | CSS 1.6%
Find elsewhere
🌐
X
x.com › aut0mata › status › 1944748757079212496
How to use Kimi K2 in Claude Code: 1. Create an account ...
How to use Kimi K2 in Claude Code: 1. Create an account at ... @anthropic-ai/claude-code 3. npm install -g @musistudio/claude-code-router 4. Add the following lines to your ~/.claude-code-router/config.json (update with your OpenRouter API key) 5.
🌐
Apidog
apidog.com › blog › kimi-k2-thinking-with-claude-code-cursor
How to use Kimi K2 Thinking with Claude Code & Cursor
November 10, 2025 - The Kimi K2 Thinking API is fully compatible with both OpenAI and Anthropic interface specifications. You can use the same SDKs and simply change the base_url and api_key to connect your existing applications to Kimi. You can redirect Claude Code’s API calls to Moonshot AI by setting two environment variables:
🌐
Medium
medium.com › @Erik_Milosevic › how-to-run-kimi-k2-inside-claude-code-the-ultimate-open-source-ai-coding-combo-22b743b69e5a
How to Run Kimi K2 Inside Claude Code: The Ultimate Open-Source AI Coding Combo | by Erik Milošević | Medium
August 20, 2025 - This open approach, combined with agentic coding power, makes Kimi K2 a foundational tool for the future of software development. The secret to this integration is Moonshot AI’s Anthropic-compatible API endpoint. By redirecting Claude Code’s requests to Kimi K2, you get all the benefits of Claude’s interface with the muscle of Kimi K2 under the hood.
🌐
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....
🌐
Hacker News
news.ycombinator.com › item
Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model | Hacker News
July 27, 2025 - For real-world speeds though yeah, you'd need serious hardware. This is more of a "deploy your own stamp" model, less a "local" model · I may not be able to reasonably run it myself, but at least I can choose who I trust to run it and can have inference pricing determined by a competitive market.
🌐
Medium
medium.com › everyday-ai › kimi-k2-vs-the-big-dogs-claude-and-gpt-4-1-41e9a6124ba1
Kimi K2 vs. the Big Dogs (Claude and GPT-4.1) | by Manpreet Singh | Everyday AI | Medium
July 14, 2025 - Kimi K2 vs. the Big Dogs (Claude and GPT-4.1) Hey there.. So, I was scrolling through some tech news the other day, and I stumbled across something new: a new AI model called Kimi K2 Its released by …
🌐
X
x.com › jasonzhou1993 › status › 1944656324484305279
Jason Zhou
JavaScript is not available · We’ve detected that JavaScript is disabled in this browser. Please enable JavaScript or switch to a supported browser to continue using x.com. You can see a list of supported browsers in our Help Center · Help Center · Terms of Service Privacy Policy Cookie ...
🌐
GitHub
github.com › musistudio › claude-code-router › issues › 145
Issue #145 · musistudio/claude-code-router
May 27, 2025 - musistudio / claude-code-router Public · Notifications · You must be signed in to change notification settings · Fork 1.7k · Star 21.4k · New issueCopy link · New issueCopy link · Open · Open · Can you please give a sample config.json for configuring kimi.ai and whether it needs Transformer or not?#145 ·
Published   Jul 12, 2025
🌐
AI Engineer Guide
aiengineerguide.com › blog › claude-code-kimi-k2
How to use Claude Code with Kimi K2
July 15, 2025 - Token usage adds up fast for AI agents so for the task that requires less intelligence you can consider using models like Kimi K2 especially if you’re using agentic tools like Claude code. You can get their hosted version directly from them or using Open Router / Groq
🌐
GitHub
github.com › luohy15 › y-router
GitHub - luohy15/y-router: A Simple Proxy enabling Claude Code to work with OpenRouter
export ANTHROPIC_MODEL="moonshotai/kimi-k2" export ANTHROPIC_SMALL_FAST_MODEL="google/gemini-2.5-flash" ... That's it! Claude Code will now use OpenRouter's models through y-router.
Starred by 370 users
Forked by 60 users
Languages   TypeScript 87.4% | Shell 12.2% | Dockerfile 0.4%
🌐
X
x.com › i › broadcasts › 1eaKbWNNwNrGX
Kimi K2 Live Setup with Claude Code, Cursor, & Repo Prompt
JavaScript is not available · We’ve detected that JavaScript is disabled in this browser. Please enable JavaScript or switch to a supported browser to continue using x.com. You can see a list of supported browsers in our Help Center · Help Center · Terms of Service Privacy Policy Cookie ...