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
Installation
Run the following command in your terminal to install Kimi Code CLI:
After installation, verify that it was installed successfully:
If the
kimicommand is not found, try reopening your terminal or runningsource ~/.bashrc(or~/.zshrc).
First run
- Navigate to your project directory:
- Launch Kimi Code CLI:
- Run the
/logincommand to complete authorization:
The system will prompt you to select a login method — follow the instructions to complete authorization.
- 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:
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.