# moonshotai/kimi-cli

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/moonshotai-kimi-cli).**

6,503 stars · 622 forks · Python · apache-2.0

## Links

- GitHub: https://github.com/MoonshotAI/kimi-cli
- Homepage: https://moonshotai.github.io/kimi-cli/
- awesome-repositories: https://awesome-repositories.com/repository/moonshotai-kimi-cli.md

## Description

Kimi is a terminal-based AI agent that autonomously plans and executes software development tasks by reading, editing, and running code. It operates as an intelligent command-line agent that breaks down high-level goals into sequences of shell commands and code edits, carrying them out without manual step-by-step guidance. The agent can run in an interactive loop, switch to a shell mode for direct terminal command execution, and operate in non-interactive or one-shot modes suitable for scripting.

The project distinguishes itself through multiple integration and execution modes. It can run as an Agent Communication Protocol (ACP) server, allowing any ACP-supporting editor or IDE to invoke it, and offers a dedicated VS Code extension for seamless code editing within the editor. The agent supports plan-based autonomous execution, where it breaks down goals into sub-steps and executes them by reading, editing, and running code. It also provides a browser-based OAuth authentication flow for accessing user accounts and available models, and can connect to external tools and services through the Model Context Protocol with configurable timeouts.

The CLI supports extensive configuration and extensibility, including file-based settings loading from TOML or JSON files, agent personality selection, API provider configuration, model selection, and custom skills directories that the agent automatically discovers and loads at startup. It includes lifecycle hooks that run shell commands on agent events, background task management with configurable concurrency and timeouts, and session management features for saving, resuming, and exporting sessions. The agent also offers a web UI for remote interaction and trace visualization, and an AI-enhanced Zsh plugin that adds agent capabilities to the shell.

## Tags

### Development Tools & Productivity

