Kimi Code CLI: No model configured. Run `kimi` and use /login to sign in, then retry; or set…
Kimi Code CLI has no model to run the prompt with: you haven't signed in (which sets up a default model) and config.toml has no default_model. The exact message, why Kimi Code CLI prints it, and the fix.
Updated November 23, 2026 · Checked against Kimi Code CLI 2.x (2026)., reproduced in EnvHaven 1.9.0
The message
No model configured. Run `kimi` and use /login to sign in, then retry; or set default_model in config.toml.
What it means
Kimi Code CLI has no model to run the prompt with: you haven’t signed in (which sets up a default model) and config.toml has no default_model.
Fix
- Run
kimi, then /login, and complete the sign-in. - Or set
default_modelin Kimi Code’s config.toml. - Retry the prompt, for example
kimi -p "...".
In an EnvHaven workspace
Yes, until Kimi Code CLI is signed in once. Sign in once from the workspace’s Launch menu (Sign in, or Set key for an API key); the sign-in stays on the workspace, across restarts and on every device.
Where this comes from
This message was produced by Kimi Code CLI (Kimi Code CLI 2.x (2026).) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.