Kimi CLI uses the bare endpoint base URL

Only Claude Code carries the /anthropic prefix. Updates the Kimi CLI
section, the shape-selection intro, and the affected screenshots.
This commit is contained in:
mlsmaycon
2026-07-23 04:10:10 +00:00
parent 1bb0b41113
commit 597aee90c4
3 changed files with 6 additions and 6 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 166 KiB

@@ -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 **OpenAI Chat Completions API** under `https://api.moonshot.ai/v1`
- the **Anthropic Messages API** under `https://api.moonshot.ai/anthropic` - 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/...` The path an agent calls on your NetBird endpoint rides through to Moonshot, so one Kimi
for the OpenAI shape, `/anthropic/v1/...` for the Anthropic shape — and the path rides provider serves both shapes — each agent's base URL decides (Claude Code appends
through to Moonshot. One Kimi provider serves both. `/anthropic`, Kimi CLI and OpenAI-shaped callers use the bare endpoint; see below).
## Connect the Provider ## Connect the Provider
@@ -121,8 +121,8 @@ Kimi K3's 1M-token context — optional, but worth adding for long sessions.
## Use with Kimi CLI ## Use with Kimi CLI
[Kimi CLI](https://github.com/MoonshotAI/kimi-cli) is Moonshot's own coding agent. Configure [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 — it with a custom provider of type `anthropic`. Unlike Claude Code, its base URL is the bare
so, like Claude Code, its base URL is your endpoint with the `/anthropic` suffix. endpoint — no `/anthropic` suffix.
Add the following to `~/.kimi/config.toml`. The dummy `api_key` keeps the CLI from prompting 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. for one — NetBird injects the real key server-side.
@@ -132,7 +132,7 @@ default_model = "kimi-k3"
[providers.netbird] [providers.netbird]
type = "anthropic" type = "anthropic"
base_url = "https://<your-endpoint>/anthropic" base_url = "https://<your-endpoint>"
api_key = "-" api_key = "-"
[models.kimi-k3] [models.kimi-k3]