Scripts2026年7月24日·1 分钟阅读

Kimi Code — Moonshot AI Terminal Coding Agent

AI-powered coding agent for the terminal by Moonshot AI, built around the Kimi model family with native MCP support, multi-file editing, and context-aware code generation.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Kimi Code
直接安装命令
npx -y tokrepo@latest install 28e5c472-875c-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Kimi Code is a terminal-based AI coding agent developed by Moonshot AI, the company behind the Kimi large language model family. It brings agentic coding capabilities directly into your terminal workflow, allowing developers to write, refactor, and debug code through natural language interaction. The agent supports multi-file editing and integrates with the MCP protocol for extensibility.

What Kimi Code Does

  • Provides an interactive terminal coding agent powered by Kimi models
  • Edits multiple files simultaneously with full project context awareness
  • Supports MCP (Model Context Protocol) for connecting to external tools
  • Executes shell commands and interprets results within the coding workflow
  • Offers inline code generation, refactoring, and debugging assistance

Architecture Overview

Kimi Code runs as a TypeScript-based CLI application that maintains a persistent session with Moonshot's Kimi API. It parses your project structure, manages a context window of relevant files, and translates natural language instructions into code edits and shell operations. The MCP integration layer allows third-party tools and data sources to extend the agent's capabilities without modifying the core codebase.

Self-Hosting & Configuration

  • Install globally via npm or use npx for one-off sessions
  • Authenticate with your Moonshot AI API key
  • Configure model selection and context limits in ~/.kimi-code/config.json
  • Add MCP server connections for tool integrations
  • Set up project-specific instructions via a KIMI.md file in your repo root

Key Features

  • Native Kimi model integration optimized for Chinese and English codebases
  • Multi-file editing with automatic dependency tracking
  • MCP protocol support for extensible tool connections
  • Context-aware suggestions based on project structure and history
  • Streaming output for real-time feedback during code generation

Comparison with Similar Tools

  • Claude Code — uses Anthropic models; Kimi Code is built around Moonshot's Kimi models
  • OpenAI Codex CLI — tied to OpenAI models; Kimi Code targets the Kimi ecosystem
  • Gemini CLI — Google's agent; Kimi Code offers competitive Chinese language support
  • Aider — model-agnostic but lacks native MCP integration
  • Cline — VS Code extension; Kimi Code is a standalone terminal agent

FAQ

Q: Which Kimi models does it support? A: It supports the full Kimi model lineup, including the latest long-context variants.

Q: Does it work with models other than Kimi? A: The primary experience is optimized for Kimi models, though OpenAI-compatible endpoints can be configured.

Q: Is it free to use? A: The CLI is open source; API usage follows Moonshot AI's pricing for the Kimi models.

Q: How does it handle large codebases? A: It uses intelligent file selection and context windowing to work within model token limits.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产