Kimi has two API consoles, and nobody mentions it until it has already cost you. One bills per token with no cap, the other rides the subscription you already paid for, and both hand you a key that looks the same and goes in the same environment variable. You find out at the end of the month. What follows is the full setup, the three ways to run Kimi next to the way you already run Claude Code, and where each one breaks.

01Three ways to run Kimi

There are three. Point Claude Code at Kimi, install Moonshot's own Kimi Code CLI, or run a desktop chat client with MCP. All three read and write files in a local folder.

Kimi is the model family from Moonshot AI, a Beijing lab that publishes open weights. K2.7 Code is a 1 trillion parameter mixture-of-experts model with a 256K context. K3, released on 26 July 2026, goes to 2.8 trillion parameters and 1M context under a modified MIT licence.

None of that decides anything for a working team. What decides it is whether the thing plugs into the setup you already have, and it does, in three shapes.

RouteWhat you keepSetup timeBest for
Claude Code on Kimi Everything. Files, MCP servers, skills, hooks, CLAUDE.md 2 min Testing the model without touching your setup
Kimi Code CLI Nothing, you rebuild it. But the shapes map one to one 30 min Running Kimi as the daily driver
Desktop chat client Chat history, MCP servers, folder access via filesystem MCP 15 min Non-developers who want a window, not a terminal

02What the plans cost

Five tiers, from free to $199 a month. Moderato at $19 is the entry paid plan. Allegretto at $39 is where the limits stop getting in the way.

Moonshot names the tiers after tempo markings. Annual billing takes up to $480 a year off.

Kimi pricing details page showing membership tiers Moderato at 19 dollars a month, Allegretto at 39 dollars and Allegro at 99 dollars, with agent credits and concurrent task limits per tier.
The tiers gate capability, not just volume. Anthropic's plans do not work like that.
PlanPriceKimi Code allowanceModels
AdagioFreeNoneChat only
Moderato$19 / mo1xk3, k3-256k, kimi-for-coding
Allegretto$39 / mo5xAdds highspeed, K3 up to 1M context
Allegro$99 / mo15xSame as Allegretto
Vivace$199 / mo30xSame as Allegretto

The price ladder maps almost exactly onto Anthropic's. Moderato at $19 sits next to Claude Pro at $20, Vivace at $199 sits next to Claude Max at $200. The shape underneath is different, though. Anthropic gates you on volume and gives every tier the same features. Kimi gates you on capability, so the cheap tiers lock you out of the high-speed models and the 1M context window.

Three limits run at the same time, and hitting any one of them pauses you:

  • A monthly credit pool shared with the rest of the Kimi product, so heavy chat use eats into your coding budget
  • A weekly Kimi Code allowance that refreshes every 7 days from your subscription date
  • A rolling 5 hour rate window

Unused weekly allowance does not roll over. That is stricter than what most teams are used to, and it is the main reason Moderato runs dry on long sessions.

Entry price, flat fee
$19per month

What a Moderato plan costs. Enough to prove the model on real work before you commit to tooling or a bigger tier.

03Point Claude Code at Kimi

Six environment variables. Your files, MCP servers, skills and CLAUDE.md keep working because they are client-side. Only the model endpoint moves.

Claude Code speaks the Anthropic Messages API. Moonshot exposes a matching endpoint, which means you redirect the model traffic and change nothing else. First, get a key from the right place.

Kimi Code documentation page for Claude Code, listing the prerequisites: an active Kimi membership, then creating an API key in the Kimi Code Console.
Moonshot documents this officially. The key must come from the Kimi Code Console, not the API platform.

Then export the variables. Put them in a shell function rather than your .zshrc so you can switch back to Claude in one command.

export ANTHROPIC_BASE_URL=https://api.kimi.com/coding/ export ANTHROPIC_API_KEY=<key from the Kimi Code Console> export ANTHROPIC_MODEL=k3-256k export ANTHROPIC_DEFAULT_OPUS_MODEL=k3-256k export ANTHROPIC_DEFAULT_SONNET_MODEL=k3-256k export ANTHROPIC_DEFAULT_HAIKU_MODEL=kimi-for-coding export CLAUDE_CODE_SUBAGENT_MODEL=k3-256k

The model names depend on your tier. Moderato gets k3, k3-256k and kimi-for-coding. Allegretto and above add kimi-for-coding-highspeed. A few Claude Code variables carry over as well, which is a good sign for how seriously Moonshot treats this path.

Environment variable reference table in the Kimi Code docs listing ANTHROPIC_MODEL, CLAUDE_CODE_EFFORT_LEVEL, CLAUDE_CODE_AUTO_COMPACT_WINDOW and CLAUDE_CODE_MAX_CONTEXT_TOKENS.
Thinking effort maps across too. Type /effort in a session, no environment variable needed.

Two things break in practice. Web fetch errors out, and image handling is unreliable depending on the endpoint. If your workflow leans on screenshots the way ours does, test that first before you plan around it.

04Two consoles, two bills

Keys from the Kimi API platform bill per token with no cap. Keys from the Kimi Code Console ride your monthly plan. This is the mistake that costs money.

Both are called an API key, both look identical, and both go into the same ANTHROPIC_API_KEY variable. Only one of them is covered by the subscription you are paying for.

