# 使用 Homebrew, scoop, winget 安装 kimi-cli

查看 kimi-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:kimi-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kimi-cli
```

  证据: local Homebrew formula metadata

### Windows

- Scoop (92%):

```sh
scoop install main/kimi-cli
```

  证据: Scoop official bucket manifest trees: bucket/kimi-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id MoonshotAI.KimiCLI -e
```

  证据: Windows Package Manager source index: MoonshotAI.KimiCLI from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:kimi-cli
- **软件包管理器:** Homebrew
- **版本:** 1.48.0
- **来源摘要:** CLI agent for MoonshotAI Kimi platform
- **主页:** <https://moonshotai.github.io/kimi-cli/>
- **仓库:** <https://github.com/MoonshotAI/kimi-cli>
- **最后更新:** 2026-08-02T01:26:52+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kimi (别名)
- kimi-cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.48.0
## 项目历史与用法

Kimi CLI is MoonshotAI's terminal AI agent for software-development and shell workflows. Its README describes an agent that can edit code, execute commands, fetch web pages, plan, and adjust actions from terminal feedback.

### 项目历史

Kimi CLI was the earlier MoonshotAI terminal-agent package around the Kimi platform. The repository includes Python package structure, docs, examples, SDK material, tests, and release automation, showing a full CLI product rather than a thin API wrapper.

In 2026 the project began a transition to Kimi Code CLI. The README states that Kimi CLI is evolving into Kimi Code CLI, that installing Kimi Code CLI migrates configuration and sessions, and that the Kimi CLI project will be gradually wound down while docs and existing installations remain available.

### 采用历史

Kimi CLI accumulated a visible developer audience on GitHub and was packaged for Homebrew in this batch. Its official README also documents integrations with VS Code, Agent Client Protocol-compatible editors, Zsh, and MCP servers, placing it in the 2025-2026 wave of terminal AI agent tooling.

The companion kimi-agent-rs repository describes a Rust rewrite of the Python kimi-cli runtime that must preserve wire protocol, message formats, ~/.kimi data layout, tool schemas, and externally observable behavior, which is a strong signal that Kimi CLI had become a compatibility target inside MoonshotAI's agent tooling.

### 使用方式

Users run Kimi CLI as an interactive terminal agent, authenticate with /login, connect MCP servers, and use it either directly in a terminal or as an ACP agent server for editors such as Zed or JetBrains IDEs.

Its configuration and credential paths matter to package users because Kimi Code CLI migration preserves that state rather than treating the successor as a clean-room replacement.

### 为什么软件包爱好者会关心

Kimi CLI is interesting as a transition package: it represents the Python-era MoonshotAI terminal agent and the compatibility surface that newer runtimes and successor CLIs had to carry forward.

For package managers, the useful bit is not only the binary name but the state layout under ~/.kimi, because that is what determines whether upgrades and successor packages can avoid breaking developer sessions.

### 时间线

- 2026: Kimi CLI release 1.46.0 included docs announcing the evolution to the Kimi Code successor project.
- 2026: Kimi CLI release 1.47.0, released on 2026-06-05, renamed project docs to Kimi CLI and guided users to upgrade to Kimi Code.
- 2026: Kimi CLI release 1.48.0 assets were published on 2026-06-22.

### Related projects

- Kimi Code CLI is the successor project named by the Kimi CLI README.
- kimi-agent-rs is the Rust rewrite that preserves Kimi CLI compatibility.
- Agent Client Protocol, MCP, Zsh integration, and the Kimi Code VS Code extension are adjacent integration surfaces documented by the project.

### 来源

- <https://github.com/MoonshotAI/kimi-agent-rs>
- <https://github.com/MoonshotAI/kimi-cli>
- <https://github.com/MoonshotAI/kimi-cli/releases>
- <https://moonshotai.github.io/kimi-cli/>


## 安全说明

没有找到 kimi-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.kimi/config.toml, ~/.kimi/mcp.json

## Credential files

- Unix: ~/.kimi/config.toml, ~/.kimi/credentials/<provider>.json, ~/.kimi/mcp-oauth/
## 其他软件包管理器记录

- Scoop - main/kimi-cli: normalized package name match | Scoop official bucket manifest trees: bucket/kimi-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - MoonshotAI.KimiCLI: normalized package name match | Windows Package Manager source index: MoonshotAI.KimiCLI from https://cdn.winget.microsoft.com/cache/source.msix
- winget - MoonshotAI.Kimi: installed executable or alias match | Windows Package Manager source index: MoonshotAI.Kimi from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/kimi-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kimi-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
