Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsJul 24, 2026·3 min de lecture

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.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Kimi Code
Commande d'installation directe
npx -y tokrepo@latest install 28e5c472-875c-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en 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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires