AI DevelopmentPlaybook10 min readPublished July 17, 2026

Model ID k3 · Moderato unlocks 256K · Allegretto unlocks the full 1M

Kimi Code With K3: Setup, Plans and Cache Discipline

Kimi K3 went live inside Kimi Code on July 17, 2026 — but turning it on is a plan decision, not a settings toggle. Moderato unlocks K3 at 256K context; Allegretto unlocks the full 1M window. And because switching models mid-session invalidates the prompt cache, the biggest cost lever isn’t a knob. It’s session hygiene.

DA
Digital Applied Team
Senior strategists · Published Jul 17, 2026
PublishedJuly 17, 2026
Read time10 min
SourcesMoonshot primaries + docs
K3 full context
1M
tokens · Allegretto and up
256K on Moderato
Cache-hit input rate
$0.30/M
vs $3.00/M on a miss
10x cheaper
Coding cache-hit rate
90%+
vendor-stated, Kimi API
K3 entry plan
$19/mo
Moderato · listed price
$15 current promo

Kimi Code with K3 is the first hands-on question most developers asked when Moonshot shipped its new flagship on July 17, 2026: how do I actually run this thing, what does it cost, and which plan do I need? The answers live on two separate vendor pages that never cross-reference each other — the Kimi Code model-configuration docs and the membership pricing table. This post joins them.

The short version: K3 is selected with the /model command inside a Kimi Code session, gated by plan tier rather than by any per-request setting. Moderato ($19/mo listed) is the minimum tier that gets K3 at all, capped at 256K context. Allegretto ($39/mo listed) unlocks the full 1M window. Sampling is fixed, reasoning effort is max-only at launch — which means the levers you’d normally reach for don’t exist here.

What does exist is a cache-discipline rule with real money attached. Moonshot’s own docs state that switching models invalidates the existing context cache, and its launch blog states the Kimi API rides a 90%+ cache-hit rate in coding workloads. Put those together and an avoidable mid-session model switch is a quantifiable mistake. This guide covers the model lineup, setup, the full spend-to-capability matrix, the cache math, and where Moonshot itself says K3 still falls short.

Key takeaways
  1. 01
    K3 access is a plan decision, not a toggle.The free tier doesn’t get K3 at all. Moderato ($19/mo listed, $15 current promo) unlocks K3 at 256K context; Allegretto ($39/mo listed) and above unlock the full 1M window plus HighSpeed access.
  2. 02
    Never switch models mid-session.Moonshot’s docs are explicit: switching models invalidates the context cache and forces a re-prefill at the $3.00/M cache-miss rate instead of the $0.30/M hit rate — a 10x input-cost difference. Start a fresh session instead.
  3. 03
    The usual knobs are gone.K3’s sampling is fixed at temperature 1.0 and top_p 0.95, and reasoning_effort supports only max at launch. Cost control lives in plan tier, context management, and session hygiene — not in request parameters.
  4. 04
    Kimi Code has quietly become a full harness.CLI v0.26.0 (July 16, 2026) added background tasks, todo lists, plan mode, skills, and nested agents to the built-in coder, explore, and plan subagents — plus a Goal Queue, Web Mode, and context compaction.
  5. 05
    Read the pricing fine print before you commit.The promo prices are time-limited, and Moonshot’s pricing page says Kimi and Kimi Code plan benefits will be separated in a coming restructure. The gating described here reflects the current combined plans.

01Model LineupThree model IDs, one picker.

Kimi Code’s model picker exposes three IDs, and understanding what each one is prevents most of the confusion downstream. The headline entry is k3 — the new flagship covered in depth in K3’s launch-day release post. The other two are both K2.7 Code — the coding-specialist model that remains available to every Kimi Code member — in standard and HighSpeed variants.

Flagship
k3 — Kimi K3
Up to 1M context · thinking effort: max · regular speed

