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.
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 | None by default; assign one in Keyboard Shortcuts |
| Rendering | Kimi's own; Daintree passes no screen-mode flag |
| Resume | Not automatic; use kimi --continue yourself |
| Quit command | /exit |
| Permission bypass | --yolo (per agent or preset only) |
| Platforms | macOS, Windows, Linux |
Install & Authenticate
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bashirm https://code.kimi.com/kimi-code/install.ps1 | iex Install Git for Windows before first launch. Kimi Code uses the bundled Git Bash as its shell environment.
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bashFollow Moonshot's getting started guide. The current CLI is written in TypeScript; the script installs its runtime, or use npm install -g @moonshot-ai/kimi-code with Node.js 22.19 or later. Run /login inside the session and choose Kimi Code OAuth or a Kimi Platform API key.
The current CLI keeps its data under ~/.kimi-code/. Daintree's probe still checks the older ~/.kimi/config.toml and ~/.kimi/credentials/kimi-code.json, or KIMI_API_KEY. A current login can therefore show No credentials detected while Kimi still launches. The badge does not validate the account.
uv tool install kimi-cli, Python 3.12+). Moonshot has replaced that project with Kimi Code CLI; follow its migration guide to move config and sessions. Either one provides the kimi binary Daintree launches.KIMI_API_KEY is the only environment variable Daintree treats as a Kimi authentication signal. The file probes can also satisfy the badge. 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
Daintree declares --continue as Kimi's rolling-history resume flag, but its restore and restart paths need a captured session ID or a resume-latest fallback. Kimi provides neither to this integration, so those paths launch fresh. Add --continue under Custom arguments or in a preset to continue the most recent conversation in the working directory.
You can choose an earlier conversation in Kimi itself with kimi --session, kimi --session <id>, or /sessions. Quit with /exit. Daintree has not confirmed conversation continuity after moving the project. See Session Management for the panel state it preserves.
Turning on Skip permission prompts for Kimi or a preset adds --yolo; the global switch does not reach Kimi. In the current CLI, that mode still asks about risky actions and plans. Daintree does not automatically supply Kimi with its MCP servers or inspect its child agents.
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.
kimi isn't detected after install, confirm it's on your PATH (command -v kimi on macOS/Linux, where.exe kimi on Windows), then restart Daintree.Integration reference
This guide describes Daintree's checked-in integration. Its agent definition records the launch command, install guidance, authentication probes, rendering capabilities, and resume support. Authentication badges report local evidence; the CLI still owns sign-in and provider access. After changing an installation, use Re-check in Settings > CLI agents; restart Daintree if its inherited PATH has changed.