{"slug": "moonshot-ai-releases-kimi-code-cli-a-terminal-ai-coding-agent-built-in-for-next", "title": "Moonshot AI Releases Kimi Code CLI: A Terminal AI Coding Agent Built in TypeScript for Next-Gen Agents", "summary": "Moonshot AI has released Kimi Code CLI, an open-source, MIT-licensed terminal-based AI coding agent written in TypeScript that can read and edit code, run shell commands, and fetch web pages. The tool, available via npm or a single-binary install, features a feedback-driven execution model with approval controls for risky actions and supports video input, subagents for parallel work, and configuration with multiple AI model providers. Kimi Code CLI aims to streamline software development tasks such as implementing features, fixing bugs, and exploring codebases, positioning itself as a successor to the older kimi-cli with faster startup and a purpose-built terminal user interface.", "body_md": "Moonshot AI has released [Kimi Code CLI,](https://github.com/MoonshotAI/kimi-code) an open-source coding agent that runs in the terminal. The tool reads and edits code, runs shell commands, searches files, and fetches web pages. It then chooses its next step based on the feedback it receives. The project is MIT-licensed and lives on GitHub..\n\nKimi Code CLI is the successor to the older kimi-cli. The new agent is written in TypeScript and distributed via npm. It works out of the box with Moonshot AI’s Kimi models. It can also be configured to use other compatible providers.\n\n**What is Kimi Code CLI**\n\nKimi Code CLI is an AI agent for software development and terminal operations. It can implement new features, fix bugs, and complete refactors. It can also explore an unfamiliar codebase and answer architecture questions. Batch file processing, builds, and chained test runs are supported too.\n\nThe execution model is feedback-driven. The agent plans steps, modifies code, runs tests, and reports its actions. Read-only operations run automatically by default. For file edits or shell commands, the agent asks for confirmation first. This approval flow keeps risky actions under developer control.\n\nThe CLI itself is free and MIT-licensed. Model access requires Kimi Code OAuth or a Moonshot AI Open Platform API key.\n\n**Key Features**\n\n**Moonshot lists several features aimed at long, focused agent sessions:**\n\n**Single-binary distribution.** One command installs it, with no Node.js setup required.**Fast startup.** Moonshot says the TUI is ready in milliseconds.**Purpose-built TUI.** The interface is tuned for extended agent sessions.**Video input.** Drop a screen recording or demo clip into the chat.**AI-native MCP configuration.** Add and authenticate Model Context Protocol servers via`/mcp-config`\n\n.**Subagents for parallel work.** Dispatch built-in`coder`\n\n,`explore`\n\n, and`plan`\n\nsubagents in isolated contexts.**Lifecycle hooks.** Run local commands to gate tool calls, audit decisions, or trigger notifications.\n\n**Installation and First Run**\n\nTwo installation paths exist. The official script needs no pre-installed Node.js.\n\n**On macOS or Linux, run the install script:**\n\n```\ncurl -fsSL https://code.kimi.com/kimi-code/install.sh | bash\n```\n\n**On Windows, use PowerShell:**\n\n```\nirm https://code.kimi.com/kimi-code/install.ps1 | iex\n```\n\n**The global npm install requires Node.js 24.15.0 or later:**\n\n```\nnpm install -g @moonshot-ai/kimi-code\n```\n\n**Verify the binary, then open a project and start the interactive UI:**\n\n```\nkimi --version\ncd your-project\nkimi\n```\n\nOn first launch, type `/login`\n\ninside the UI. You can choose Kimi Code OAuth or a Moonshot AI Open Platform API key. To run one instruction without the UI, use `kimi -p \"your task\"`\n\n. To resume the previous session, add `-C`\n\n.\n\n**Use Cases**\n\n**Understanding a project**: Ask for an architecture overview and a module dependency diagram.** Implementing a feature**: Describe the signature, options, and acceptance criteria up front.** Fixing a bug**: Give the symptom, reproduction steps, and expected behavior together.** Writing tests and refactoring**: Extract repeated patterns, then run tests to confirm behavior.** One-off automation:**Analyze logs and output call counts with p50 and p99 latencies.** Scheduled tasks**: Ask the agent to set reminders or recurring checks via cron.\n\nPlan mode is available through `Shift-Tab`\n\nor `kimi --plan`\n\n. It outputs a research plan before touching files. For safe batch work, `--yolo`\n\nor `/yolo`\n\nskips approval prompts. The `/fork`\n\ncommand creates an experimental branch you can abandon. The `/compact`\n\ncommand compresses context to free up tokens. For large investigations, the main agent can dispatch subagents in parallel.\n\n**How Kimi Code CLI Compares**\n\nKimi Code CLI joins several established terminal coding agents. The table below compares it with three of them. Competitor details reflect mid-2026 and can change quickly.\n\n| Attribute | Kimi Code CLI | Claude Code | OpenAI Codex CLI | Gemini CLI |\n|---|---|---|---|---|\n| Developer | Moonshot AI | Anthropic | OpenAI | |\n| Backing model | Kimi models | Claude models | GPT-5.3-Codex | Gemini 2.5 Pro |\n| Language / runtime | TypeScript | Node.js | Rust | TypeScript |\n| Install | Script or npm (Node.js ≥ 24.15.0) | Native installer or npm | npm / native | npm single binary |\n| MCP support | Yes (`/mcp-config` ) | Yes | Yes | Yes |\n| Subagents | Yes (`coder` , `explore` , `plan` ) | Yes | Yes | No (sequential) |\n| Plan mode | Yes (`Shift-Tab` ) | Yes | Yes | Yes |\n| IDE integration | ACP (Zed, JetBrains) | VS Code, JetBrains | VS Code, IDEs | VS Code (Code Assist) |\n| License | MIT | Proprietary | Open source | Apache 2.0 |\n\nAll four agents support the Model Context Protocol. They differ on backing model, language, license, and orchestration. Kimi Code CLI and Codex CLI both ship native subagents. Gemini CLI runs tasks sequentially without subagent support.\n\n**Key Takeaways**\n\n- Kimi Code CLI is an MIT-licensed terminal coding agent from Moonshot AI.\n- It is written in TypeScript and installs via script or npm.\n- Built-in\n`coder`\n\n,`explore`\n\n, and`plan`\n\nsubagents run in isolated contexts. - MCP servers are configured conversationally through\n`/mcp-config`\n\n, not raw JSON. - It succeeds kimi-cli and migrates existing configuration and sessions.\n\n**Marktechpost’s Visual Explainer**\n\n## Kimi Code CLI\n\nMoonshot AI’s open-source terminal coding agent that reads code, runs commands, and plans its next step.\n\n- Runs in your terminal as an AI coding agent\n- MIT-licensed · written in TypeScript · distributed via npm\n- Works with Kimi models or other compatible providers\n\n## What Is Kimi Code CLI?\n\n- Reads and edits code, runs shell commands, searches files\n- Fetches web pages and chooses the next step from feedback\n- Read-only actions run automatically by default\n- File edits and shell commands ask for confirmation first\n\n## Key Features\n\n- Single-binary distribution — no Node.js setup required\n- Built-in\n`coder`\n\n,`explore`\n\n, and`plan`\n\nsubagents - AI-native MCP configuration via\n`/mcp-config`\n\n- Lifecycle hooks and video input support\n\n## Install\n\n```\ncurl -fsSL https://code.kimi.com/kimi-code/install.sh | bash\nirm https://code.kimi.com/kimi-code/install.ps1 | iex\nnpm install -g @moonshot-ai/kimi-code\n```\n\n## First Run\n\n```\nkimi --version\ncd your-project\nkimi\n```\n\n- Type\n`/login`\n\n→ Kimi Code OAuth or Moonshot API key `kimi -p \"your task\"`\n\nruns one instruction without the UI`kimi -C`\n\nresumes the previous session\n\n## Use Cases\n\n- Understand a project: architecture overview and dependency map\n- Implement features with clear signatures and acceptance criteria\n- Fix bugs from symptom, reproduction steps, and expected behavior\n- Write tests, refactor, and automate log analysis or batch edits\n\n## Modes & Commands\n\n- Plan mode:\n`Shift-Tab`\n\nor`kimi --plan`\n\n`--yolo`\n\nor`/yolo`\n\nskips approvals for safe batch work`/fork`\n\ncreates an experimental branch you can abandon`/compact`\n\ncompresses context to free up tokens\n\n## How It Compares\n\n| Attribute | Kimi Code CLI | Claude Code | Codex CLI | Gemini CLI |\n|---|---|---|---|---|\n| Model | Kimi models | Claude models | GPT-5.3-Codex | Gemini 2.5 Pro |\n| Language | TypeScript | Node.js | Rust | TypeScript |\n| Subagents | Yes | Yes | Yes | No |\n| License | MIT | Proprietary | Open source | Apache 2.0 |\n\n## Key Takeaways\n\n- MIT-licensed terminal coding agent from Moonshot AI\n- Written in TypeScript; installs via script or npm\n`coder`\n\n,`explore`\n\n,`plan`\n\nsubagents in isolated contexts- MCP configured conversationally, not raw JSON\n- Succeeds kimi-cli; migrates config and sessions\n\n[marktechpost.com](https://www.marktechpost.com)\n\nCheck out the ** GitHub Repo here. **Also, feel free to follow us on\n\n**and don’t forget to join our**[Twitter](https://x.com/intent/follow?screen_name=marktechpost)\n\n**and Subscribe to**\n\n[150k+ ML SubReddit](https://www.reddit.com/r/machinelearningnews/)**. Wait! are you on telegram?**\n\n[our Newsletter](https://www.aidevsignals.com/)\n\n[now you can join us on telegram as well.](https://t.me/machinelearningresearchnews)Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? [Connect with us](https://forms.gle/wbash1wF6efRj8G58)\n\nMichal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.\n\n- Michal Sutter\n- Michal Sutter\n- Michal Sutter\n- Michal Sutter", "url": "https://wpnews.pro/news/moonshot-ai-releases-kimi-code-cli-a-terminal-ai-coding-agent-built-in-for-next", "canonical_source": "https://www.marktechpost.com/2026/06/06/moonshot-ai-releases-kimi-code-cli-a-terminal-ai-coding-agent-built-in-typescript-for-next-gen-agents/", "published_at": "2026-06-06 09:11:08+00:00", "updated_at": "2026-06-06 09:31:56.273797+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-products", "artificial-intelligence"], "entities": ["Moonshot AI", "Kimi Code CLI", "Kimi", "GitHub", "TypeScript", "npm", "MIT"], "alternates": {"html": "https://wpnews.pro/news/moonshot-ai-releases-kimi-code-cli-a-terminal-ai-coding-agent-built-in-for-next", "markdown": "https://wpnews.pro/news/moonshot-ai-releases-kimi-code-cli-a-terminal-ai-coding-agent-built-in-for-next.md", "text": "https://wpnews.pro/news/moonshot-ai-releases-kimi-code-cli-a-terminal-ai-coding-agent-built-in-for-next.txt", "jsonld": "https://wpnews.pro/news/moonshot-ai-releases-kimi-code-cli-a-terminal-ai-coding-agent-built-in-for-next.jsonld"}}