> ## Documentation Index
> Fetch the complete documentation index at: https://ade-app.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Kimi Code

> Run Moonshot AI's Kimi Code in DAEX as a chat or as its own CLI, with your Kimi Code plan or a Moonshot API key.

Kimi Code is Moonshot AI's coding agent. DAEX runs its own pinned copy for each machine, downloaded the first time it is needed, and drives chats over the Agent Client Protocol (ACP).

![The Kimi page in DAEX Settings › Providers](https://mintcdn.com/ade-ac1c6011/X0fzcdMoI2OYgIpA/media/current/provider-kimi.jpg?fit=max\&auto=format\&n=X0fzcdMoI2OYgIpA\&q=85\&s=8696f97121230e6d9b2a7a76668b0d19)

Kimi in Settings › Providers: its sign-in, status and models on this machine.

## Connect

**1. Open Settings › Providers › Kimi**

Pick the machine at the top. An existing `~/.kimi-code` login on that machine is reused.

**2. Sign in or add a key**

Choose **Sign in** and pick the region: **global** (kimi.ai) or **mainland-cn** (kimi.com). DAEX runs `kimi login` with its own copy. Or add a Moonshot API key (`MOONSHOT_API_KEY`) in the **API keys** panel.

* **Plan check.** Being signed in is not enough: your Kimi plan must include Kimi Code. If it does not, the provider shows "Your plan doesn't include Kimi Code." until a turn works, the sign-in changes or you refresh.
* **DAEX Cloud.** DAEX copies your computer's Kimi Code login (the file login, not one kept in the OS keyring) to your cloud computers.

## Chat and CLI

| Surface | How DAEX runs it | What DAEX sees |
| - | - | - |
| **Chat** | `kimi acp` on DAEX's shared ACP host. | Typed events: turns, tool calls, approvals, images. Token and context figures appear when Kimi reports them; compaction is detected from a drop in context size. |
| **CLI** | The `kimi` program in a DAEX terminal. DAEX types your first prompt once it starts. | The screen only. Turn status is read from output and quiet time. |

## Permission modes

Kimi has four modes of its own, and they are mutually exclusive.

| Kimi mode | In a chat, pick | In a terminal, pick |
| - | - | - |
| Plan (`--plan`) | **Plan** | **Plan** |
| Kimi's default (asks) | **Ask** | **Ask** |
| Auto (`--auto`) | **Auto** | **Accept edits** |
| YOLO (`--yolo`) | **Full access** | **Full access** |

A chat refuses **Accept edits**, and a terminal refuses **Auto** if you name it (an Auto default inherited from your settings or a parent chat runs as Kimi's `--auto`). There is no config passthrough. See [Permissions](https://ade-app.dev/docs/configuration/permissions.md).

## Models

The picker lists the models in Kimi's catalog for your account. Thinking levels show when the model offers them. Kimi can also run on another source through a [custom provider](https://ade-app.dev/docs/configuration/ai-providers.md#custom-providers).

## Requirements

* **Windows needs Git for Windows.** Kimi uses Git Bash as its shell. DAEX checks for it and says so clearly when it is missing.

## Troubleshooting

> [accordion] Your plan doesn't include Kimi Code
>
> Your Moonshot account is signed in, but its plan does not cover Kimi Code. Upgrade the plan or use a Moonshot API key, then choose **Refresh**.

> [accordion] Kimi fails to start on Windows
>
> Install Git for Windows on the machine that runs the chat, then try again.

> [accordion] Token or context numbers are missing
>
> Kimi sends thinner usage data than other agents. Figures appear when Kimi reports them.

> [card] [AI providers](https://ade-app.dev/docs/configuration/ai-providers.md)
>
> Sign-ins, API keys, custom providers and free models.

> [card] [Agents and models](https://ade-app.dev/docs/concepts/agents-and-models.md)
>
> All 13 agents, chats vs CLI sessions, and the model picker.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.