The new general-purpose frontier model. Thinking is always on and effort is max-only at launch. Context ceiling depends on your plan: 256K on Moderato, the full 1M on Allegretto and above.

Moderato+ · 1M needs Allegretto+
Specialist
kimi-for-coding
K2.7 Code · 256K context · Thinking: ON

The still-current coding-specialist model built on K2.6, open-sourced under Modified MIT. Available to all members regardless of tier — including the free Adagio plan.

All members
Fast lane
kimi-for-coding-highspeed
K2.7 Code · 256K context · HighSpeed

The same K2.7 Code engine in HighSpeed Mode, which Moonshot lists at 6x output speed and 3x quota consumption. Launched July 9, 2026, ahead of K3. Requires Allegretto or above.

Allegretto+

One subtlety for anyone integrating outside the Kimi Code app: the raw Kimi API platform lists the coding models under different IDs — kimi-k2.7-code and kimi-k2.7-code-highspeed — while Kimi Code’s own CLI and VS Code surfaces use the kimi-for-coding naming. Same models, two namespaces. If you’re wiring a third-party tool, check which surface you’re actually talking to before you paste a model ID.

02SetupFrom install to /model in five minutes.

The Kimi Code CLI is distributed as a single binary with no Node.js dependency required. Install via curl on macOS and Linux, Homebrew (brew install kimi-code), or PowerShell on Windows; an npm package (@moonshot-ai/kimi-code) is also published for teams that prefer that channel. The repo itself is MIT-licensed TypeScript on GitHub — 3.2k stars and 444 forks as of this writing.

Once installed and signed in with a membership that includes K3 (Moderato or above — see the matrix in the next section), Moonshot’s own onboarding path is exactly one step: run the /model command from within a Kimi Code terminal session and select k3. The VS Code extension exposes the same choice as a model dropdown in the input bar.

For third-party harnesses there’s a third surface: a direct “Model ID” field. Moonshot’s docs tell third-party integrations to set the context-window field to 1,048,576 to unlock the full 1M window. And because K3 is OpenAI-SDK compatible — you point the standard OpenAI Python or Node SDK at https://api.moonshot.ai/v1 with a Moonshot key — most existing tooling connects without a bespoke client. That compatibility story is part of a broader industry pattern we cover in our guide to the OpenAI-compatible API standard.

Setup snapshot
Install the CLI (curl, Homebrew, PowerShell, or npm), sign in with a Moderato-or-above membership, open a session, and run /model → select k3. That’s the entire vendor-documented path. If you’re on the free Adagio tier, the picker gives you K2.7 Code (kimi-for-coding) but no K3 — the upgrade prompt is the setup step.

03Plan GatingThe spend-to-capability matrix.

Here’s the table Moonshot doesn’t publish. The Kimi Code models page tells you which tier unlocks which context window; the membership pricing page tells you what each tier costs and what credit multiplier it carries. No single vendor page shows “spend $X, get Y context at Z concurrency” — so we built the cross-join. All cells are from Moonshot’s own two pages, retrieved July 17, 2026.

Kimi Code K3 spend-to-capability matrix — monthly price, K3 access and context ceiling, HighSpeed access, Kimi Code credit multiplier, and Swarm concurrent subagents for each membership tier, compiled from Moonshot’s model-configuration and membership-pricing pages on July 17, 2026.
TierMonthly priceK3 accessHighSpeedCredit multiplierSwarm subagents
Current combined Kimi + Kimi Code plans · promo prices are time-limited
Adagio (free)$0No K3 — K2.7 Code onlyNo
Moderato$19 listed · $15 promoYes — 256K contextNo1x2
Allegretto$39 listed · $31 promoYes — full 1M contextYes5x4
Allegro$99 listed · $79 promoYes — full 1M contextYes15x8
Vivace$199 listed · $159 promoYes — full 1M contextYes30x8

