MoonshotAI /kimi-cli
[Archived] Legacy Python Kimi CLI, no longer maintained. Please use Kimi Code CLI: https://github.com/MoonshotAI/kimi-code
★ 11,423⑂ 1,329👁 57⑃ 1,187● 841▤ 105
11,423
stars
+0+-1+-3
1,329
forks
57
watchers
1,187
prs
841
issues
105
releases
–
discussions
README
Kimi CLI (Archived)
Kimi Code CLI | Migration Guide | 迁移指南 | Legacy Docs
[!CAUTION]
This project has been archived and is no longer maintained. Kimi CLI (Python) has been replaced by Kimi Code CLI, the next-generation terminal AI agent from the same team.
- This repository is read-only. There will be no further releases, bug fixes, or security updates.
- Existing installations are no longer supported and will stop working. Please migrate as soon as possible.
- Please file issues, feature requests, and security reports for Kimi Code CLI at MoonshotAI/kimi-code.
本项目已归档,不再维护。Python 版 Kimi CLI 已由 Kimi Code CLI 取代,旧版将无法继续使用,请参考 迁移指南 尽快升级。
Migrate to Kimi Code CLI
1. Install Kimi Code CLI:
sh
macOS / Linux
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
powershell
Windows (PowerShell)
irm https://code.kimi.com/kimi-code/install.ps1 | iex
Also available via Homebrew (brew install kimi-code) and npm (npm install -g @moonshot-ai/kimi-code).
2. Open a new terminal and run kimi. On first launch, it detects your Kimi CLI data in ~/.kimi/ and offers to migrate your config, MCP servers, input history, and sessions. You can also run kimi migrate at any time. Your original data in ~/.kimi/ is never modified or deleted.
3. Run /login again, and re-authorize your MCP servers. Login credentials, MCP authorizations, and Kimi CLI plugins are not migrated.
4. Uninstall the legacy CLI after migrating, e.g. uv tool uninstall kimi-cli or brew uninstall kimi-cli.
See the full migration guide for details.
Packages in this repository
All packages below are archived together with this repository. Published versions remain on PyPI, but will not receive any further updates.
| Package | Status |
|---|---|
| kimi-cli | Archived. Replaced by Kimi Code CLI |
| kimi-code on PyPI | Archived. A legacy alias of kimi-cli, not the new Kimi Code CLI |
| kosong | Archived |
| pykaos | Archived |
| kimi-sdk | Archived |
License
The source code remains available under the Apache License 2.0.
Thank you to everyone who used Kimi CLI, reported issues, and contributed code. Your feedback shaped Kimi Code CLI.
Original README (legacy, for reference only)
Kimi CLI is an AI agent that runs in the terminal, helping you complete 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 actions during execution.
Getting Started
See Getting Started for how to install and start using Kimi CLI.
Key Features
Shell command mode
Kimi CLI is not only a coding agent, but also a shell. You can switch the shell command mode by pressing Ctrl-X. In this mode, you can directly run shell commands without leaving Kimi CLI.
!
[!NOTE]
Built-in shell commands like cd are not supported yet.
VS Code extension
Kimi CLI can be integrated with Visual Studio Code via the Kimi Code VS Code Extension.
!VS Code Extension
IDE integrat