Kimi Code
Configure the current Kimi Code CLI in Happier through its standard ACP server.
Use the current Kimi Code CLI from Happier through kimi acp in your project directory.
The transition to current Kimi Code described here is in development. Authenticated session and mode behavior still needs live validation. Kimi remains an experimental integration in Happier.
Requirements
- Current Kimi Code CLI installed locally. The development integration is validated with Kimi Code 2.4.1 and its journal protocol 1.5.
- Binary available on
PATH(or setHAPPIER_KIMI_PATH).
Install Kimi
Happier can run the vendor installer for you:
happier install provider kimiOr install it yourself (macOS / Linux):
curl -LsSf https://code.kimi.com/kimi-code/install.sh | bash
kimi --versionWindows (PowerShell):
Invoke-RestMethod https://code.kimi.com/kimi-code/install.ps1 | Invoke-Expression
kimi --versionOn Windows, install Git for Windows first. If Git Bash is outside its default location, set KIMI_SHELL_PATH to its bash.exe, as described in the official installation guide.
Local authentication in Happier
Kimi supports launching its native setup/login flow from:
- Settings → AI & Agents → AI backends → Kimi
Happier opens the native kimi login flow for you.
Auth-status detection for Kimi is currently conservative, so Happier may still show Unknown even though the login flow is available.
For the shared user guide, see Provider authentication.
Start Kimi with Happier
happier kimiBackground continuations
In the development integration, a continuation started by a background task makes the session active again. Happier displays its output and approvals, then returns to idle after publishing the result. The continuation retains the permission policy of the turn that started its task, even if a later turn uses a different policy.
Cancelling the session stops pending background tasks and active continuations. The same session remains available for another prompt. A detached shell waiting for work does not itself keep the session marked active.
Notes
- Kimi advertises list, load, fork, close, delete, and cancellation in its ACP capability reference. Happier consumes supported methods through its shared ACP runtime; advertised vendor methods do not imply a dedicated control in every Happier client.
- When creating a new session, the Resume field can browse session IDs reported by
kimi acpthrough ACPsession/list, filtered to the selected directory, and use one as the session to resume. Those entries are resume-only. Listing them does not establish that Kimi's interactive terminal uses the same IDs, and Happier does not provide live takeover, writer safety, transcript following or import, or terminal attachment for them. When the live Kimi ACP connection also advertisessession/delete, the resume picker offers a confirmed delete action for the provider-owned candidate. This does not delete a persisted Happier session. - Models come from the active ACP session. Happier does not translate them into top-level Kimi flags.
- MCP servers use standard ACP descriptors, including stdio, HTTP, and SSE transports supported by Kimi.
- Happier keeps Kimi in manual approval mode and applies the Happier permission policy. Native automatic-approval mode controls are not exposed.
- Tool calls are normalized to canonical Happier tool renderers.
Update an existing current installation with:
kimi upgradeTroubleshooting
If Kimi is not detected:
- Verify
kimi --versionworks. - Restart Happier.
- Set
HAPPIER_KIMI_PATHif needed.
Unsupported journal protocol
If Happier reports an unsupported Kimi journal protocol, that Kimi version is not compatible with the development integration's background-turn reader. Use the validated Kimi version or a Happier update that supports the newer protocol. Happier stops the session rather than treating unrecognized background events as authorized work.
Legacy kimi-cli detected
The retired Python kimi-cli has a different ACP capability shape and is not launched as current Kimi Code. Install the current CLI, then run this migration yourself:
kimi migrateHappier never runs migration automatically. An explicit HAPPIER_KIMI_PATH is still capability-classified; it does not bypass this check.
Related
- Agent capabilities — what this agent supports, generated from the manifest.
- Choosing an agent
- Model and engine selection
- Agent authentication