Where to Find Documentation for Kimi-Code: A Complete Guide to the MoonshotAI Repository
The complete documentation for Kimi-Code is located in the docs/ directory of the MoonshotAI/kimi-code repository and is published online at https://moonshotai.github.io/kimi-code.
Kimi-Code is an open-source AI coding assistant CLI developed by MoonshotAI. Whether you are installing the tool for the first time or configuring advanced integrations, the repository contains comprehensive markdown documentation covering every feature, command, and configuration option.
Documentation Structure in the Repository
The primary documentation resides in the docs/ directory at the repository root. This folder contains markdown files organized by language (en/ for English) and category (guides, reference, configuration).
The README.md at the repository root serves as the entry point, providing quick links to the documentation site, installation badges, and a concise feature overview. For the generated static site source, see [docs/en/index.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/index.md).
Key Documentation Sections
Getting Started Guide
New users should begin with [docs/en/guides/getting-started.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/guides/getting-started.md). This file provides step-by-step instructions for installing the binary, launching your first session, and executing basic commands. It covers the installation script hosted at https://code.kimi.com/kimi-code/install.sh and initial setup workflows.
Command Reference
The slash commands and keyboard shortcuts are fully documented in [docs/en/reference/kimi-command.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/reference/kimi-command.md). This reference details interactive commands such as /login for authentication, /new for fresh sessions, /model for switching AI models, and /mcp-config for managing Model Context Protocol servers.
Configuration Guides
Provider setup and environment configuration are explained in [docs/en/configuration/providers.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/configuration/providers.md). This section details how to configure API providers (OpenAI, Anthropic, Kimi), set environment variables, and locate local data storage paths on your system.
Customization and Plugins
To extend functionality, refer to [docs/en/customization/plugins.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/customization/plugins.md). This documentation covers installing marketplace skills, creating custom MCP servers, and configuring hooks that modify CLI behavior.
IDE Integration via ACP
The Agent Client Protocol (ACP) bindings for editor integration are documented in [docs/en/guides/ides.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/guides/ides.md). This guide explains how to use Kimi-Code from within Zed, JetBrains IDEs, and VS Code by running the kimi acp command as a language server.
Release Notes
Version history and breaking changes are tracked in [docs/en/release-notes/changelog.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/release-notes/changelog.md), which lists new features and bug fixes for each release.
Accessing Documentation Online vs. Locally
You can browse the rendered documentation at https://moonshotai.github.io/kimi-code/en/. This static site is generated directly from the markdown files in the docs/ directory.
Alternatively, browse the raw markdown files directly in the repository. Both sources contain identical content, but the online site provides easier navigation and search functionality.
Essential Code Examples from the Documentation
The following examples demonstrate common workflows documented in the getting started and command reference guides.
Install the binary using the official installation script:
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
Verify the installation and check the version:
kimi --version
Start an interactive session in your project directory:
cd my-project
kimi
Inside the interactive UI, use these documented slash commands:
/login # Initiate OAuth or API-key authentication flow
/new # Start a fresh conversation session
/model # Switch between available AI models
/mcp-config # Configure Model Context Protocol servers
/help # Display all available commands and keyboard shortcuts
Execute a one-off prompt without entering the interactive UI:
kimi -p "Generate a TypeScript function that converts a string to kebab-case."
Invoke a specific skill directly from the command line:
kimi -p "/run my-skill --arg value"
Configure ACP integration for Zed by adding this to your settings:
// ~/.config/zed/settings.json
{
"agent_servers": {
"Kimi Code CLI": {
"type": "custom",
"command": "kimi",
"args": ["acp"],
"env": {}
}
}
}
Key Source Files for Developers
Developers extending or debugging Kimi-Code should reference these implementation files:
- [
apps/kimi-code/src/main.ts](https://github.com/MoonshotAI/kimi-code/blob/main/apps/kimi-code/src/main.ts) – The main entry point for the CLI binary, handling UI wire-up, configuration loading, and command routing. - [
packages/node-sdk/README.md](https://github.com/MoonshotAI/kimi-code/blob/main/packages/node-sdk/README.md) – Documentation for the TypeScript SDK that powers the CLI internals.
Summary
- Primary location: All documentation for kimi-code lives in the
docs/directory of the MoonshotAI/kimi-code repository. - Online access: Browse the rendered site at https://moonshotai.github.io/kimi-code for searchable, formatted documentation.
- Getting started: New users should read
docs/en/guides/getting-started.mdfor installation and first steps. - Command reference: Complete slash command documentation is available in
docs/en/reference/kimi-command.md. - Configuration: Provider setup and environment variables are documented in
docs/en/configuration/providers.md. - IDE integration: ACP setup for editors is covered in
docs/en/guides/ides.md.
Frequently Asked Questions
Where is the official Kimi-Code documentation website?
The official documentation is published at https://moonshotai.github.io/kimi-code. This site is automatically generated from the markdown files in the docs/en/ directory of the repository and provides a searchable, navigable interface to all guides and reference materials.
How do I access the getting started guide for Kimi-Code?
The getting started guide is located at [docs/en/guides/getting-started.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/guides/getting-started.md) in the repository. It covers installation via the official install script (curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash), initial configuration, and launching your first interactive session with the kimi command.
What commands are available in Kimi-Code?
Kimi-Code provides an extensive set of slash commands documented in [docs/en/reference/kimi-command.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/reference/kimi-command.md). Key commands include /login for authentication, /new to reset sessions, /model to switch AI providers, and /mcp-config to manage Model Context Protocol integrations. Type /help in the interactive UI to see all available options.
How do I configure IDE integration with Kimi-Code?
IDE integration uses the Agent Client Protocol (ACP) documented in [docs/en/guides/ides.md](https://github.com/MoonshotAI/kimi-code/blob/main/docs/en/guides/ides.md). To integrate with supported editors like Zed or VS Code, run kimi acp as a custom language server in your editor settings, enabling direct code assistance within your development environment.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →