Technology

Mooncake

The open-source LLM serving platform behind Moonshot AI's Kimi. Its defining feature is **disaggregated prefill** — separate prefill and decode compute pools with KV-cache state shuttled between them over a dedicated DRAM / NVMe / S3-compatible storage layer.

Current as of 2026-08-31 · v0.3.13.post1

11 connections4 posts

Summary

What it is

The open-source LLM serving platform behind Moonshot AI's Kimi. Its defining feature is **disaggregated prefill** — separate prefill and decode compute pools with KV-cache state shuttled between them over a dedicated DRAM / NVMe / S3-compatible storage layer.

Where it fits

A KV-cache-centric serving architecture, and one of the load-bearing examples of object storage acting as an *active* inference tier rather than cold archive. It increasingly interoperates with vLLM/SGLang (its transfer engine plugs into them) rather than strictly replacing them.

Misconceptions / Traps
  • Mooncake is a serving architecture plus a KV transfer engine, not a drop-in inference server you swap for vLLM. Reading competes_with as "pick one" misses that the transfer engine is adopted inside vLLM deployments.
  • Disaggregated prefill pays off for long-context, prefill-heavy, multi-tenant traffic. For short-prompt, decode-bound workloads the extra KV-transfer hop can cost more than it saves.
Key Connections
  • scoped_to AI Memory Infrastructure + S3 — KV-cache transfer rides an object-storage substrate
  • solves Prefill Tax — dedicated prefill pools stop decode-heavy traffic from starving prefill
  • solves High Cloud Inference Cost — hardware-shape-matched serving
  • competes_with vLLM, SGLang — overlapping serving scope, increasingly interoperable

Definition

What it is

The open-source LLM serving platform for Kimi, Moonshot AI's leading LLM product. Repository: github.com/kvcache-ai/Mooncake. Mooncake's architectural distinguishing feature is disaggregated prefill — separating the prefill compute pool from the decode compute pool, with KV-cache state transferred between them via a dedicated storage layer (DRAM, NVMe, or S3-compatible object storage). This pattern is the structural answer to the "prefill is expensive, decode is memory-bound, they have different optimal hardware" tension.

Why it exists

Production LLM serving at scale (Moonshot AI claims hundreds of thousands of concurrent users on the Kimi service) requires architecture that doesn't waste prefill compute on decode-heavy workloads and vice versa. Mooncake formalized the disaggregated-prefill pattern in open-source form, making the architecture reproducible outside Moonshot AI's internal infrastructure.

Primary use cases

High-scale LLM serving with disaggregated prefill/decode, KV-cache transfer over object-storage substrates, Kimi-style long-context model serving, multi-tenant LLM platforms targeting cost-per-token optimization.

Connections11

Outbound6
stores1
optimizes_for1
competes_with2
Inbound5

Featured in