MoonshotAI / MoonshotAI/kimi-cli

Non-interactive CLI UX gap

Open
#1,954 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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?
  1. Return a more specific error when --model does not resolve to a configured local
    model.
    Example:
    • Requested model is not configured locally
    • optionally include the locally configured model names
  2. Add a simple command to list configured local models and the current default model.
  3. 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 --model value 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 --model value 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 --model values are
    actually valid in the local configuration
  • LLM not set slows down diagnosis because it hides the distinction between auth state

Suggested improvements:

  1. Return a more specific error when --model does not resolve to a configured local
    model.
    Example:
    • Requested model is not configured locally
    • optionally include the locally configured model names
  2. Add a simple command to list configured local models and the current default model.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.