Two readings of this table matter more than the sticker prices. First, the doubling from Moderato to Allegretto ($19 to $39 listed) buys a 5x credit multiplier, not just 4x the context — on a per-credit basis Allegretto is the better deal for anyone actually running K3 daily, since roughly double the fee buys five times the allotment. Second, K2.7 Code stays available to every member including free Adagio, and paid tiers all get a 4x-speed agent priority queue — the plan ladder gates K3 and concurrency, not basic coding capability.

Pricing fine print
As of July 17, 2026, kimi.com’s pricing page shows a “New Membership Plans Coming Soon” banner: Kimi and Kimi Code benefits “will be separated” in a future restructure, with existing subscribers unaffected. The promo prices ($15/$31/$79/$159) are current-as-of-retrieval, not permanent. Treat this matrix as a dated snapshot of the current combined plan — not a durable rate card.

04Cache DisciplineThe one rule that saves real money.

Moonshot documents the cache-invalidation behavior as a UX footnote. It deserves to be a headline, because the economics around it are unusually sharp. K3’s API pricing is flat across the entire 1M context window — no context-length tiering — at $3.00 per million input tokens on a cache miss, $0.30 per million on a cache hit, and $15.00 per million output tokens.

K3 API rate card — flat pricing, no context-length tiering

Source: platform.kimi.ai — Kimi K3 Quickstart, retrieved Jul 17, 2026
OutputPer 1M tokens · flat across the 1M window
$15.00
Input — cache missFull re-prefill rate after a model switch
$3.00
Input — cache hitThe rate coding sessions ride 90%+ of the time
$0.30

The 10x gap between hit and miss is where session hygiene turns into money. Moonshot’s docs state plainly that switching models invalidates the existing context cache and triggers a context re-prefill, temporarily increasing token usage — and the vendor’s explicit guidance is to start a fresh session rather than switch models mid-conversation. Kimi Code CLI v0.26.0 now surfaces a cache-invalidation hint in the terminal when a model or effort switch is about to happen, which tells you how often users were tripping over this silently.

"The official Kimi API achieves a cache hit rate above 90% in coding workloads."— Moonshot, Kimi K3 launch blog, July 17, 2026

Here’s an illustrative calculation — our arithmetic from Moonshot’s published rates, not a vendor-provided table. Say your agentic session is carrying 400K tokens of cached context. The next turn on a warm cache bills that input at the hit rate: 400,000 × $0.30/M ≈ $0.12. Switch models mid-session and the cache is invalidated, so the same context re-prefills at the miss rate: 400,000 × $3.00/M = $1.20 — about $1.08 of avoidable spend from a single switch, before the session even does new work. Hop between models a few times a day across a team and the footnote becomes a line item.

The discipline that follows is simple. Pick the model before the session starts, not during it. If you genuinely need a different model, end the session and open a fresh one — you’ll pay a normal cache warm-up either way, but you avoid conditioning K3 on another model’s conversation history, which Moonshot separately warns degrades output quality (more on that in Section 07). And use /compact to keep long sessions from ballooning the context you’d have to re-prefill if anything does reset.

05Fixed KnobsFixed sampling, max-only effort.

If your cost-control playbook comes from other harnesses, K3 will feel locked down. The API’s sampling parameters are fixed and cannot be modified: temperature 1.0, top_p 0.95, n=1, presence and frequency penalties 0. The quickstart instructs developers to omit these fields from requests entirely rather than attempt to override them. Output defaults to 131,072 tokens per response with a maximum of 1,048,576.

Reasoning effort is similarly constrained: reasoning_effort currently supports only max. K3 always has thinking mode enabled, and there is no way to run it at lower effort yet — Moonshot describes lower tiers as coming later. That makes the effort-label mapping inside Kimi Code worth knowing, because the CLI accepts a much wider vocabulary than K3 currently honors:

Kimi Code effort-label mapping for K3 — which client-side reasoning-effort labels map to which internal levels, per Moonshot’s model-configuration docs retrieved July 17, 2026.
Label you passKimi Code maps it to
(unset) / nullmax
ultra · max · xhighmax
high · mediumhigh
low · minimum · lightlow
nonedisabled

