Genesis supports Kimi as a web_search provider, using Moonshot web search
to produce AI-synthesized answers with citations.
Get an API key
Create a key
Get an API key from [Moonshot AI](https://platform.moonshot.cn/).
Store the key
Set `KIMI_API_KEY` or `MOONSHOT_API_KEY` in the Gateway environment, or
configure via:
```bash
genesis configure --section web
```
When you choose Kimi during genesis onboard or
genesis configure --section web, Genesis can also ask for:
- the Moonshot API region:
https://api.moonshot.ai/v1https://api.moonshot.cn/v1
- the default Kimi web-search model (defaults to
kimi-k2.6)
Config
{
plugins: {
entries: {
moonshot: {
config: {
webSearch: {
apiKey: "sk-...", // optional if KIMI_API_KEY or MOONSHOT_API_KEY is set
baseUrl: "https://api.moonshot.ai/v1",
model: "kimi-k2.6",
},
},
},
},
},
tools: {
web: {
search: {
provider: "kimi",
},
},
},
}
If you use the China API host for chat (models.providers.moonshot.baseUrl:
https://api.moonshot.cn/v1), Genesis reuses that same host for Kimi
web_search when tools.web.search.kimi.baseUrl is omitted, so keys from
platform.moonshot.cn do not hit the
international endpoint by mistake (which often returns HTTP 401). Override
with tools.web.search.kimi.baseUrl when you need a different search base URL.
Environment alternative: set KIMI_API_KEY or MOONSHOT_API_KEY in the
Gateway environment. For a gateway install, put it in ~/.genesis/.env.
If you omit baseUrl, Genesis defaults to https://api.moonshot.ai/v1.
If you omit model, Genesis defaults to kimi-k2.6.
How it works
Kimi uses Moonshot web search to synthesize answers with inline citations, similar to Gemini and Grok's grounded response approach.
Supported parameters
Kimi search supports query.
count is accepted for shared web_search compatibility, but Kimi still
returns one synthesized answer with citations rather than an N-result list.
Provider-specific filters are not currently supported.
Related
- Web Search overview -- all providers and auto-detection
- Moonshot AI -- Moonshot model + Kimi Coding provider docs
- Gemini Search -- AI-synthesized answers via Google grounding
- Grok Search -- AI-synthesized answers via xAI grounding