Key sourceBase URLHow you are billed
Kimi Code Console https://api.kimi.com/coding/ Flat fee. Counts against your plan
Kimi API platform https://api.moonshot.ai/anthropic Per token. $0.95 in, $4.00 out per million

Before you start, clear any stale ANTHROPIC_BASE_URL or ANTHROPIC_AUTH_TOKEN exports left in your shell config from a previous experiment. They silently win over the new ones, and you end up debugging a model that was never being called.

The per-token route is not expensive either, for what it is worth. K2.7 Code runs $0.95 per million input tokens against $5.00 for Claude Opus 4.8. The flat fee is about predictability more than unit price.

05Kimi Code CLI, MCP and folders

Moonshot ships its own terminal agent. It reads and edits files inside a workspace, runs shell commands behind an approval prompt, and speaks MCP over stdio, HTTP and SSE.

This is the closer equivalent of Claude Code, built by the people who built the model. One install line.

The Kimi Code product page showing the one-line install command and the tagline one subscription, code anywhere, with Terminal and IDE tabs.
One subscription covers the terminal agent and the IDE extensions.
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash

Watch the naming. The older kimi-cli is being wound down and replaced by Kimi Code CLI. Config paths differ between them, ~/.kimi/ for the old one against ~/.kimi-code/ for the new one. Install the new one and let it migrate your sessions.

Wiring MCP servers

The config file has the same shape you already know. User level lives at ~/.kimi-code/mcp.json, project level at .kimi-code/mcp.json, and the project entry wins.

{ "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/work"] }, "internal-api": { "url": "https://mcp.example.com/sse" } } }

You can also run /mcp-config inside the terminal UI to add, edit and delete servers without opening the file.

Kimi Code CLI documentation explaining the three MCP connection methods: stdio for local command-line tools, HTTP for running endpoints, and legacy SSE.
MCP tools sit alongside the built-in Read, Bash and Grep tools with no behavioural difference.

Feature parity

FeatureClaude CodeKimi Code CLI
Terminal agentYesYes
Local folder read and writeYesYes, scoped to a workspace
Shell commands with approvalYesYes
MCP serversYesstdio, HTTP, SSE
SubagentsYescoder, explore, plan
SkillsYesYes, in .agents/skills
Project memory fileCLAUDE.mdAGENTS.md
IDE integrationVS Code, JetBrainsVS Code, Cursor, Zed
Browser UINoYes, kimi web

06Kimi in a chat window

Cherry Studio accepts a custom Anthropic-type provider and ships MCP support including filesystem access, so you get chat plus local folders in a desktop app.

Not everyone on a team wants a terminal. Cherry Studio is an open-source desktop client for Mac, Windows and Linux that stores everything locally and never routes your data through its own servers. Settings, Model Service, Add, then pick the Anthropic API type.

Cherry Studio documentation showing the custom AI provider configuration panel with fields for API key and API address.
API key and API address are the only two fields that matter. Point them at the Kimi Code endpoint.

Local folder access comes from the MCP filesystem server, the same mechanism Claude Desktop uses. Cherry Studio ships filesystem, GitHub, web search and memory servers pre-wired, and takes your own on top.

Worth knowing before you build on it: the api.kimi.com/coding/ endpoint is built for coding agents, and Moonshot does not document this path for chat clients. It works, but it is unsupported. The documented route for a chat UI is the standard OpenAI-compatible endpoint, which bills per token. If you want a supported flat fee in a chat window, use kimi web from the CLI instead.

If you would rather self-host for a whole team, LibreChat is the equivalent with multi-user auth. It is heavier to run, wanting Docker and Mongo.

07What we would actually do

Start at $19 with Claude Code pointed at Kimi. Prove the model on real work before paying for tooling or a bigger tier.

Four steps, in order:

  1. Today, 5 minutes. Buy Moderato, create a key in the Kimi Code Console, export the variables, run a throwaway task. Zero setup cost, and you are on a flat fee from minute one so there is no runaway bill while you experiment.
  2. This week, if that goes well. Install Kimi Code CLI properly, point it at one small repo, port two or three MCP servers into .kimi-code/mcp.json, run a real task end to end.
  3. If it becomes the daily driver. Move to Allegretto at $39. That is where you get the high-speed model and the 1M context window, and where the 1x allowance stops being the bottleneck.
  4. Only under a data-residency requirement. Look at self-hosting. K2.7 Code needs roughly 500 to 630 GB of VRAM at INT4, so around 8 H200-class GPUs. That is real money for a worse experience than an API call.

Be careful with the benchmark claims while you evaluate. Kimi K2.7 Code's published numbers are Moonshot's own internal benchmarks from launch. There are no independent third-party SWE-bench Verified or Terminal-Bench results for it yet, while Claude Opus 4.8 has verified public scores. The model is clearly good. Whether it holds up over long autonomous runs with thirty MCP tools loaded is a different question, and the only way to answer it is on your own work.

A cheap second engine you have tested beats an expensive one you assumed.

That is the whole point of running the $19 experiment before the $199 one. The same logic drives how we structure a sprint: prove the smallest thing that could work, then spend.

Everything cited above, in one place.

Official Moonshot docs

Chat clients

Self-hosting and benchmarks

Wedge field notes

KM
Kevin Miguet
Founder · Wedge · Paris
Talk to Kevin →