Bug Description
On a fresh install via Homebrew (brew install kimi-cli), running any command (e.g. kimi --print) immediately fails with:
There is no hint or guidance that the user needs to run kimi login first.
Steps to Reproduce
brew install kimi-cli (v1.47.0)
- Run
echo "hello" | kimi --print --output-format stream-json
- Observe:
LLM not set (exit code 1)
Root Cause
After installation, ~/.kimi/config.toml is initialized with:
default_model = ""
[models]
[providers]
No model or provider is configured. The CLI does not prompt the user to authenticate or select a model on first run.
Expected Behavior
One of:
- On first run after install, automatically launch the login flow (similar to
gh auth login), OR
- Print a clear, actionable error message like:
No model configured. Run \kimi login` to authenticate and set up a model.`
- Include a post-install message from Homebrew pointing the user to
kimi login.
Workaround
Run kimi login manually, complete the OAuth device flow in the browser. After login, config.toml is populated with default_model, [models], and [providers] entries and the CLI works correctly.
Environment
- kimi-cli version: 1.47.0
- Python: 3.14.6
- Install method: Homebrew (
brew install kimi-cli)
- OS: macOS (Apple Silicon)
- Config path:
~/.kimi/config.toml
Bug Description
On a fresh install via Homebrew (
brew install kimi-cli), running any command (e.g.kimi --print) immediately fails with:There is no hint or guidance that the user needs to run
kimi loginfirst.Steps to Reproduce
brew install kimi-cli(v1.47.0)echo "hello" | kimi --print --output-format stream-jsonLLM not set(exit code 1)Root Cause
After installation,
~/.kimi/config.tomlis initialized with:No model or provider is configured. The CLI does not prompt the user to authenticate or select a model on first run.
Expected Behavior
One of:
gh auth login), ORNo model configured. Run \kimi login` to authenticate and set up a model.`kimi login.Workaround
Run
kimi loginmanually, complete the OAuth device flow in the browser. After login,config.tomlis populated withdefault_model,[models], and[providers]entries and the CLI works correctly.Environment
brew install kimi-cli)~/.kimi/config.toml