The practical catch: since K3 itself only supports max at launch, any label below max is effectively normalized until Moonshot ships the lower tiers. If you’re migrating scripts or configs from another harness — say, Claude Code’s xhigh — the label will be accepted, mapped, and then quietly run at the only level K3 has. Budget for max-effort token consumption on every K3 call today, whatever your config says.

The developer-surface features that do exist are solid: structured output via json_schema with strict: true (parse the content field, not reasoning_content), tool_choice set to required to force a tool call on the first turn, dynamic tool loading via system messages, and streaming that emits separate reasoning and final-answer deltas. Control lives in structure and tooling, not sampling.

06The HarnessThe CLI has grown into a full harness.

K3 landed into a much more capable Kimi Code than the one that launched the product. CLI v0.26.0, shipped July 16, 2026 — one day before K3 — gave the coder subagent background-task support, todo lists, plan mode, skill invocation, and nested agents. That sits on top of the built-in coder, explore, and plan subagents, each running in an isolated context for focused, parallel work — a pattern Moonshot has been developing since the K2.5 agent-swarm era.

Subagents
coder · explore · plan
3

Built-in subagents in isolated contexts, present since v0.1.0 and expanded through v0.26.0. Swarm concurrency is plan-gated: 2 concurrent subagents on Moderato, 4 on Allegretto, 8 on Allegro and Vivace.

Isolated contexts
Goal Queue
Autonomous multi-turn runs
/goal

Queue goals and let the harness work through them with /goal next. Combined with plan mode and background tasks, the CLI now supports the long-running autonomous sessions K3’s 1M window is built for.

v0.26.0 era
Session hygiene
/compact + ZIP export
2

Automatic context compaction keeps long sessions lean — directly reducing what a cache reset would cost to re-prefill. Session export packages the whole run as a ZIP; Web Mode (kimi web) adds a browser interface.

Cache-friendly

The trend worth reading here: Moonshot is converging on the same harness grammar as its Western competitors — subagents, plan modes, skills, background tasks — while differentiating on plan economics and an open-weights posture. For a team already fluent in one agentic CLI, the switching cost is now mostly muscle memory, not concepts. Where the harnesses genuinely diverge is in conventions and defaults, which is exactly the territory we mapped in our comparison of agentic coding harness conventions.

07Vendor CandorMoonshot’s own caveats, on the record.

Moonshot’s launch blog includes a limitations section that is unusually direct for a flagship release, and two of its disclosures bear directly on how you should run K3 in Kimi Code.

The first is thinking-history sensitivity — and it’s the quality twin of the cache-cost rule from Section 04:

"If the agent harness fails to pass back all the historical thinking content as required, or if an ongoing session with another model is switched over to K3, generation quality may become highly unstable."— Moonshot, Kimi K3 launch blog limitations section, July 17, 2026

So a mid-session model switch into K3 doesn’t just cost you a cache re-prefill — by the vendor’s own account it can destabilize generation quality. One habit, two failure modes avoided: start K3 in a fresh session.

The second disclosure is excessive proactiveness: Moonshot says K3 “may make unexpected decisions on the user’s behalf” on minor issues or ambiguous intent. In an agentic harness with background tasks and a goal queue, that argues for tighter plan-mode review before letting long runs go unattended. And third, Moonshot concedes ground on polish outright — its blog states that “K3 nonetheless exhibits a noticeable gap in user experience compared with Claude Fable 5 and GPT 5.6 Sol.” Vendor candor of that order is rare, and it sets the right expectation: K3 in Kimi Code is a frontier-class engine with rough edges, priced and gated accordingly. Keep the comparison qualitative for now — the harnesses differ more in conventions than in any single benchmark — and run your own evals on your own repos.

08Decision GuideWhich tier, which model, which workflow.

