diff --git a/public/docs-static/img/agent-network/integrations/agent-network-configure-agent-kimi-cli.png b/public/docs-static/img/agent-network/integrations/agent-network-configure-agent-kimi-cli.png index b2ae0466..246b0852 100644 Binary files a/public/docs-static/img/agent-network/integrations/agent-network-configure-agent-kimi-cli.png and b/public/docs-static/img/agent-network/integrations/agent-network-configure-agent-kimi-cli.png differ diff --git a/public/docs-static/img/agent-network/integrations/agent-network-connect-kimi.png b/public/docs-static/img/agent-network/integrations/agent-network-connect-kimi.png index 8eb9aad3..52e132b9 100644 Binary files a/public/docs-static/img/agent-network/integrations/agent-network-connect-kimi.png and b/public/docs-static/img/agent-network/integrations/agent-network-connect-kimi.png differ diff --git a/src/pages/agent-network/integrations/kimi.mdx b/src/pages/agent-network/integrations/kimi.mdx index 920d1564..c7176e0c 100644 --- a/src/pages/agent-network/integrations/kimi.mdx +++ b/src/pages/agent-network/integrations/kimi.mdx @@ -16,9 +16,9 @@ Moonshot serves **two API shapes with the same API key**: - the **OpenAI Chat Completions API** under `https://api.moonshot.ai/v1` - the **Anthropic Messages API** under `https://api.moonshot.ai/anthropic` -Your agents pick the shape with the path they call on your NetBird endpoint — `/v1/...` -for the OpenAI shape, `/anthropic/v1/...` for the Anthropic shape — and the path rides -through to Moonshot. One Kimi provider serves both. +The path an agent calls on your NetBird endpoint rides through to Moonshot, so one Kimi +provider serves both shapes — each agent's base URL decides (Claude Code appends +`/anthropic`, Kimi CLI and OpenAI-shaped callers use the bare endpoint; see below). ## Connect the Provider @@ -121,8 +121,8 @@ Kimi K3's 1M-token context — optional, but worth adding for long sessions. ## Use with Kimi CLI [Kimi CLI](https://github.com/MoonshotAI/kimi-cli) is Moonshot's own coding agent. Configure -it with a custom provider of type `anthropic`, which speaks the Anthropic Messages API — -so, like Claude Code, its base URL is your endpoint with the `/anthropic` suffix. +it with a custom provider of type `anthropic`. Unlike Claude Code, its base URL is the bare +endpoint — no `/anthropic` suffix. Add the following to `~/.kimi/config.toml`. The dummy `api_key` keeps the CLI from prompting for one — NetBird injects the real key server-side. @@ -132,7 +132,7 @@ default_model = "kimi-k3" [providers.netbird] type = "anthropic" -base_url = "https:///anthropic" +base_url = "https://" api_key = "-" [models.kimi-k3]