Technology & AI

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

Moonshot AI has released the Kimi Code CLI, an open source terminal-based agent. The tool reads and edits code, executes shell commands, searches files, and downloads web pages. It then chooses its next step based on the feedback it receives. This project is licensed by MIT and resides on GitHub.

Kimi Code CLI is a successor to the old kim-cli. The new agent is written in TypeScript and distributed via npm. Works out of the box with Moonshot AI’s Kimi models. It may also be configured to use other compatible providers.

What is Kimi Code CLI

Kimi Code CLI is an AI agent for software development and terminal operations. It can implement new features, fix bugs, and complete a refactor. It can also examine the nonstandard codebase and answer architectural questions. Batch file processing, building, and nested testing are also supported.

The operating model is driven by feedback. The agent organizes steps, modifies code, performs tests, and reports its actions. Read-only functions run automatically. For file editing or shell commands, the agent asks for authentication first. This authorization flow keeps risky actions under the developer’s control.

The CLI itself is free and licensed by MIT. Accessing the model requires a Kimi Code OAuth or Moonshot AI Open Platform API key.

Main Features

Moonshot lists several features intended for long, focused agent sessions:

  • One binary distribution. One command installs it, no Node.js setup required.
  • Fast startup. Moonshot says TUI is ready in milliseconds.
  • A purpose-built TUI. The interface is optimized for extended agent sessions.
  • Video input. Post a screen recording or demo clip in the chat.
  • Native MCP configuration for AI. Add and verify Model Context Protocol servers by using /mcp-config.
  • Subagents for the same job. Built-in Dispatch coder, exploreagain plan subagents in isolated cases.
  • Lifecycle hooks. Run local commands to log tool calls, check resolutions, or trigger notifications.

Installation and Initial Operation

There are two ways to install. The official script does not require Node.js pre-installed.

On macOS or Linux, use the install script:

curl -fsSL  | bash

On Windows, use PowerShell:

irm  | iex

A global npm installation requires Node.js 24.15.0 or later:

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

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

kimi --version
cd your-project
kimi

At first launch, type /login within the UI. You can choose Kimi Code OAuth or Moonshot AI Open Platform API key. To run a single command outside of the UI, use kimi -p "your task". To resume a previous session, add -C.

Use Cases

  • Understanding the project: Request an architectural overview and module dependency diagram.
  • Using the feature: Define signature, options, and pre-acceptance conditions.
  • Debugging: Provide branding, production steps, and expected behavior together.
  • Writing tests and refactoring: Eliminate repetitive patterns, and conduct tests to verify behavior.
  • One default: Analyze logs and output call counts for p50 and p99 delays.
  • Organized activities: Ask the agent to set reminders or recurring checks with cron.

Program mode is available with Shift-Tab or kimi --plan. It removes the research program before touching the files. For safe batch work, --yolo or /yolo bypass authorization commands. I /fork command creates a test branch that you can leave. I /compact the command compresses the context to free the tokens. For larger investigations, the main agent can send subagents in parallel.

How does the Kimi Code CLI compare

Kimi Code CLI joins several established coding agents. The table below compares three of them. The details of the competitor show mid-2026 and can change quickly.

AttributeFor me the CLI CodeClaude CodeOpenAI Codex CLIGemini CLI
EngineerMoonshot AIAnthropicOpenAIGoogle
Support modelKimi modelsClaude’s modelsGPT-5.3-CodexGemini 2.5 Pro
Language / operating timeTypeScriptNode.jsRustTypeScript
EnterScript or npm (Node.js ≥ 24.15.0)Native installer or npmnpm / nativenpm one binary
MCP supportYes (/mcp-config)YesYesYes
SubagentsYes (coder, explore, plan)YesYesNo (consecutive)
Editing modeYes (Shift-Tab)YesYesYes
IDE integrationACP (Zed, JetBrains)VS Code, JetBrainsVS Code, IDEsVS Code (Help Code)
LicenseMITOwnershipOpen sourceApache 2.0

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

Key Takeaways

  • Kimi Code CLI is an MIT-licensed coding agent from Moonshot AI.
  • It is written in TypeScript and installed via script or npm.
  • It’s built in coder, exploreagain plan subagents work in isolated areas.
  • MCP servers are configured via chat /mcp-confignot raw JSON.
  • It succeeds kimi-cli and migrates existing configuration and sessions.

Marktechpost Visual Explainer


Me Code CLI · Guide
01 / 09

Overview

For me the CLI Code

Moonshot AI is an open source code agent that reads code, executes commands, and plans its next step.

  • It runs on your terminal as an AI code agent
  • MIT License · written in TypeScript · distributed via npm
  • Works with Kimi models or other compatible suppliers

Slide 02

What is Kimi CLI Code?

  • Reads and edits codes, executes shell commands, searches files
  • It downloads web pages and selects the next step in the response
  • Read-only actions work automatically
  • Editing files and shell commands ask for confirmation first

Slide 03

Main Features

  • Single binary distribution — no Node.js setup required
  • It’s built in coder, exploreagain plan subagents
  • AI-native MCP configuration with /mcp-config
  • Lifecycle hooks and video input support

Slide 04

Enter

macOS / Linux

curl -fsSL  | bash

Windows (PowerShell)

irm  | iex

npm (Node.js 24.15.0+)

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

Slide 05

First Run

kimi --version
cd your-project
kimi
  • Kind of /login → Kimi Code OAuth or Moonshot API key
  • kimi -p "your task" it uses a single command without the UI
  • kimi -C resumes the previous session

Slide 06

Use Cases

  • Understand the project: architecture overview and dependency map
  • Use features with clear signatures and acceptance criteria
  • Fix bugs from branding, reproducibility steps, and expected behavior
  • Write tests, refactor, and automate log analysis or batch editing

Slide 07

Modes & Commands

  • Editing mode: Shift-Tab or kimi --plan
  • --yolo or /yolo override the authorization of the safe batch function
  • /fork creates a test branch that you can leave
  • /compact compresses the context to free tokens

Slide 08

How it compares

AttributeFor me the CLI CodeClaude CodeCodex CLIGemini CLI
ModelKimi modelsClaude’s modelsGPT-5.3-CodexGemini 2.5 Pro
LanguageTypeScriptNode.jsRustTypeScript
SubagentsYesYesYesNo
LicenseMITOwnershipOpen sourceApache 2.0

Slide 09

Key Takeaways

  • An MIT-licensed terminal code agent from Moonshot AI
  • Written in TypeScript; install via script or npm
  • coder, explore, plan subagents in isolated cases
  • MCP is configured with a dialog, not raw JSON
  • You succeed in my cli; migrates configuration and sessions


Check it out GitHub Repo here. Also, feel free to follow us Twitter and don’t forget to join our 150k+ ML SubReddit and Subscribe to Our newspaper. Wait! are you on telegram? now you can join us on telegram too.

Need to work with us on developing your GitHub Repo OR Hug Face Page OR Product Release OR Webinar etc.? contact us


Michal Sutter is a data science expert with a Master of Science in Data Science from the University of Padova. With a strong foundation in statistical analysis, machine learning, and data engineering, Michal excels at turning complex data sets into actionable insights.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button