Pulling the plan matrix, the cache math, and the vendor caveats together, the decision tree looks like this:

Trying it out
Evaluating Kimi Code itself

The free Adagio tier gives you K2.7 Code and the core CLI harness — enough to judge the workflow before spending anything. You won’t touch K3, but you’ll learn whether the harness fits your team.

Start on Adagio
Solo, K3-curious
Individual developer workloads

Moderato ($19/mo listed) is the cheapest path to K3, capped at 256K context and 1x credits. For single-repo sessions, 256K is workable — but heavy daily use will hit the credit ceiling before the context one.

Pick Moderato
Daily driver
Full-context agentic work

Allegretto ($39/mo listed) is the real K3 tier: the full 1M window, HighSpeed access, 5x credits for roughly double Moderato’s fee, and 4 concurrent Swarm subagents. This is where the per-credit math lands best.

Pick Allegretto
Teams & heavy agents
Parallel swarms, big allotments

Allegro ($99) and Vivace ($199) buy 15x and 30x credits and 8 concurrent subagents. Choose by monthly token appetite, not features — the capability set stops growing after Allegretto; only the allotment and concurrency scale.

Scale by usage

Whichever tier you land on, the operating rules stay the same: pick the model per session and don’t switch mid-stream, keep sessions compact, budget for max-effort output on every K3 call, and treat the current plan table as perishable given the announced restructure. If your team is weighing K3 against closed-frontier options across real workloads — routing, evals, cost modeling — that comparative discipline is exactly what our AI transformation engagements are built around.

09ConclusionCost control by habit, not by knob.

The operating picture, July 2026

K3 in Kimi Code rewards discipline more than configuration.

The setup story is genuinely simple — install a single binary, sign in, /model, done. Everything that matters after that is economic. K3 access is bought with plan tier: Moderato for 256K, Allegretto for the full million and the 5x credit multiplier that makes daily use rational.

The cache rule is the piece most coverage will miss. With coding workloads riding a vendor-stated 90%+ cache-hit rate and a 10x price gap between hit and miss, a mid-session model switch is an avoidable, quantifiable mistake — and by Moonshot’s own limitations disclosure, a quality risk on top. One habit fixes both: fresh session, fixed model.

Looking forward, two dates matter. Moonshot has promised K3’s open weights by July 27, 2026 — not yet released as of this writing, license unconfirmed — and the pricing page’s plan restructure will redraw the gating table this post documents. Treat today’s matrix as a snapshot, run your own evals, and let the discipline — not the discount — decide whether K3 becomes your daily driver.

Put agentic coding to work

The cheapest token is the one your cache already paid for.

Our team helps businesses evaluate agentic coding stacks — plan economics, cache-aware workflows, and model routing across Kimi, Claude, and GPT — delivered in days, not quarters.

Free consultationExpert guidanceTailored solutions
What we work on

Agentic stack engagements

  • Harness selection — Kimi Code vs Claude Code vs Codex
  • Plan + token economics modeling before you commit
  • Cache-aware session workflows for agent teams
  • Multi-model routing with eval-backed defaults
  • Open-weights readiness for sovereignty-bound stacks
FAQ · Kimi Code with K3

The questions we get every week.

Install the Kimi Code CLI (a single binary — curl on macOS/Linux, Homebrew via brew install kimi-code, PowerShell on Windows, or the @moonshot-ai/kimi-code npm package), sign in with a membership at Moderato tier or above, then run the /model command inside a terminal session and select k3. That is Moonshot’s own documented onboarding path. The VS Code extension exposes the same selection as a model dropdown in the input bar, and third-party tools can set the model ID directly — with the context-window field set to 1,048,576 if your plan includes the full 1M window. If you’re on the free Adagio tier, K3 won’t appear as an option; you’ll have K2.7 Code (kimi-for-coding) instead.
Related dispatches

Continue exploring agentic coding stacks.