# Build Anything with Kimi K3, Here's How <!-- ref: @content/youtube/david-ondrej/2026-07-24-build-anything-with-kimi-k3-heres-how version: 3 updated_at: 2026-10-31T18:16:44.340Z --> David Ondrej (2026-07-24): Ondrej frames Kimi K3 as the first open-weight model to beat the best closed models outright rather than trail them, and argues the framing everyone reaches for — China versus America — is a distraction from the real axis, open versus closed. *Synthesized from David Ondrej on David Ondrej, 2026-07-24.* David Ondrej walks solo through Moonshot AI's Kimi K3 release — the benchmarks, the architectural tricks that make it efficient, the economics of self-hosting it, and how to wire it into coding harnesses. ## Core Thesis Ondrej frames Kimi K3 as the first open-weight model to beat the best closed models outright rather than trail them, and argues the framing everyone reaches for — China versus America — is a distraction from the real axis, open versus closed. The practical consequence is that the metric to optimize is cost per completed task, not price per token, and that a share of your monthly token spend should migrate from closed cloud models to open weights you host yourself. ## Key Insights - **Kimi K3 is 2.8 trillion parameters** — nearly twice the size of DeepSeek V4 Pro, previously among the strongest open models. Weights land on Hugging Face July 27. - **Benchmark position:** first open model to top the Frontend Code Arena over every closed model; ahead of GPT 5.6 Soul on SWE; ahead of Fable on Terminal Bench; leading on Program Bench; beating both Fable and 5.6 Soul on SWE Marathon. - **On the Harvey legal benchmark the gap is roughly 2x**: Kimi K3 at 26.7%, Fable second at 14.2%, Grok 4.5 at 13.3%. Ondrej's practical read is to route contract review, lease review, and legal research to K3 regardless of what you use elsewhere. - **Cost per task, not token price, is the real metric.** Sonnet 5 lists at $2/$10 per million tokens against Fable's $10/$50 — five times cheaper on paper — yet on Deep SWE, Sonnet 5 is the single most expensive model to reach the 54% success bar, because it burns far more turns getting there. On a 3D London-scene generation, K3 produced more detail than Fable at less than half the cost. - **Per-task routing beats picking one model.** Fireworks AI's study across 1,000+ agentic tasks found routing per task always won: K3 for front end, 3D, and legal; Fable where Fable still leads. - **The planner/worker split is where the savings are.** Cursor had teams of agents rebuild SQLite from its 835-page manual; Fable plus Composer hit the same result for roughly nine to ten times less than Fable alone. Ondrej's recommended combination is K3 as planner with a cheap fast worker — Kimi K2.7 Code, Copilot 2.5, Gemini 3.6 Flash, or GPT 5.6 Luna. - **Attention residuals are the efficiency trick.** Ondrej's analogy: layers are stations on an assembly line, and normally each dumps its output into one shared scratchpad, so by layer 100 an insight from layer 5 is a drop in the ocean. Kimi keeps each layer's output separate and lets later layers attend to which earlier results to read. Claimed payoff: trains as if given 25% more compute for under 2% additional latency. - **Kimi Delta Attention makes linear attention finally usable.** Linear attention keeps a fixed-size memory rather than a growing one, which historically cost recall quality. KDA overwrites a stored entry when new information contradicts it instead of piling on, and reaches up to 6.3x faster decoding at 1M-token context. Moonshot hedges the bet with a 3:1 ratio — three fast KDA layers to one full-attention layer with exact recall. - **Open weights mean a provider explosion.** At recording, OpenRouter listed only Moonshot AI serving K3; Ondrej expects 20+ inference providers within days of the weight release, spanning fast-and-pricier to slow-and-cheap, plus fine-tunes — an option closed models structurally cannot offer. - **K3 designed a chip.** Over a 48-hour run it built and optimized a chip to run another model on its own architecture, verified it with open-source tools, and the result closes timing and decodes tokens in simulation. - **Self-hosting math.** Fast inference at ~50 tokens/sec needs roughly eight B400s — a DGX B400 with 2.3TB of HBM, $300–400k. But 5–10 tokens/sec is enough to queue tasks during the day and run them overnight, and that build lands at a realistic $16–22k. Ondrej notes the estimate spread from his own research: ChatGPT with 5.6 said ~$48k, Fable said $12–15k at lucky liquidation pricing. His own plan is up to $30,000. - **Back up the weights on release day.** Buy a 3–4TB drive for ~$50 and pull from Hugging Face on the 27th; he cites US officials already signaling a ban. - **The self-hosting goal is a spend shift, not purity.** Two axes — open vs closed weights, self-hosted vs cloud — with 100% open-and-self-hosted as an unreachable ideal. The realistic move is migrating 10%, then 20%, then 30% of monthly token spend out of the closed-cloud quadrant. - **The skill that matters is management, not syntax.** Reviewing a Blender clone K3 built for $1.30, Ondrej's read is that you need the skill set of someone directing ten senior developers: dividing work, checking quality fast, and making architectural calls. - **Agents can drive your machine, not just your repo.** He has K3 open the built app in a Brave tab rather than alt-tabbing, and lists finding files, reorganizing folders, setting timers, running `caffeinate`, changing machine settings, and debugging a bad office network as things people underestimate. ## Actionable Takeaways 1. Evaluate models on cost per completed task on a benchmark resembling your work, not on the input/output token price card — a cheaper-per-token model can be the most expensive way to finish the job. 2. Route by task type rather than picking a house model: K3 for front end, 3D, and legal work; Fable where it still leads. 3. Run the expensive model as planner and a cheap fast model as worker — K3 planning with K2.7 Code executing — for roughly an order of magnitude in savings on well-specified tasks. 4. Install Kimi Code with the single curl command from its site, then `/login` (subscription or platform API key), pick K3, and set `/effort` to low, high, or max. It carries scheduled tasks, so recurring work can be set for a clock time. 5. Use a model-agnostic harness like Pi if you want K3 through OpenRouter or whichever provider prices best after the weights land. 6. On weight-release day, buy a 3–4TB drive (~$50) and pull the weights from Hugging Face immediately rather than assuming they stay available. 7. If self-hosting, size for 5–10 tokens/sec and batch work overnight — that target costs $16–22k rather than the $300–400k a DGX B400 build needs for 50 tokens/sec. 8. Add "answer in short in plain English" to the end of prompts — Ondrej applies it across K3, Fable 5, and GPT 5.6 Soul. 9. For document review, tell the model to read the file one page at a time and state which side is stronger plus a probability, then discount for the fact that a one-sided filing produces a one-sided read. ## Notable Quotes > "The real battle is between open-source AI and closed-source AI." — David Ondrej > "What matters is the cost per task." — David Ondrej > "Use the most powerful model, the large, slow model as the planner, and then a small model to execute its actions." — David Ondrej > "The goal is to not give all your money to this closed-source cloud companies." — David Ondrej > "You need to be a better architect and know how to guide these models." — David Ondrej > "Chances are you're probably underestimating how much these agents can do." — David Ondrej --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*