kimi-cli
Repetitive coding tasks consuming time? Kimi CLI is MoonshotAI's agent for software development assistance. Install via x-cmd for your AI development partner.
| Language | Python |
| Homepage | https://github.com/MoonshotAI/kimi-cli |
x install kimi-cli
| /curl | sh
|
| /uv | sh
|
| win/powershell | sh
|
Kimi CLI: Terminal AI Agent by Moonshot AI for Software Development
Kimi Code CLI is a terminal AI agent by Moonshot AI that helps developers 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.
Core Features
| Feature | Description |
|---|---|
| Code Editing | Read, understand, and modify code files |
| Shell Command Execution | Execute commands in terminal and analyze results |
| Web Search | Search and fetch web content to aid decision-making |
| Autonomous Planning | Plan steps and adjust based on task goals |
| Shell Mode | Press Ctrl-X to switch to shell command mode for direct command execution |
Integration Capabilities
VS Code Extension
Integrate with Visual Studio Code via Kimi Code VS Code Extension.
ACP Protocol Support
Kimi Code CLI natively supports Agent Client Protocol, compatible with any ACP-enabled editor or IDE like Zed, JetBrains, etc.
Configuration example (Zed/JetBrains):
{
"agent_servers": {
"Kimi Code CLI": {
"command": "kimi",
"args": ["acp"],
"env": {}
}
}
}Zsh Integration
Install zsh-kimi-cli plugin and press Ctrl-X in Zsh to switch to agent mode:
git clone https://github.com/MoonshotAI/zsh-kimi-cli.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/kimi-cliThen add kimi-cli to your plugin list in ~/.zshrc.
MCP Support
Kimi Code CLI supports Model Context Protocol (MCP) tools:
# Add HTTP MCP server
kimi mcp add --transport http context7 https://mcp.context7.com/mcp \
--header "CONTEXT7_API_KEY: ctx7sk-your-key"
# Add stdio MCP server
kimi mcp add --transport stdio chrome-devtools -- npx chrome-devtools-mcp@latest
# List added MCP servers
kimi mcp list
# Remove MCP server
kimi mcp remove chrome-devtoolsAlso supports loading MCP servers via configuration file:
kimi --mcp-config-file /path/to/mcp.jsonUse Cases
- Describe programming tasks in natural language in terminal for AI automation
- Complex development workflows requiring both code editing and shell commands
- Integration with VS Code, Zed, JetBrains for enhanced editor AI capabilities
- Extending AI capabilities via MCP (browser debugging, documentation queries, etc.)
Source:
Help us make these docs great!
All X-CMD docs are generated from command help and multiple data sources. See something that's wrong or unclear? Feel free to let us know through any of these ways~