Kimi CLI

Kimi CLI (official name: Kimi Code CLI) is Moonshot AI's open-source terminal-native AI coding agent, the CLI surface of the Kimi Code product. It runs an agentic loop in the terminal, operating on code, files, and shell commands via natural language, backed by the Kimi K2 model line.

Canonical version: Kimi CLI.

Kimi CLI (official name: Kimi Code CLI) is Moonshot AI's open-source terminal-native AI coding agent, the CLI surface of the Kimi Code product. It runs an agentic loop in the terminal, operating on code, files, and shell commands via natural language, backed by the Kimi K2 model line.

It is positioned alongside Claude Code and Gemini CLI as a first-class agentic coding CLI — distinguishing itself with open-weight model support and native Agent Client Protocol (ACP) integration.

Key Features

  • Interactive CLI (kimi) — conversational AI agent in the terminal with natural language or shell command execution
  • Browser UI (kimi web) — local browser interface with session management and file references
  • ACP service (kimi acp) — runs as a service exposing the Agent Client Protocol for IDE integration (e.g., Zed, OpenClaw)
  • Shell mode — toggle with Ctrl-X to run shell commands directly inside Kimi CLI
  • Model Context Protocol (MCP) support — connects to local (stdio) and remote (http/sse) MCP servers; manage with kimi mcp sub-commands
  • Multi-provider — supports Moonshot AI, OpenAI, Claude, and Gemini as backends
  • Tool approval flow — built-in approval and timeout controls for external tool execution

Built-in Tools

File read/write, shell execution, code analysis, web search and fetch.

Commands

  • kimi — start interactive session
  • kimi web — open browser UI
  • kimi acp — start ACP service
  • kimi mcp — manage MCP server configurations

Positioning

Kimi CLI is Moonshot's answer to Claude Code and Gemini CLI in the agentic terminal agent space, with two differentiating bets:

  1. Open-weight models (K2 line) can be self-hosted
  2. First-class ACP support makes it a drop-in backend for any ACP-compatible editor or orchestrator

References


About Sébastien

I'm Sébastien Dubois, and I'm on a mission to help knowledge workers escape information overload. After 20+ years in IT and seeing too many brilliant minds drowning in digital chaos, I've decided to help people build systems that actually work. Through the Knowii Community, my courses, products & services and my Website/Newsletter, I share practical and battle-tested systems.

I write about Knowledge Work, Personal Knowledge Management, Note-taking, Lifelong Learning, Personal Organization, Productivity, and more. I also craft lovely digital products and tools.

If you want to follow my work, then become a member and join our community.

Ready to get to the next level?

If you're tired of information overwhelm and ready to build a reliable knowledge system:

Found this valuable? Share it with someone who needs it.

Join 6,000+ readers. Get practical systems for knowledge & AI. Free.

Subscribe ✨

Free: Knowledge System Checklist

A clear roadmap to building your own knowledge system. Subscribe and get it straight to your inbox.

6,000+ readers. No spam. Unsubscribe anytime.