Kimi K3 and Claude Code: Comparison, Cost, and Setup
MarkdownFrontend and intelligence benchmarks, API pricing, caching, open-weight limitations, and connecting Kimi to Claude Code through environment variables.
Read full article
Key takeaways
Updated October 2, 2026. On July 16, 2026, Moonshot released Kimi K3 — 2.8 trillion parameters, making it the world's largest open model. The price has not changed — $3 per 1M input tokens and $15 per 1M output tokens (verified against Moonshot's official pricing on October 2, 2026), with cached input costing just $0.30. Claude's flagship changed in the meantime: Opus 4.8 ($5 / $25) was replaced by Opus 5.5 ($4 / $20, cache hit $0.20) — the price gap has narrowed, but Kimi is still cheaper. Moonshot released the full weights, which had been a promise when this guide first appeared, on July 27, 2026; they are openly available on HuggingFace. You can connect Kimi to Claude Code with three environment variables. This guide looks at where Kimi is genuinely stronger than Claude, where it falls behind, and whether switching makes sense at all.
Practical information about working with Ailoot is in the documentation.
What Is Kimi K3, and Why Did It Rattle the Market?
Key takeaways
Kimi K3 is a language model from Chinese company Moonshot, released on July 16, 2026. Its 2.8 trillion parameters make it the world's largest open model — nearly twice the size of DeepSeek V4 Pro and almost four times the size of GLM 5. It uses a mixture-of-experts architecture: only 16 of its 896 experts are activated for each token, so it computes like a model many times smaller than its total parameter count. It has a one-million-token context window, vision, and an always-on reasoning mode. The next day, people began talking about a new DeepSeek shock for Western AI companies.
A year ago, Moonshot was known for one model — Kimi K2, an open release from summer 2025. K2.6 followed in April, then K2.7 Code in June 2026. K3 is the next step, and at about 2.8 times the size of K2.6.
The figure of 2.8 trillion sounds intimidating, but behind it is engineering that is standard for 2026. K3 is built on a mixture-of-experts architecture (Stable LatentMoE): it contains 896 separate experts, and the model activates only 16 of them for each token. That means far fewer parameters are active than the total count suggests — otherwise, no one could serve a model this large at a reasonable price. It also uses two of Moonshot's own techniques: Kimi Delta Attention (which speeds up generation by up to 6 times) and Attention Residuals (which make training cheaper). For a vibe coder, this is technical plumbing, but it explains why such a huge model ends up costing less than Claude, when its size might suggest a frightening price tag.
What matters in practice:
- A one-million-token context window. The same size as Claude's full context window. You can fit a large project into the model at once.
- Vision. You can send a screenshot of an error or a mockup — the model can see the image. Earlier Chinese models such as DeepSeek did not have this.
- Always-on reasoning mode (thinking mode). The model always thinks first, then answers. This improves quality and increases the price; I’ll come back to that below.
The market reaction was sharp. An open Chinese model had reached parity with closed flagships from Anthropic and OpenAI, and Moonshot promised to share the weights for free. I’ll look at where that “parity” is real and where it is just a polished presentation.
Where Kimi K3 Really Beats Claude, and Where It Falls Behind
Key takeaways
Kimi K3 is genuinely first in the world on one benchmark: Frontend Code Arena, where people compare generated interfaces blind. K3 scored 1679 there, against 1631 for Claude Fable 5, and ranked first in six of seven domains. A reliable general-intelligence rank needs an identified source and comparable test configuration; neither is established here. On classic coding benchmarks, it scores 76.8% on SWE-bench Verified and 85% on LiveCodeBench, which is solid. But Moonshot assembled its own table using mixed harnesses, so I treat the vendor figures as an indication of direction: they do not establish exact podium rankings.
I’ll start with the benchmark that matters most to a vibe coder: Frontend Code Arena. Models generate interfaces, and people blindly choose which one is better. That is close to what you do when you ask AI to build a website.
| Model | Elo on Frontend Code Arena |
|---|---|
| Kimi K3 | 1679 |
| Claude Fable 5 | 1631 |
| GPT-5.6 Sol | 1618 |
| GLM-5.2 | 1587 |
Kimi K3 is first, and ranks first in six of seven domains. For someone who builds websites and interfaces through a conversation with AI, that is the clearest signal: the model performs strongly on layout and frontend work.
For broader intelligence, an approximate Kimi score of 57 and a score of 44 for “Kimi K3 (max)” cannot be treated as one consistent ranking without a named index publisher, primary result links, and a comparable test configuration. Neither score establishes Kimi’s current rank with the evidence linked here.
Before comparing intelligence scores, use the same named index revision and date, record the exact model and reasoning setting (including “max”), and check the harness and scoring scale. Until those fields can be verified from the publisher’s result, this article leaves Kimi’s general-intelligence rank unestablished. Frontend preference results and coding benchmarks measure different things and do not fill that gap.
For a separate open-model comparison, see “GLM-5.2 Caught Up With Claude Opus 4.8”; it does not resolve the missing Kimi index attribution.
Classic coding benchmarks:
- SWE-bench Verified — 76.8%. Measures the ability to fix real bugs in GitHub projects. A solid score, though top Claude models score higher.
- LiveCodeBench — 85%. Algorithmic problems with an “input — expected output” format. K3 is strong here.
- Terminal-Bench 2.1 — 88.3. Agentic work in the terminal, according to Moonshot itself.
And here is the caveat I have to include for this guide to be honest rather than an ad. Moonshot assembled its coding table using different harnesses: some measurements used its own KimiCode, some Claude Code, and some Codex. Different harnesses can shift the same result by 10–26 points.
I’m not arguing that Chinese models are “better than Claude.” In my experience using Claude Code as my main tool, they still fall behind on complex code — and I see that every time I compare them. But K3 is showing the top live result on frontend work, at a fraction of the price. Ignoring that is just as foolish as declaring Claude dead.
Want to do more than choose a model — to build a setup that makes AI hallucinate less and hold context longer? Choosing a model is one dial. Context engineering is a more powerful one: what you put into a model’s context before the prompt has more influence on the result than the model’s name on a benchmark.
How Much Does Kimi K3 Cost, and Why “Open” Doesn’t Mean “Free”
Key takeaways
Through the API, Kimi K3 costs $3 per 1M input tokens and $15 per 1M output tokens — the price has not changed since July. Claude Opus has a new generation: Opus 4.8 ($5 / $25) has been replaced by Opus 5.5 ($4 / $20), narrowing the gap, but Kimi is still cheaper for input. The biggest savings come from caching: repeated context costs Kimi $0.30 per 1M, a 90% discount, and coding requests hit the cache almost every time. Opus 5.5's cache hit costs $0.20 per 1M — cheaper than Kimi's cached input, though Kimi wins on the full input price. The word “open” confuses many people: Moonshot released the weights on July 27, 2026, as promised, and they are available on HuggingFace under the Kimi K3 License — but running them yourself is another matter. Even compressed, 2.8 trillion parameters require hundreds of gigabytes of memory and a rack of GPUs. For one person, it is still a cloud model that you pay for by usage.
Kimi K3's official API pricing (verified against Anthropic's official pricing on October 2, 2026):
| Item | Kimi K3 | Claude Opus 5.5 |
|---|---|---|
| Input, per 1M tokens | $3 | $4 |
| Output, per 1M tokens | $15 | $20 |
| Cached input, per 1M | $0.30 | $0.20 |
At list price, Kimi’s input is a quarter cheaper than Opus 5.5 ($3 versus $4), and output is a quarter cheaper ($15 versus $20). The gap is smaller than it was with the previous Opus generation, but the direction is the same. The real savings come from caching when you make repeated requests with the same context. When you work in one project, the beginning of each request repeats: the same files, the same rules, the same system prompt. Kimi's cache gives a 90% discount off the full input price. In coding, the cache hits in 90% or more of cases, so the effective input token cost is closer to 30 cents. Getting the most out of caching on any model is a discipline of its own; I covered it in detail using DeepSeek as an example.
There is one pricing trap hidden in that reasoning mode. Kimi K3 always thinks before answering, and that reasoning is billed as output tokens at $15 per 1M. The difference is negligible for a simple question, but on a complex task the model may “think through” thousands of tokens, partially eating into the low price. You have to look at the final bill for a day’s work. The list price is misleading here.
Now for the word “open.” Moonshot promised to release Kimi K3's weights by July 27, 2026, and kept its promise — the HuggingFace commit is dated July 27, 2026 (HuggingFace, Kimi-K3, verified October 2, 2026). “Open weights” sounds like “I’ll download them and run them for free on my own machine.” In reality, no. Even compressed to 4-bit, 2.8 trillion parameters take hundreds of gigabytes of memory, require several powerful GPUs, fast connections between them, and someone to set it all up and maintain it.
Kimi K3's openness is useful to large cloud providers and enterprise teams with their own infrastructure. For you, it brings something else: competition that pushes prices down, and a backup option if Claude's limits or prices ever rise. You will not run 2.8 trillion parameters on your laptop. I have a separate analysis of how “free” vibe coding quietly turns into a bill: “The Hidden Cost of Vibe Coding”.
How to Connect Kimi K3 to Claude Code With 3 Variables
Key takeaways
Moonshot created an API endpoint in Anthropic's format — the same format Claude Code uses. So you can switch your familiar Claude Code to Kimi without plugins or reinstalling, using three environment variables. The rest of the setup stays in place: skills, hooks, and plan mode work as before; tokens are billed at Moonshot's rates. There is one trap: Moonshot has two different compatible endpoints, and a key for one returns a 401 error on the other. To switch back to regular Claude, remove the variables and restart.
Claude Code can connect to any endpoint that speaks Anthropic's protocol. Moonshot set up one for Kimi K3, so you do not need a separate build or plugin. The minimum setup is three variables:
export ANTHROPIC_BASE_URL=https://api.moonshot.ai/anthropic
export ANTHROPIC_AUTH_TOKEN=sk-your-moonshot-key
export ANTHROPIC_MODEL=kimi-k3
After that, launch claude as usual. Claude Code thinks it is talking to Anthropic, but actually sends requests to Kimi K3. All skills, hooks, and plan mode keep working, and the bill is calculated at Moonshot's rates.
There is one main trap here, and almost everyone stumbles over it. Moonshot has two different compatible endpoints — one at api.moonshot.ai, the other on the platform.kimi.ai platform. They use different names for the key variable and the model, and a key from one endpoint returns a 401 error on the other (Kimi documentation for Claude Code). If you get a 401, it is almost always a mismatch between the key and endpoint. The key itself usually works. Get the key and endpoint from the same platform.
The easiest way to check that everything is working is to give it a small task: ask Claude Code to show the contents of one file, then confirm that the response arrives and the counter on the Moonshot dashboard has moved. To switch back to regular Claude, remove the three variables (unset ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN ANTHROPIC_MODEL) and restart Claude Code. If you switch often, it is convenient to create two shell profiles or put the variables in an .envrc file with direnv, so they are enabled only in a specific directory.
This is a convenient option if you already have skills and hooks set up for Claude Code and do not want to learn another tool. Moonshot also has its own terminal agent, Kimi Code, but for someone already living in Claude Code, switching the engine with three variables is the path with the least friction.
One thing you definitely should not do is buy “ready-made accounts with balance” from Telegram bots. They are a regular source of lost money and accounts that get blocked after a couple of days. Data is another real concern: Moonshot's servers are in China, and for work projects with sensitive data that is a separate question. I discussed the risks of giving a model access to your data in the guide “Is It Safe to Give Claude Code Access to Your Data?”.
Which Tasks Should You Give Kimi K3, and Which Should Stay With Claude?
Key takeaways
Use Kimi K3 where it is strong and price matters: generating interfaces and layouts, routine refactoring, generating tests, batch text processing, and long sessions in one project. Keep Claude for tasks where mistakes are costly: architecture for a new toolset, debugging complex multi-step bugs, long autonomous agent loops, and tasks involving sensitive data. The rule is simple: repetitive and visual work goes to Kimi; critical decisions stay with Claude.
Here is where the line really falls. I wrote separately about my week of using Kimi K3 in live work and why I returned to Claude Code in “Kimi K3 at Work: A Review and Why I Went Back to Claude Code” — no benchmarks there, just what happened on real tasks.
Where Kimi K3 delivers the most:
- Frontend and layout. That top result on Frontend Code Arena. Build an interface, page, or component — Kimi performs strongly and costs noticeably less.
- Routine refactoring. Rename something, split a function, add types. A top model is overkill for this.
- Generating tests for existing code. Both models do about as well; Kimi is cheaper.
- Batch text processing. Descriptions, translations, labeling — low prices matter at high volumes.
- Long sessions in one project. The longer you work in one context, the more often the cache hits and the cheaper each next step becomes.
Where to keep Claude:
- Architecture for a new toolset. Compare options, spot pitfalls, choose a structure — top Claude is still more consistent.
- Debugging complex multi-step bugs. Claude is more reliable in long chains of reasoning.
- Long autonomous agent loops. Claude falls apart less often over dozens of consecutive steps without a person.
- Production-critical builds. When stability matters more than price.
- Sensitive data. Moonshot's servers are in China — personal customer data calls for a separate discussion with a lawyer.
In one sentence: give repetitive, high-volume, and visual work to Kimi K3, and leave decisions where mistakes are costly to Claude. Many people do just that — keep both keys and switch engines for different tasks. The three environment variables in the section above are made for this.
What Kimi K3 Still Lacks, and What Benchmarks Leave Out
Key takeaways
Updated October 2, 2026. Impressive figures leave three things out. First, Moonshot's own benchmarks were assembled with mixed harnesses, and there is still little independent verification across a broad range of workloads. Second, always-on reasoning makes output tokens more expensive, so the low price can be misleading on complex tasks. Third, data goes to servers in China. An intelligence-index comparison needs a primary result link and matching test conditions to support a current rank or a task-cost comparison. Those are not established here; assess the vendor’s coding tables separately. None of this cancels out the model's strengths, but without it the picture is incomplete.
Here are the points worth keeping in mind.
The benchmarks use mixed harnesses. As mentioned above: Moonshot ran some measurements through its own KimiCode, some through Claude Code, and some through Codex, shifting results by 10–26 points. First place in Frontend Arena is independent; real people judge the results there. But Moonshot's coding table should be read cautiously.
The independent intelligence-index comparison is unresolved. A “Kimi K3 (max)” score cannot be compared with a score for an unspecified model setting without the named publisher, dated result, model setting, harness, and index revision. No primary link here establishes those fields, so the available evidence does not support a current rank, cost-per-task comparison, or speed comparison. Do not infer that “max” and an unspecified default run share a score or scale.
Reasoning mode makes the bill larger. Always-on reasoning is a strength for quality and a weakness for the price of complex tasks, where it can stretch into thousands of tokens billed at $15 per 1M. Kimi's low price is real for simple and medium-complexity work; for heavy tasks, check the bill.
Data and jurisdiction. Servers in China raise a practical question: for a project that processes people's personal data, this is something to discuss with a lawyer. The benchmark has nothing to do with it.
None of these points makes Kimi K3 a bad model. It is strong and cheap, and that is fair to say. But “strong and cheap” and “better than Claude at everything” are different claims; the latter does not follow from the presentation.
Where to Start This Week
Key takeaways
Two steps to compare Kimi K3 with the tool you already use. First, switch Claude Code to Kimi with three environment variables and use it for a regular workday, especially on frontend tasks. Second, compare the result and bill with your usual Claude setup and decide whether to keep both keys for different tasks or go back to one. Switching back takes one command.
A concrete plan, with no extra steps:
- Switch Claude Code to Kimi using the three variables from the section above. Work a regular day. Give it tasks where it is said to be strong — building a page, component, or interface.
- Compare. After a day, look at two things: quality on your real tasks and the bill. Notice where Kimi answers as well as Claude, and where it falls short.
- Decide. Keep both keys and switch engines for different tasks (frontend and routine work — Kimi; critical work — Claude), or go back to Claude alone with one
unsetcommand.
The risk of this experiment is losing a day to calibration. The benefit is that the bill for high-volume and visual work usually drops severalfold by the second week. It is inexpensive to try, and you can stop with one command.
Sources
More details
Questions about Kimi K3 and Claude Code: Comparison, Cost, and Setup
Can I compare Kimi intelligence scores of 57 and 44 directly?
No. A direct comparison needs a common index publisher, revision, date, model setting, and harness for both snapshots. Those shared conditions are not established here, so the scores do not establish a general-intelligence rank.
Does an open-weight release make Kimi free to use through an API?
No. Open weights and hosted usage are separate. The article describes substantial hardware requirements for self-hosting, while API requests are billed for usage, including reasoning output; compare the actual bill for your tasks.