moonshot/kimi-k2.6 for the Moonshot Open Platform, or
kimi/kimi-for-coding for Kimi Coding.
Built-in model catalog
| Model ref | Name | Reasoning | Input | Context | Max output |
|---|---|---|---|---|---|
moonshot/kimi-k2.6 | Kimi K2.6 | No | text, image | 262,144 | 262,144 |
moonshot/kimi-k2.7-code | Kimi K2.7 Code | Always on | text, image | 262,144 | 262,144 |
moonshot/kimi-k2.5 | Kimi K2.5 | No | text, image | 262,144 | 262,144 |
moonshot/kimi-k2-thinking | Kimi K2 Thinking | Yes | text | 262,144 | 262,144 |
moonshot/kimi-k2-thinking-turbo | Kimi K2 Thinking Turbo | Yes | text | 262,144 | 262,144 |
moonshot/kimi-k2-turbo | Kimi K2 Turbo | No | text | 256,000 | 16,384 |
on
thinking state for this model and omits outbound thinking and
reasoning_effort fields, as required by Moonshot. It also omits sampling
overrides (temperature, top_p, n, presence_penalty,
frequency_penalty), which K2.7 fixes to provider defaults. Kimi K2.6 remains
the onboarding default.
Getting started
Both Moonshot and Kimi Coding are external plugins - install one before onboarding.- Moonshot API
- Kimi Coding
Best for: Kimi K2 models via the Moonshot Open Platform.
Choose your endpoint region
| Auth choice | Endpoint | Region |
|---|---|---|
moonshot-api-key | https://api.moonshot.ai/v1 | International |
moonshot-api-key-cn | https://api.moonshot.cn/v1 | China |
Run a live smoke test
Use an isolated state dir when you want to verify model access and cost
tracking without touching your normal sessions:The JSON response should report
provider: "moonshot" and
model: "kimi-k2.6". The assistant transcript entry stores normalized
token usage plus estimated cost under usage.cost when Moonshot returns
usage metadata.Config example
Kimi web search
The Moonshot plugin also registers Kimi as aweb_search provider, backed by Moonshot web search.
Run interactive web search setup
plugins.entries.moonshot.config.webSearch.*.plugins.entries.moonshot.config.webSearch:
Advanced configuration
Native thinking mode
Native thinking mode
Kimi K2.7 Code always uses native thinking. Moonshot requires clients to
omit the OpenClaw maps runtime
Kimi K2.6 also accepts an optional
thinking field for this model, so OpenClaw exposes only on and
ignores stale off settings. K2.7 also fixes temperature, top_p, n,
presence_penalty, and frequency_penalty; OpenClaw omits configured
overrides for those fields.Other Moonshot Kimi models support binary native thinking:thinking: { type: "enabled" }thinking: { type: "disabled" }
agents.defaults.models.<provider/model>.params:/think levels for those models:/think level | Moonshot behavior |
|---|---|
/think off | thinking.type=disabled |
| Any non-off level | thinking.type=enabled |
thinking.keep field that controls
multi-turn retention of reasoning_content. Set it to "all" to keep full
reasoning across turns; omit it (or leave it null) to use the server
default strategy. OpenClaw only forwards thinking.keep for
moonshot/kimi-k2.6 and strips it from other models. Kimi K2.7 Code
preserves full reasoning history by default while OpenClaw omits the entire
thinking field.Tool call id sanitization
Tool call id sanitization
Moonshot Kimi serves native tool_call ids shaped like
functions.<name>:<index>. OpenClaw preserves the first occurrence of each native Kimi id and rewrites later duplicates to deterministic OpenAI-style call_* ids. Matching tool results are remapped with the same id so replay remains unique without stripping Kimi’s first native id. This behavior is wired into the bundled Moonshot provider and is not a user-configurable setting.Streaming usage compatibility
Streaming usage compatibility
Native Moonshot endpoints (
https://api.moonshot.ai/v1 and
https://api.moonshot.cn/v1) advertise streaming usage compatibility.
OpenClaw keys this off the endpoint host, not the provider id, so a custom
provider id pointed at the same native Moonshot host inherits the same
streaming-usage behavior.With the catalog K2.6 pricing, streamed usage that includes input, output,
and cache-read tokens is also converted into local estimated USD cost for
/status, /usage full, /usage cost, and transcript-backed session
accounting.Endpoint and model ref reference
Endpoint and model ref reference
| Provider | Model ref prefix | Endpoint | Auth env var |
|---|---|---|---|
| Moonshot | moonshot/ | https://api.moonshot.ai/v1 | MOONSHOT_API_KEY |
| Moonshot CN | moonshot/ | https://api.moonshot.cn/v1 | MOONSHOT_API_KEY |
| Kimi Coding | kimi/ | Kimi Coding endpoint | KIMI_API_KEY |
| Web search | N/A | Same as Moonshot API region | KIMI_API_KEY or MOONSHOT_API_KEY |
- Kimi web search uses
KIMI_API_KEYorMOONSHOT_API_KEY, and defaults tohttps://api.moonshot.ai/v1with modelkimi-k2.6. - Override pricing and context metadata in
models.providersif needed. - If Moonshot publishes different context limits for a model, adjust
contextWindowaccordingly.
Related
Model selection
Choosing providers, model refs, and failover behavior.
Web search
Configuring web search providers including Kimi.
Configuration reference
Full config schema for providers, models, and plugins.
Moonshot Open Platform
Moonshot API key management and documentation.