Kimi Code CLI is a terminal-based AI agent that helps you with 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 its approach during execution.

Use cases

  • Write and Modify Code: Describe your requirements and the AI will automatically write and modify code.
  • Understand Projects: Quickly grasp project architecture, code logic, and file purposes.
  • Automate Tasks: Batch code modifications, documentation, test generation, and other repetitive work.

Ways to use

MethodCommandDescription
Interactive TerminalkimiChat with the AI in your terminal — ideal for daily development
Browser Interfacekimi webOpen an interactive UI in your browser
Agent Integrationkimi acpIntegrate into your IDE via the ACP protocol

Installation

Run the following command in your terminal to install Kimi Code CLI:

screenshot 23
Bash

After installation, verify that it was installed successfully:

Bash

If the kimi command is not found, try reopening your terminal or running source ~/.bashrc (or ~/.zshrc).

First run

  1. Navigate to your project directory:
Bash
  1. Launch Kimi Code CLI:
Bash
  1. Run the /login command to complete authorization:
Text

The system will prompt you to select a login method — follow the instructions to complete authorization.

  1. Once configured, you can start chatting with the AI.

Generate AGENTS.md

Run the /init command in your project directory — Kimi Code CLI will automatically scan the project structure and generate an AGENTS.md file:

Text

AGENTS.md provides the AI with project context such as background information, build steps, and coding conventions, helping the AI understand your project more accurately.