- [Agentic Terminal Environments](https://awesome-repositories.com/f/development-tools-productivity/agentic-terminal-environments.md) — Runs an AI agent directly in the terminal to execute shell commands and automate development workflows.
- [Agent Communication Protocol Servers](https://awesome-repositories.com/f/development-tools-productivity/agent-communication-protocol-servers.md) — Runs as an Agent Communication Protocol server so any ACP-supporting editor or IDE can invoke it.
- [Automated Code Editing Assistants](https://awesome-repositories.com/f/development-tools-productivity/automated-code-editing-assistants.md) — Opens source files, interprets their content, and applies changes such as inserting, deleting, or replacing lines of code. ([source](https://moonshotai.github.io/kimi-cli/en/))
- [CLI Agent Management](https://awesome-repositories.com/f/development-tools-productivity/cli-agent-management.md) — Provides an intelligent command-line agent that plans and executes software development tasks autonomously.
- [Shell Command Execution](https://awesome-repositories.com/f/development-tools-productivity/shell-command-execution.md) — Executes terminal commands directly from the agent's plan, including installing dependencies and running tests. ([source](https://cdn.jsdelivr.net/gh/moonshotai/kimi-cli@main/README.md))
- [Interactive Shell Loops](https://awesome-repositories.com/f/development-tools-productivity/shell-environment-integrations/secure-agent-shells/interactive-shell-loops.md) — Runs an interactive agent loop that can switch to a shell mode for direct terminal command execution.
- [Autonomous Planning Engines](https://awesome-repositories.com/f/development-tools-productivity/workflow-automation-tools/workflow-lifecycle-management/progress-tracking/planning/autonomous-planning-engines.md) — Breaks down high-level goals into a sequence of sub-steps and executes them autonomously.
- [Non-Interactive CLI Modes](https://awesome-repositories.com/f/development-tools-productivity/non-interactive-cli-modes.md) — Outputs results as plain text or JSONL without an interactive interface, suitable for scripting. ([source](https://moonshotai.github.io/kimi-cli/en/reference/kimi-command.html))
- [VS Code Extensions](https://awesome-repositories.com/f/development-tools-productivity/vs-code-extensions.md) — Connects an AI agent to Visual Studio Code through an extension for seamless code editing. ([source](https://cdn.jsdelivr.net/gh/moonshotai/kimi-cli@main/README.md))
- [Working Directory Configuration](https://awesome-repositories.com/f/development-tools-productivity/working-directory-configuration.md) — Defines the root directory for file operations and expands the workspace scope with additional directories. ([source](https://moonshotai.github.io/kimi-cli/en/reference/kimi-command.html))

### Artificial Intelligence & ML

- [Agentic Code Editing](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-coding-assistants/agentic-code-editing.md) — Breaks down high-level goals into shell commands and code edits for automated software workflows.
- [Autonomous Task Execution](https://awesome-repositories.com/f/artificial-intelligence-ml/autonomous-task-execution.md) — Breaks down a software task into sub-steps and carries them out autonomously by reading, editing, and running code. ([source](https://moonshotai.github.io/kimi-cli/en/))
- [ACP-Compatible Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-deployment-servers/acp-compatible-servers.md) — Implements the Agent Communication Protocol for integration with editors and IDEs.
- [Execution Step Limits](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-reasoning-loops/critic-agent-loops/agentic-execution-loops/execution-step-limits.md) — Sets limits on execution steps, retries, and context compaction thresholds to manage agent runtime. ([source](https://moonshotai.github.io/kimi-cli/en/configuration/config-files.html))
- [Iteration Limits](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-reasoning-loops/critic-agent-loops/agentic-execution-loops/iteration-limits.md) — Limits the number of steps per turn, retries per step, or iterations in a loop mode. ([source](https://moonshotai.github.io/kimi-cli/en/reference/kimi-command.html))
- [MCP Server Management](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/model-integration-serving/model-integration-interfaces/model-context-protocol/mcp-server-management.md) — Adds, authorizes, and connects to Model Context Protocol servers using sub-commands or a config file. ([source](https://cdn.jsdelivr.net/gh/moonshotai/kimi-cli@main/README.md))
- [Web Search & Fetch Configurations](https://awesome-repositories.com/f/artificial-intelligence-ml/external-service-integrations/web-search-fetch-configurations.md) — Configures web search and fetch services to retrieve URLs and search the web. ([source](https://moonshotai.github.io/kimi-cli/en/configuration/config-files.html))
- [MCP Server Configurations](https://awesome-repositories.com/f/artificial-intelligence-ml/language-model-orchestration/mcp-server-configurations.md) — Loads Model Context Protocol configuration from files or JSON strings to connect external tools. ([source](https://moonshotai.github.io/kimi-cli/en/reference/kimi-command.html))
- [Default Model Selection](https://awesome-repositories.com/f/artificial-intelligence-ml/model-configuration-settings/default-model-selection.md) — Overrides the default language model used for generating responses in a session. ([source](https://moonshotai.github.io/kimi-cli/en/reference/kimi-command.html))
- [Provider Configurations](https://awesome-repositories.com/f/artificial-intelligence-ml/provider-configurations.md) — Defines API provider connection details including base URL, API key, and custom headers for model access. ([source](https://moonshotai.github.io/kimi-cli/en/configuration/config-files.html))

### DevOps & Infrastructure

- [Coding Automation Tools](https://awesome-repositories.com/f/devops-infrastructure/automation-orchestration/task-execution-frameworks/automation-frameworks/ai-agent-control/llm-powered/coding-automation-tools.md) — Reads, edits, and runs code in a terminal environment to automate software development workflows. ([source](https://moonshotai.github.io/kimi-cli/en/))
- [Configuration File Loading](https://awesome-repositories.com/f/devops-infrastructure/configuration-management/file-based-configuration/configuration-file-loading.md) — Reads settings from TOML or JSON files or inline strings to customize CLI behavior.

### Networking & Communication

- [Browser-Based OAuth Flows](https://awesome-repositories.com/f/networking-communication/communication-platforms-services/messaging-notification-systems/messaging-automation/account-authentication-gateways/browser-based-oauth-flows.md) — Logs into or out of a user account through a browser-based OAuth flow to access available models. ([source](https://moonshotai.github.io/kimi-cli/en/reference/kimi-command.html))

### Security & Cryptography

- [AI Agent Sessions](https://awesome-repositories.com/f/security-cryptography/process-sandboxes/session-resumption/ai-agent-sessions.md) — Saves, resumes, and exports AI agent sessions for debugging, sharing, or continuing work.
- [Browser-Based Authentication Strategies](https://awesome-repositories.com/f/security-cryptography/browser-based-authentication-strategies.md) — Logs into user accounts through a browser-based OAuth flow to access available models and services.

### Software Engineering & Architecture

- [Model Context Protocol Integrations](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/programmatic-interfaces/model-context-protocol-integrations.md) — Connects to external tools and services through a standardized protocol for tool calls with configurable timeouts.
- [Directory-Based Plugin Discovery](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/extensibility/plugin-architectures/registration-discovery-systems/directory-based-plugin-discovery.md) — Loads agent skills from configurable directories that the CLI automatically discovers and registers at startup.
- [Read-Only Planning Sessions](https://awesome-repositories.com/f/software-engineering-architecture/strategic-planning-workflows/implementation-planning/read-only-planning-sessions.md) — Provides a plan mode that restricts the agent to read-only exploration for producing implementation plans. ([source](https://moonshotai.github.io/kimi-cli/en/reference/kimi-command.html))

### Part of an Awesome List

- [ACP-Compatible Servers](https://awesome-repositories.com/f/awesome-lists/devtools/ide-and-editor-support/acp-compatible-servers.md) — Starts the agent as an ACP-compatible server so any ACP-supporting editor or IDE can use it. ([source](https://cdn.jsdelivr.net/gh/moonshotai/kimi-cli@main/README.md))
- [Command Line Tools](https://awesome-repositories.com/f/awesome-lists/devtools/command-line-tools.md) — Official CLI for an AI assistant focused on coding tasks and workflows.

### Data & Databases

- [CLI Prompt Executions](https://awesome-repositories.com/f/data-databases/query-execution-engines/one-shot-query-execution/cli-prompt-executions.md) — Ships a one-shot mode that feeds a single prompt and exits, suitable for scripting. ([source](https://moonshotai.github.io/kimi-cli/en/reference/kimi-command.html))
