Kimi Code
Install, authenticate, and resume Kimi Code inside Daintree, Moonshot AI's coding agent.
Kimi Code
Kimi Code is Moonshot AI's coding agent. It runs as a process in its own Daintree terminal panel with full PTY emulation, like every other built-in agent.
| Command | kimi |
|---|---|
| Shortcut | — |
| Color | Blue (#1E90FF) |
| Platforms | macOS, Windows, Linux |
Install & Authenticate
Kimi Code is Moonshot AI's coding agent.
uv tool install kimi-cliuv tool install kimi-cliuv tool install kimi-cliRequires Python 3.12 or newer. Authentication reads from ~/.kimi/config.toml, ~/.kimi/credentials/kimi-code.json, or the KIMI_API_KEY environment variable.
Note
Daintree treats only
KIMI_API_KEY as positive proof of Kimi authentication. Kimi Code can also point at OpenAI-compatible providers, but checking OPENAI_API_KEY would wrongly flag Codex-only users as Kimi-ready, so it's deliberately left out of the auth probe.Resuming Sessions
Kimi Code uses rolling history rather than a session ID, so Daintree resumes with kimi --continue and picks up where the previous conversation left off. Quit with /exit. For the resume mechanics across all agents, see Session Resume.
Tip
If
kimi isn't detected after install, confirm it's on your PATH (which kimi on macOS/Linux, where kimi on Windows), then restart Daintree. See Agent Availability for the five detection states.