Skip to main content

Kimi Code

Install, authenticate, and resume Moonshot AI's Kimi Code CLI inside Daintree, including the rolling --continue resume and the KIMI_API_KEY auth probe.

Reviewed

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.

Commandkimi
Shortcut— (assignable in Keyboard settings)
RenderingAlt-screen — Kimi draws its own full-screen TUI
Resumekimi --continue (rolling history, no session ID)
Quit command/exit
Permission bypass--yolo
PlatformsmacOS, Windows, Linux

Install & Authenticate

curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash

Run /login inside the session on first launch and pick either Kimi Code OAuth or a Moonshot AI Open Platform API key. Daintree's auth probe looks for ~/.kimi/config.toml, ~/.kimi/credentials/kimi-code.json, or the KIMI_API_KEY environment variable.

Note
Daintree's inline install helper still offers the older Python CLI (uv tool install kimi-cli, Python 3.12+). Moonshot is winding that project down in favor of Kimi Code CLI, which migrates its config and sessions on install. Either one provides the kimi binary Daintree launches.
Note
Only KIMI_API_KEY counts as positive proof of Kimi authentication. Kimi can also be pointed at OpenAI-compatible providers, but treating OPENAI_API_KEY as a signal would wrongly mark every Codex user as Kimi-ready, so it's deliberately left out of the probe.

Resuming Sessions

Kimi uses rolling history rather than a session ID: Daintree captures nothing on shutdown and resumes by relaunching kimi --continue, which reopens whatever conversation Kimi itself considers most recent. You can't choose which past conversation to return to, and because no absolute path is recorded on Daintree's side, resuming after a project move isn't confirmed to land on the right thread. Quit with /exit. See Session Management for what Daintree preserves regardless.

Launch flags, custom presets and display titles are covered in Agent Presets. What the working, waiting and exited badges on a running agent mean is covered in Agent States.

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.