fix: clarify Kimi Platform login copy (#274)

This commit is contained in:
qer 2026-06-01 18:43:01 +08:00 committed by GitHub
parent e2e17289fc
commit a1dfbfeb16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 54 additions and 22 deletions

View file

@ -8,7 +8,7 @@ The `type` field of each entry in the `providers` table determines which impleme
| Type | Protocol | Typical platforms |
| --- | --- | --- |
| `kimi` | OpenAI-compatible (chat completions style) | Kimi Code, Moonshot AI Open Platform |
| `kimi` | OpenAI-compatible (chat completions style) | Kimi Code, Kimi Platform API key |
| `anthropic` | Anthropic Messages | Claude API |
| `openai` | OpenAI Chat Completions | OpenAI and compatible services |
| `openai_responses` | OpenAI Responses API | OpenAI's newer Responses endpoint |

View file

@ -101,8 +101,8 @@ On the first launch, Kimi Code CLI has no credentials yet, and you need to confi
`/login` opens a platform selector supporting:
- **Kimi Code** — OAuth device code flow; open the URL on any device, sign in, and enter the code to authorize
- **Moonshot AI Open Platform** — log in directly with an API key
- **Kimi Code (OAuth)** — device code flow; open the URL on any device, sign in, and enter the code to authorize
- **Kimi Platform API key** — enter an API key from `platform.kimi.com` or `platform.kimi.ai`
To sign out, enter `/logout` to clear the current credentials.

View file

@ -12,7 +12,7 @@ Some commands are only available in the idle state. Running them while the sessi
| Command | Alias | Description | Always available |
| --- | --- | --- | --- |
| `/login` | — | Pick an account or platform and sign in: Kimi Code uses the OAuth device code flow, while the Moonshot AI Open Platform signs in with an API key. | No |
| `/login` | — | Pick an account or platform and sign in: Kimi Code uses the OAuth device code flow, while Kimi Platform signs in with an API key. | No |
| `/logout` | — | Clear the credentials of the currently selected account (Kimi Code OAuth credentials, or the corresponding open platform provider config). | No |
| `/connect [--refresh] [--url=<catalog-url>]` | — | Configure a provider and model from a model catalog. The default catalog is bundled with the CLI; pass `--refresh` to fetch the latest catalog from models.dev, or `--url` to read it from a custom URL. See [Providers and models — `/connect` and the model catalog](../configuration/providers.md#connect-and-the-model-catalog). | No |
| `/model` | — | Switch the LLM model used by the current session. | No |

View file

@ -8,7 +8,7 @@ Kimi Code CLI 通过统一的供应商抽象对接多家 LLM 平台。每个供
| 类型 | 协议 | 典型平台 |
| --- | --- | --- |
| `kimi` | OpenAI 兼容chat completions 风格) | Kimi Code、Moonshot AI 开放平台 |
| `kimi` | OpenAI 兼容chat completions 风格) | Kimi Code、Kimi Platform API 密钥 |
| `anthropic` | Anthropic Messages | Claude API |
| `openai` | OpenAI Chat Completions | OpenAI 及其兼容服务 |
| `openai_responses` | OpenAI Responses API | OpenAI 较新的 Responses 接口 |

View file

@ -101,8 +101,8 @@ kimi -C
`/login` 会弹出平台选择器,支持:
- **Kimi Code** — OAuth 验证码流程,在任意设备打开链接、登录并输入验证码即可授权
- **Moonshot AI Open Platform** — 直接输入 API key 登录
- **Kimi CodeOAuth** — 验证码流程,在任意设备打开链接、登录并输入验证码即可授权
- **Kimi Platform API 密钥** — 输入来自 `platform.kimi.com``platform.kimi.ai` 的 API 密钥
需要退出登录时,输入 `/logout` 即可清除当前凭证。

View file

@ -12,7 +12,7 @@
| 命令 | 别名 | 说明 | 随时可用 |
| --- | --- | --- | --- |
| `/login` | — | 选择账号或平台并登录Kimi Code 走 OAuth device code 流程Moonshot AI 开放平台通过 API 密钥登录。 | 否 |
| `/login` | — | 选择账号或平台并登录Kimi Code 走 OAuth 验证码流程Kimi Platform 通过 API 密钥登录。 | 否 |
| `/logout` | — | 清除当前所选账号的凭据Kimi Code OAuth 凭据,或对应开放平台的供应商配置)。 | 否 |
| `/connect [--refresh] [--url=<catalog-url>]` | — | 从模型目录中选择并配置供应商与模型。CLI 已内置默认目录;传入 `--refresh` 可从 models.dev 拉取最新目录,传入 `--url` 可指向自定义目录地址。详见 [平台与模型 — `/connect` 与模型目录](../configuration/providers.md#connect-与模型目录)。 | 否 |
| `/model` | — | 切换当前会话使用的 LLM 模型。 | 否 |