Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
K

kimi-cli

> 编程语言
Open source

Kimi Code CLI is your next CLI agent.

11.1K stars0 likes2 views
WebsiteGitHub

About

Kimi Code CLI is your next CLI agent.

Kimi CLI

Kimi Code | Documentation | 文档

[!IMPORTANT] Kimi CLI is evolving into Kimi Code CLI — the next-generation terminal AI agent from the same team. Installing Kimi Code CLI automatically migrates your configuration and sessions. This project will be gradually wound down; the docs and existing installations remain available.

Kimi CLI is an AI agent that runs in the terminal, helping you complete software development tasks and terminal operations. It can read and edit code, execute shell commands, search and fetch web pages, and autonomously plan and adjust actions during execution.

Getting Started

See Getting Started for how to install and start using Kimi CLI.

Key Features

Shell command mode

Kimi CLI is not only a coding agent, but also a shell. You can switch the shell command mode by pressing Ctrl-X. In this mode, you can directly run shell commands without leaving Kimi CLI.

[!NOTE] Built-in shell commands like cd are not supported yet.

VS Code extension

Kimi CLI can be integrated with Visual Studio Code via the Kimi Code VS Code Extension.

IDE integration via ACP

Kimi CLI supports Agent Client Protocol out of the box. You can use it together with any ACP-compatible editor or IDE.

To use Kimi CLI with ACP clients, make sure to run Kimi CLI in the terminal and send /login to complete the login first. Then, you can configure your ACP client to start Kimi CLI as an ACP agent server with command kimi acp.

For example, to use Kimi CLI with Zed or JetBrains, add the following configuration to your ~/.config/zed/settings.json or ~/.jetbrains/acp.json file:

json
{
  "agent_servers": {
    "Kimi CLI": {
      "type": "custom",
      "command": "kimi",
      "args": ["acp"],
      "env": {}
    }
  }
}

Then you can create Kimi CLI threads in IDE's agent panel.

Zsh integration

You can use Kimi CLI together with Zsh, to empower your shell experience with AI agent capabilities.

Install the zsh-kimi-cli plugin via:

bash
git clone https://github.com/MoonshotAI/zsh-kimi-cli.git \
  ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/kimi-cli

[!NOTE] If you are using a plugin manager other than Oh My Zsh, you may need to refer to the plugin's README for installation instructions.

Then add kimi-cli to your Zsh plugin list in ~/.zshrc:

bash
plugins=(... kimi-cli)

After restarting Zsh, you can switch to agent mode by pressing Ctrl-X.

MCP support

Kimi CLI supports MCP (Model Context Protocol) tools.

kimi mcp sub-command group

You can manage MCP servers with kimi mcp sub-command group. For example:

bash
# Add streamable HTTP server:
kimi mcp add --transport http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: ctx7sk-your-key"

# Add streamable HTTP server with OAuth authorization:
kimi mcp add --transport http --auth oauth linear https://mcp.linear.app/mcp

# Add stdio server:
kimi mcp add --transport stdio chrome-devtools -- npx chrome-devtools-mcp@latest

# List added MCP servers:
kimi mcp list

# Remove an MCP server:
kimi mcp remove chrome-devtools

# Authorize an MCP server:
kimi mcp auth linear

Ad-hoc MCP configuration

Kimi CLI also supports ad-hoc MCP server configuration via CLI option.

Given an MCP config file in the well-known MCP config format like the following:

json
{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "CONTEXT7_API_KEY": "YOUR_API_KEY"
      }
    },
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@latest"]
    }
  }
}

Run kimi with --mcp-config-file option to connect to the specified MCP servers:

bash
kimi --mcp-config-file /path/to/mcp.json

More

See more features in the Documentation.

Development

To develop Kimi CLI, run:

bash
git clone https://github.com/MoonshotAI/kimi-cli.git
cd kimi-cli

make prepare  # prepare the development environment

Then you can start working on Kimi CLI.

Refer to the following commands after you make changes:

bash
uv run kimi  # run Kimi CLI

make format  # format code
make check  # run linting and type checking
make test  # run tests
make test-kimi-cli  # run Kimi CLI tests only
make test-kosong  # run kosong tests only
make test-pykaos  # run pykaos tests only
make build-web  # build the web UI and sync it into the package (requires Node.js/npm)
make build  # build python packages
make build-bin  # build standalone binary
make help  # show all make targets

Note: make build and make build-bin automatically run make build-web to embed the web UI.

Issues· 797 open

View all issuesOpen on GitHub
  • #2596

    Agent ran rm -rf on a pre-existing directory outside the workspace, deleting user session data

    Updated Sep 23, 2026
  • #2336

    [Bug] Session corruption under memory pressure: lost conversation + 400 tool_call response error on resume

    bugUpdated Sep 22, 2026
  • #2661

    Kimi CLI is no longer maintained: please migrate to Kimi Code CLI | Kimi CLI 停止维护,请迁移至 Kimi Code CLI

    Updated Sep 21, 2026
  • #2655

    [Bug] Client crashes on large prompts: stack overflow in path regex (~900KB input), before any network request

    bugUpdated Sep 20, 2026
  • #2650

    [Bug] Intermittent subagent launch failure: OAuth token fetch to auth.kimi.ai times out

    Updated Sep 20, 2026
  • #2653

    [Bug] OpenCode Go returns 400 because x-opencode-session header is missing

    Updated Sep 19, 2026
  • #1680

    vscode中独立调节 kimi 窗口中的字体的大小 || Independently adjust the font size in the kimi window in vscode

    enhancementUpdated Sep 18, 2026
  • #2652

    [Bug] macOS 2.0.0 粘贴图片偶发静默失败(0.43.x 回归)|| Ctrl+V paste image intermittently does nothing (regression from 0.43.x)

    Updated Sep 18, 2026
  • #2649

    [Bug][Kimi Desktop] "chat 记忆 / 梦境记忆"开关拨动后不写入配置;疑似服务端功能门控未放行 || [Bug][Kimi Desktop] "chat memory / The configuration of "Dream Memory" is not written after the switch is toggled; it is suspected that the server function gate control is not released.

    Updated Sep 17, 2026
  • #2647

    Session keeps burning quota after terminal 403 "5-hour usage limit": subagent spawns detached retry-loop calling kimi CLI overnight, main agent retries for 14h

    Updated Sep 16, 2026

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言