[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71984":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},71984,"kimi-cli","MoonshotAI\u002Fkimi-cli","MoonshotAI","Kimi Code CLI is your next CLI agent.","https:\u002F\u002Fmoonshotai.github.io\u002Fkimi-cli\u002F",null,"Python",8944,1113,46,467,0,43,106,415,129,115.14,"Apache License 2.0",false,"main",true,[],"2026-06-12 04:01:03","# Kimi Code CLI\n\n[![Commit Activity](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcommit-activity\u002Fw\u002FMoonshotAI\u002Fkimi-cli)](https:\u002F\u002Fgithub.com\u002FMoonshotAI\u002Fkimi-cli\u002Fgraphs\u002Fcommit-activity)\n[![Checks](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcheck-runs\u002FMoonshotAI\u002Fkimi-cli\u002Fmain)](https:\u002F\u002Fgithub.com\u002FMoonshotAI\u002Fkimi-cli\u002Factions)\n[![Version](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fkimi-cli)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fkimi-cli\u002F)\n[![Downloads](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fdw\u002Fkimi-cli)](https:\u002F\u002Fpypistats.org\u002Fpackages\u002Fkimi-cli)\n[![Ask DeepWiki](https:\u002F\u002Fdeepwiki.com\u002Fbadge.svg)](https:\u002F\u002Fdeepwiki.com\u002FMoonshotAI\u002Fkimi-cli)\n\n[Kimi Code](https:\u002F\u002Fwww.kimi.com\u002Fcode\u002F) | [Documentation](https:\u002F\u002Fmoonshotai.github.io\u002Fkimi-cli\u002Fen\u002F) | [文档](https:\u002F\u002Fmoonshotai.github.io\u002Fkimi-cli\u002Fzh\u002F)\n\nKimi Code 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.\n\n## Getting Started\n\nSee [Getting Started](https:\u002F\u002Fmoonshotai.github.io\u002Fkimi-cli\u002Fen\u002Fguides\u002Fgetting-started.html) for how to install and start using Kimi Code CLI.\n\n## Key Features\n\n### Shell command mode\n\nKimi Code 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 Code CLI.\n\n![](.\u002Fdocs\u002Fmedia\u002Fshell-mode.gif)\n\n> [!NOTE]\n> Built-in shell commands like `cd` are not supported yet.\n\n### VS Code extension\n\nKimi Code CLI can be integrated with [Visual Studio Code](https:\u002F\u002Fcode.visualstudio.com\u002F) via the [Kimi Code VS Code Extension](https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=moonshot-ai.kimi-code).\n\n![VS Code Extension](.\u002Fdocs\u002Fmedia\u002Fvscode.png)\n\n### IDE integration via ACP\n\nKimi Code CLI supports [Agent Client Protocol] out of the box. You can use it together with any ACP-compatible editor or IDE.\n\n[Agent Client Protocol]: https:\u002F\u002Fgithub.com\u002Fagentclientprotocol\u002Fagent-client-protocol\n\nTo use Kimi Code CLI with ACP clients, make sure to run Kimi Code CLI in the terminal and send `\u002Flogin` to complete the login first. Then, you can configure your ACP client to start Kimi Code CLI as an ACP agent server with command `kimi acp`.\n\nFor example, to use Kimi Code CLI with [Zed](https:\u002F\u002Fzed.dev\u002F) or [JetBrains](https:\u002F\u002Fblog.jetbrains.com\u002Fai\u002F2025\u002F12\u002Fbring-your-own-ai-agent-to-jetbrains-ides\u002F), add the following configuration to your `~\u002F.config\u002Fzed\u002Fsettings.json` or `~\u002F.jetbrains\u002Facp.json` file:\n\n```json\n{\n  \"agent_servers\": {\n    \"Kimi Code CLI\": {\n      \"type\": \"custom\",\n      \"command\": \"kimi\",\n      \"args\": [\"acp\"],\n      \"env\": {}\n    }\n  }\n}\n```\n\nThen you can create Kimi Code CLI threads in IDE's agent panel.\n\n![](.\u002Fdocs\u002Fmedia\u002Facp-integration.gif)\n\n### Zsh integration\n\nYou can use Kimi Code CLI together with Zsh, to empower your shell experience with AI agent capabilities.\n\nInstall the [zsh-kimi-cli](https:\u002F\u002Fgithub.com\u002FMoonshotAI\u002Fzsh-kimi-cli) plugin via:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FMoonshotAI\u002Fzsh-kimi-cli.git \\\n  ${ZSH_CUSTOM:-~\u002F.oh-my-zsh\u002Fcustom}\u002Fplugins\u002Fkimi-cli\n```\n\n> [!NOTE]\n> If you are using a plugin manager other than Oh My Zsh, you may need to refer to the plugin's README for installation instructions.\n\nThen add `kimi-cli` to your Zsh plugin list in `~\u002F.zshrc`:\n\n```sh\nplugins=(... kimi-cli)\n```\n\nAfter restarting Zsh, you can switch to agent mode by pressing `Ctrl-X`.\n\n### MCP support\n\nKimi Code CLI supports MCP (Model Context Protocol) tools.\n\n**`kimi mcp` sub-command group**\n\nYou can manage MCP servers with `kimi mcp` sub-command group. For example:\n\n```sh\n# Add streamable HTTP server:\nkimi mcp add --transport http context7 https:\u002F\u002Fmcp.context7.com\u002Fmcp --header \"CONTEXT7_API_KEY: ctx7sk-your-key\"\n\n# Add streamable HTTP server with OAuth authorization:\nkimi mcp add --transport http --auth oauth linear https:\u002F\u002Fmcp.linear.app\u002Fmcp\n\n# Add stdio server:\nkimi mcp add --transport stdio chrome-devtools -- npx chrome-devtools-mcp@latest\n\n# List added MCP servers:\nkimi mcp list\n\n# Remove an MCP server:\nkimi mcp remove chrome-devtools\n\n# Authorize an MCP server:\nkimi mcp auth linear\n```\n\n**Ad-hoc MCP configuration**\n\nKimi Code CLI also supports ad-hoc MCP server configuration via CLI option.\n\nGiven an MCP config file in the well-known MCP config format like the following:\n\n```json\n{\n  \"mcpServers\": {\n    \"context7\": {\n      \"url\": \"https:\u002F\u002Fmcp.context7.com\u002Fmcp\",\n      \"headers\": {\n        \"CONTEXT7_API_KEY\": \"YOUR_API_KEY\"\n      }\n    },\n    \"chrome-devtools\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"chrome-devtools-mcp@latest\"]\n    }\n  }\n}\n```\n\nRun `kimi` with `--mcp-config-file` option to connect to the specified MCP servers:\n\n```sh\nkimi --mcp-config-file \u002Fpath\u002Fto\u002Fmcp.json\n```\n\n### More\n\nSee more features in the [Documentation](https:\u002F\u002Fmoonshotai.github.io\u002Fkimi-cli\u002Fen\u002F).\n\n## Development\n\nTo develop Kimi Code CLI, run:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FMoonshotAI\u002Fkimi-cli.git\ncd kimi-cli\n\nmake prepare  # prepare the development environment\n```\n\nThen you can start working on Kimi Code CLI.\n\nRefer to the following commands after you make changes:\n\n```sh\nuv run kimi  # run Kimi Code CLI\n\nmake format  # format code\nmake check  # run linting and type checking\nmake test  # run tests\nmake test-kimi-cli  # run Kimi Code CLI tests only\nmake test-kosong  # run kosong tests only\nmake test-pykaos  # run pykaos tests only\nmake build-web  # build the web UI and sync it into the package (requires Node.js\u002Fnpm)\nmake build  # build python packages\nmake build-bin  # build standalone binary\nmake help  # show all make targets\n```\n\nNote: `make build` and `make build-bin` automatically run `make build-web` to embed the web UI.\n","Kimi Code CLI 是一个运行在终端中的AI代理，旨在帮助用户完成软件开发任务和终端操作。其核心功能包括代码读写、执行shell命令、网页搜索与抓取以及在执行过程中自主规划和调整行动。特别地，它支持通过Ctrl-X切换到Shell命令模式，在该模式下可以直接运行大多数shell命令；同时提供VS Code扩展及通过ACP协议与多种IDE集成的能力，进一步增强开发者的编码体验。此工具非常适合需要频繁使用命令行界面进行开发工作或希望通过智能化手段提高生产力的开发者使用。",2,"2026-06-11 03:39:50","high_star"]