Moonshot AI Releases Kimi Code CLI: A Terminal AI Coding Agent Built in TypeScript for Next-Gen Agents

Disclosure: Some links in this article are affiliate links. AI Maestro may earn a commission if you make a purchase, at no…

By AI Maestro June 6, 2026 3 min read
Moonshot AI Releases Kimi Code CLI: A Terminal AI Coding Agent Built in TypeScript for Next-Gen Agents

Developers and makers now have a new terminal-based AI coding agent that operates entirely within the command line. Moonshot AI has launched Kimi Code CLI, an open-source tool designed to read, edit, and execute code while managing shell commands and web searches. Unlike previous iterations, this agent loops through feedback to determine its next move. The project is MIT-licensed and hosted on GitHub.

Kimi Code CLI replaces the older kimi-cli. Built in TypeScript and available via npm, it integrates natively with Moonshot AI’s Kimi models but can also connect to other compatible providers out of the box.

What is Kimi Code CLI

Designed for software development and terminal operations, the agent handles feature implementation, bug fixes, and refactoring. It can also navigate unfamiliar codebases to answer architectural questions. The tool supports batch processing, builds, and chained test runs.

The workflow is feedback-driven. The agent plans steps, modifies files, executes tests, and reports actions. Read-only tasks run automatically by default. However, any file edits or shell commands require explicit user confirmation first, ensuring risky actions remain under developer control.

The CLI software itself is free under the MIT license. Access to the underlying models requires either Kimi Code OAuth or a Moonshot AI Open Platform API key.

Key Features

Moonshot highlights several capabilities aimed at sustaining long, focused agent sessions:

  • Single-binary distribution. Installation requires just one command, eliminating the need for separate Node.js setup.
  • Fast startup. The terminal user interface (TUI) becomes ready in mere milliseconds.
  • Purpose-built TUI. The interface is optimised for extended interaction periods.
  • Video input. Users can drop screen recordings or demo clips directly into the chat.
  • AI-native MCP configuration. Model Context Protocol servers can be added and authenticated via the /mcp-config command.
  • Subagents for parallel work. Built-in coder, explore, and plan subagents can be dispatched in isolated contexts to handle multiple tasks simultaneously.
  • Lifecycle hooks. Developers can run local commands to gate tool calls, audit decisions, or trigger notifications.

Installation and First Run

There are two paths to installation. The official script works without requiring pre-installed Node.js.

On macOS or Linux, run the install script:

curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash

On Windows, use PowerShell:

irm https://code.kimi.com/kimi-code/install.ps1 | iex

The global npm install requires Node.js 24.15.0 or later:

npm install -g @moonshot-ai/kimi-code

Verify the binary, then open a project and start the interactive UI:

kimi --version
cd your-project
kimi

On first launch, type /login inside the interface. You may choose Kimi Code OAuth or a Moonshot AI Open Platform API key. For a single instruction without the UI, use kimi -p "your task". To resume the previous session, add -C.

Use Cases

  • Understanding a project: Request an architecture overview and a module dependency diagram.
  • Implementing a feature: Define the signature, options, and acceptance criteria upfront.
  • Fixing a bug: Provide the symptom, reproduction steps, and expected behaviour together.
  • Writing tests and refactoring: Extract repeated patterns, then run tests to confirm behaviour.
  • One-off automation: Analyse logs and output call counts with p50 and p99 latencies.
  • Scheduled tasks: Ask the agent to set reminders or recurring checks via cron.

Plan mode is accessible via Shift-Tab or kimi --plan. It outputs a research plan before modifying any files. For safe batch work, --yolo or /yolo skips approval prompts. The /fork command creates an experimental branch you can discard. The /compact command compresses context to free up tokens. For large investigations, the main agent can dispatch subagents in parallel.

How Kimi Code CLI Compares

Kimi Code CLI joins a growing list of established terminal coding agents. The table below compares it with three competitors. Competitor details reflect mid-2026 and can change quickly.

AttributeKimi Code CLIClaude CodeOpenAI Codex CLIGemini CLI
DeveloperMoonshot AIAnthropicOpenAIGoogle
Backing modelKimi modelsClaude modelsGPT-5.3-CodexGemini 2.5 Pro
Language / runtimeTypeScriptNode.jsRustTypeScript
InstallScript or npm (Node.js ≥ 24.15.0)Native installer or npmnpm / nativenpm single binary
MCP supportYes (/mcp-config)YesYesYes
SubagentsYes (coder, explore, plan)YesYesNo (sequential)
Plan modeYes (Shift-Tab)YesYesYes
IDE integrationACP (Zed, JetBrains)VS Code, JetBrainsVS Code, IDEsVS Code (Code Assist)
LicenseMITProprietaryOpen sourceApache 2.0

All four agents support the Model Context Protocol. They differ on backing model, language, license, and orchestration. Kimi Code CLI and Codex CLI both ship native subagents. Gemini CLI runs tasks sequentially without subagent support.

Key takeaways

  • Kimi Code CLI is an MIT-licensed terminal coding agent from Moonshot

    Stay ahead of AI. Get the most important stories delivered to your inbox — no spam, no noise.

    Name
Scroll to Top