MoonshotAI / MoonshotAI/kimi-cli
Non-interactive CLI UX gap
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.4k
- Forks
- 1.3k
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 2
Description
What feature would you like to see?
- Return a more specific error when
--modeldoes not resolve to a configured local
model.
Example:Requested model is not configured locally- optionally include the locally configured model names
- Add a simple command to list configured local models and the current default model.
- Add a short docs section specifically for unattended / non-interactive usage covering:
- authentication
- configured default model
- explicit model selection
- validation of local model names before automation use
This would make CLI automation setup more reliable and much easier to diagnose.
Additional information
Non-interactive CLI UX gap:
LLM not set is too vague when --model is not a valid configured local model.
Title: Non-interactive CLI UX gap: LLM not set is too vague when --model is not a
valid configured local model
We encountered this while integrating Kimi Code CLI into unattended automation.
Observed behavior:
- authentication completed successfully
- non-interactive execution with the default configured model worked
- non-interactive execution with an explicit
--modelvalue failed with:LLM not set
The current error is too ambiguous. It does not make clear whether the problem is:
- no configured default model
- an explicit
--modelvalue that is not defined in the local config - successful login without a usable configured model entry for non-interactive execution
Why this matters:
- for automation, “logged in” is not sufficient
- operators need a deterministic way to confirm which explicit
--modelvalues are
actually valid in the local configuration LLM not setslows down diagnosis because it hides the distinction between auth state
Suggested improvements:
- Return a more specific error when
--modeldoes not resolve to a configured local
model.
Example:Requested model is not configured locally- optionally include the locally configured model names
- Add a simple command to list configured local models and the current default model.
- Add a short docs section specifically for unattended / non-interactive usage covering:
- authentication
- configured default model
- explicit model selection
- validation of local model names before automation use
This would make CLI automation setup more reliable and much easier to diagnose.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the CLI handling for --model, local model configuration, and existing non-interactive commands, then review the documentation structure. Confirm the current failure path and configuration format first; done means a distinct invalid-model error, a command showing configured and default models, and documented unattended usage covering authentication and model validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, documentation
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100