Skip to main content

Moonshot AI (Kimi)

Moonshot provides the Kimi API with OpenAI-compatible endpoints. Configure the provider and set the default model to moonshot/kimi-k2.5, or use Kimi Coding with kimi/kimi-code.
Moonshot and Kimi Coding are separate providers. Keys are not interchangeable, endpoints differ, and model refs differ (moonshot/... vs kimi/...).

Built-in model catalog

Getting started

Choose your provider and follow the setup steps.
Best for: Kimi K2 models via the Moonshot Open Platform.
1

Choose your endpoint region

2

Run onboarding

Or for the China endpoint:
3

Set a default model

4

Verify models are available

Config example

Velaclaw also ships Kimi as a web_search provider, backed by Moonshot web search.
1

Run interactive web search setup

Choose Kimi in the web-search section to store plugins.entries.moonshot.config.webSearch.*.
2

Configure the web search region and model

Interactive setup prompts for:
Config lives under plugins.entries.moonshot.config.webSearch:

Advanced

Moonshot Kimi supports binary native thinking:
  • thinking: { type: "enabled" }
  • thinking: { type: "disabled" }
Configure it per model via agents.defaults.models.<provider/model>.params:
Velaclaw also maps runtime /think levels for Moonshot:
When Moonshot thinking is enabled, tool_choice must be auto or none. Velaclaw normalizes incompatible tool_choice values to auto for compatibility.
Native Moonshot endpoints (https://api.moonshot.ai/v1 and https://api.moonshot.cn/v1) advertise streaming usage compatibility on the shared openai-completions transport. Velaclaw keys that off endpoint capabilities, so compatible custom provider ids targeting the same native Moonshot hosts inherit the same streaming-usage behavior.
  • Kimi web search uses KIMI_API_KEY or MOONSHOT_API_KEY, and defaults to https://api.moonshot.ai/v1 with model kimi-k2.5.
  • Override pricing and context metadata in models.providers if needed.
  • If Moonshot publishes different context limits for a model, adjust contextWindow accordingly.

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.