Skip to main content

Moonshot (Kimi)

Moonshot AI develops the Kimi model series, known for long-context capabilities. WednesdayAI supports Moonshot’s cloud API.

Prerequisites

Create an API key at platform.moonshot.cn (China mainland) or platform.moonshot.ai (international) and set it on the gateway host:

Configuration

apiKey is the name of the environment variable, not the key value itself. Keep secrets in .env, not in committed config files.
Regional endpoints: use baseUrl: "https://api.moonshot.ai/v1" for international access, or baseUrl: "https://api.moonshot.cn/v1" for China mainland. If omitted, the default endpoint is used — set baseUrl explicitly if you are routing to a specific region.

Selecting a model

Run openclaw models list --provider moonshot for the full current catalog.

Extended reasoning (thinking mode)

Kimi models support native extended reasoning. Enable it by adding thinking to the provider config:
Thinking mode is most effective with the kimi-k2-thinking and kimi-k2-thinking-turbo model variants, which are tuned for chain-of-thought generation.

kimi-coding variant

kimi-coding is a distinct provider variant with a separate endpoint and separate API keys from the standard Moonshot API. It is optimised for code-generation workloads. If you have kimi-coding credentials, configure it as its own provider entry with the kimi-coding base URL and credentials — do not mix keys with the moonshot provider.

Troubleshooting

The API key is invalid. Generate a new one at platform.moonshot.cn and update ~/.openclaw/.env.
You have exceeded your quota. Check your usage and limits in the Moonshot platform console.
Verify the model ID against the Moonshot platform documentation — the catalog may have changed.