Kimi Code CLI、ターミナル型 AI コーディングエージェントとして登場
Moonshot AI が公開した「Kimi Code CLI」は、ターミナル上でコードの読み書きやシェルコマンド実行を自律的に行うオープンソースのAIコーディングエージェントであり、MITライセンスで提供されている。
キーポイント
ターミナル型 AI エージェントの登場
Kimi Code CLI はターミナル内で動作し、コードの編集、ファイル検索、Web ページ取得、シェルコマンド実行を行い、フィードバックに基づいて次のステップを自律的に選択する機能を持つ。
シンプルなインストールと依存関係なし
Node.js などの追加環境構築が不要で、公式スクリプト(curl)や Homebrew を使用して macOS/Linux で即座に導入可能である。
Moonshot AI モデルとの統合と拡張性
デフォルトでは Moonshot AI の Kimi モデルと連携するが、他の互換性のあるプロバイダーへの設定変更もサポートしており、柔軟な利用が可能。
オープンソースおよびドキュメントの提供
GitHub リポジトリで MIT ライセンスの下に公開され、オンラインドキュメントとコミュニティフォーラム(Issues)が整備されている。
重要な引用
Kimi Code CLI is an AI coding agent that runs in your terminal — it can read and edit code, run shell commands, search files, fetch web pages, and choose the next step based on the feedback it receives.
It works out of the box with Moonshot AI's Kimi models and can also be configured to use other compatible providers.
影響分析・編集コメントを表示
影響分析
このツールは、開発者が IDE を離れてターミナル上で AI と対話しながらコードを生成・修正できる新しいワークフローを提供し、特に CLI に慣れたエンジニアにとっての生産性向上に寄与する。Moonshot AI の技術がオープンソースコミュニティを通じて広く普及することで、AI エージェントの実装基準や利用パターンに影響を与える可能性がある。
編集コメント
ターミナル環境で完結する自律型コーディングエージェントとして、開発者のワークフローに深く統合される可能性を秘めています。Node.js 依存がない点は導入のハードルを下げ、MIT ライセンスはコミュニティでの広がりを見込む上で重要な要素です。
Kimi Code CLI とは
Kimi Code CLI は、ターミナル上で動作する AI コーディングエージェントです。コードの読み書きや編集、シェルコマンドの実行、ファイル検索、Web ページの取得が可能で、得られたフィードバックに基づいて次のステップを自律的に選択します。
Moonshot AI の「Kimi」モデルとすぐに連携して使用できますが、設定を変更すれば他の対応するプロバイダーにも接続可能です。
インストール方法
公式スクリプトを使ってインストールしましょう。Node.js は不要です。
- macOS または Linux:
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash- Homebrew を使用する場合 (macOS/Linux):
brew install kimi-code- Windows (PowerShell):
irm https://code.kimi.com/kimi-code/install.ps1 | iexWindows では初回起動前に Git for Windows をインストールしてください。Kimi Code CLI は、バンドルされた Git Bash をシェル環境として利用するためです。
Git Bash をカスタムパスにインストールしている場合は、KIMI_SHELL_PATH 環境変数に bash.exe の絶対パスを指定してください。
その後、新しいシェルセッションで以下を実行して動作確認を行います:
kimi --versionnpm でのインストール、アップグレード、アンインストールについては、入門ガイド を参照してください。
クイックスタート
プロジェクトを開き、インタラクティブな UI を起動します:
cd your-project
kimiKimi Code CLI を初めて起動したら、コマンド /login を実行し、「Kimi Code OAuth」または「Moonshot AI Open Platform API キー」のいずれかを選択してください。ログインが完了したら、最初のタスクを試してみましょう。
このプロジェクトの主要なディレクトリ構成について解説してください。
主な機能
- シングルバイナリ配布: Node.js の設定や環境変数 PATH の調整、グローバルモジュールとの競合を一切不要とし、単一のコマンドでインストール可能です。
- 驚異的な起動速度: TUI(ターミナルユーザーインターフェース)はミリ秒単位で準備されるため、セッションの開始が重く感じることはありません。
- 目的に特化した TUI: 長時間にわたる集中型のエージェント作業を最適化するため、細かく調整されたエンドツーエンドのインターフェースを採用しています。
- 動画入力機能: チャット画面にスクリーンレコーディングやデモクリップをドラッグ&ドロップするだけで、言葉では説明しにくい動作をエージェントが直接確認できます。参考映像から LUT を作成したり、長尺動画を短く編集したり、録画映像から実働コードを生成したりといった処理が可能です。
- AI ネイティブな MCP 設定:
/mcp-configコマンドで対話的に Model Context Protocol サーバーの追加・編集・認証を行えるため、手動で JSON ファイルを編集する必要がありません。
- 豊富なプラグインエコシステム: マーケットプレイスや任意の GitHub リポジトリからスキル、MCP サーバー、データソースをインストールできます。各インストールの信頼レベルは、導入前に明確に表示されます。
- 集中型・並列処理用のサブエージェント: メインの会話履歴を整理したまま、コード作成、探索、計画担当などの組み込みサブエージェントを独立したコンテキストで起動し、並行して作業を進められます。
- ライフサイクルフック: 重要なタイミングでローカルコマンドを実行することで、リスクの高いツール呼び出しを抑制したり、意思決定の監査を行ったり、デスクトップ通知を発信したり、独自の自動化システムと連携させたりできます。
- エディター・IDE 統合 (ACP):kimi acp を使用すれば、Zed、JetBrains、または Agent Client Protocol に対応したクライアントから Kimi Code CLI セッションを直接起動できます。
エディターでの利用方法 (ACP)
Kimi Code CLI は Agent Client Protocol に準拠しているため、ACP 対応のエディターや IDE(Zed、JetBrains など)は stdio を介してセッションを制御可能です。ログインは一度行えばよく、エディターで kimi acp サブコマンドを指定するだけで追加の認証は不要です。
Zed の場合、~/.config/zed/settings.json に以下の設定を追加してください。
{
"agent_servers": {
"Kimi Code CLI": {
"type": "custom",
"command": "kimi",
"args": ["acp"],
"env": {}
}
}
}
次に、Zed のエージェントパネルで新しい会話を開きます。JetBrains の設定やトラブルシューティングについては IDE での利用ガイド を、機能一覧の詳細は kimi acp リファレンス をご覧ください。
ドキュメント
- Getting Started(はじめに)
- Interaction and approvals(対話と承認)
- Sessions(セッション)
- Using in IDEs (ACP)(IDE での利用方法)
- Configuration(設定)
- Command reference(コマンドリファレンス)
開発環境の構築
必要な要件:Node.js ≥ 24.15.0、pnpm 10.33.0。
git clone https://github.com/MoonshotAI/kimi-code.git
cd kimi-code
pnpm install
pnpm dev:cli # CLI を開発モードで実行
pnpm test # テストを実行
pnpm typecheck # TypeScript の型チェック
pnpm lint # oxlint でコードをレビュー
pnpm build # すべてのパッケージをビルド
完全なコントリビューションガイドについては CONTRIBUTING.md をご覧ください。
コミュニティ
- イシュー(Issue)について
- セキュリティ上の脆弱性については、SECURITY.md を参照してください。
謝辞
本ツールのターミナルユーザーインターフェース(TUI)は、pi-tui を基盤として構築されています。pi-tui の開発者の方々には、貴重なご貢献をいただき厚く御礼申し上げます。
ライセンス
本プロジェクトは MIT ライセンス の下で公開されています。
原文を表示
Documentation · Issues · 中文
What is Kimi Code CLI
Kimi Code CLI is an AI coding agent that runs in your terminal — it can read and edit code, run shell commands, search files, fetch web pages, and choose the next step based on the feedback it receives. It works out of the box with Moonshot AI’s Kimi models and can also be configured to use other compatible providers.
Install
Install with the official script. No Node.js required.
- macOS or Linux:
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash- Homebrew (macOS/Linux):
brew install kimi-code- Windows (PowerShell):
irm https://code.kimi.com/kimi-code/install.ps1 | iexOn Windows, install Git for Windows before first launch because Kimi Code CLI uses the bundled Git Bash as its shell environment. If Git Bash is installed in a custom location, set KIMI_SHELL_PATH to the absolute path of bash.exe.
Then, run it with a new shell session:
kimi --versionFor npm install, upgrade, uninstall, see Getting Started.
Quick Start
Open a project and start the interactive UI:
cd your-project
kimiOn first launch, run /login inside Kimi Code CLI and choose either Kimi Code OAuth or a Moonshot AI Open Platform API key. After login, try your first task:
Take a look at this project and explain its main directories.
Key Features
- Single-binary distribution. Install with one command: no Node.js setup, PATH gymnastics, or global module conflicts.
- Blazing-fast startup. The TUI is ready in milliseconds, so starting a session never feels heavy.
- Purpose-built TUI. A carefully tuned interface, optimized end to end for long, focused agent sessions.
- Video input. Drop a screen recording or demo clip into the chat and let the agent watch what is hard to describe in words — turn a reference clip into a LUT, a long video into a short, a screen recording into working code, and more.
- AI-native MCP configuration. Add, edit, and authenticate Model Context Protocol servers conversationally with /mcp-config, without hand-editing JSON.
- Rich plugin ecosystem. Install skills, MCP servers, and data sources from the marketplace or any GitHub repo, with each install's trust level surfaced up front.
- Subagents for focused, parallel work. Dispatch built-in coder, explore, and plan subagents in isolated contexts while keeping the main conversation clean.
- Lifecycle hooks. Run local commands at key points to gate risky tool calls, audit decisions, trigger desktop notifications, or connect to your own automation.
- Editor & IDE integration (ACP). Drive a Kimi Code CLI session straight from Zed, JetBrains, or any Agent Client Protocol client with kimi acp.
Use it in your editor (ACP)
Kimi Code CLI speaks the Agent Client Protocol, so ACP-compatible editors and IDEs (Zed, JetBrains, …) can drive a session over stdio. Log in once, then point your editor at the kimi acp subcommand — no extra login needed.
For Zed, add this to ~/.config/zed/settings.json:
{
"agent_servers": {
"Kimi Code CLI": {
"type": "custom",
"command": "kimi",
"args": ["acp"],
"env": {}
}
}
}Then open a new conversation in Zed's Agent panel. See Using in IDEs for JetBrains setup and troubleshooting, and the kimi acp reference for the full capability matrix.
Docs
- Getting Started
- Interaction and approvals
- Sessions
- Using in IDEs (ACP)
- Configuration
- Command reference
Develop
Requirements: Node.js ≥ 24.15.0, pnpm 10.33.0.
git clone https://github.com/MoonshotAI/kimi-code.git
cd kimi-code
pnpm installpnpm dev:cli # run the CLI in dev mode
pnpm test # run tests
pnpm typecheck # TypeScript check
pnpm lint # oxlint
pnpm build # build all packagesSee CONTRIBUTING.md for the full contribution guide.
Community
- Issues
- For security vulnerabilities, see SECURITY.md.
Acknowledgements
Our TUI is built on top of pi-tui. We thank the authors of pi-tui for their valuable work.
License
Released under the MIT License.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み