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

View File

@@ -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://<your-endpoint>/anthropic"
base_url = "https://<your-endpoint>"
api_key = "-"
[models.kimi-k3]