ollama - 💡(How to fix) Fix Ollama CLI should ask which model to load in case user has not chosen yet.

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

➜ ~ ollama list NAME ID SIZE MODIFIED x/flux2-klein:4b 50a0c0ab15ac 5.7 GB 4 hours ago gemma4:31b-cloud c382fbfbc73b - 14 hours ago gemma4:latest c6eb396dbd59 9.6 GB 44 hours ago gemma4:e2b 7fbdbf8f5e45 7.2 GB 6 days ago gemma3:27b-cloud 9e1580299085 - 5 weeks ago glm-5:cloud c313cd065935 - 6 weeks ago lfm2.5-thinking:latest 95bd9d45385f 731 MB 2 months ago ➜ ~ ollama run Error: requires at least 1 arg(s), only received 0

Code Example

~ ollama list
NAME                      ID              SIZE      MODIFIED
x/flux2-klein:4b          50a0c0ab15ac    5.7 GB    4 hours ago
gemma4:31b-cloud          c382fbfbc73b    -         14 hours ago
gemma4:latest             c6eb396dbd59    9.6 GB    44 hours ago
gemma4:e2b                7fbdbf8f5e45    7.2 GB    6 days ago
gemma3:27b-cloud          9e1580299085    -         5 weeks ago
glm-5:cloud               c313cd065935    -         6 weeks ago
lfm2.5-thinking:latest    95bd9d45385f    731 MB    2 months ago
~ ollama run
Error: requires at least 1 arg(s), only received 0
RAW_BUFFERClick to expand / collapse
➜  ~ ollama list
NAME                      ID              SIZE      MODIFIED
x/flux2-klein:4b          50a0c0ab15ac    5.7 GB    4 hours ago
gemma4:31b-cloud          c382fbfbc73b    -         14 hours ago
gemma4:latest             c6eb396dbd59    9.6 GB    44 hours ago
gemma4:e2b                7fbdbf8f5e45    7.2 GB    6 days ago
gemma3:27b-cloud          9e1580299085    -         5 weeks ago
glm-5:cloud               c313cd065935    -         6 weeks ago
lfm2.5-thinking:latest    95bd9d45385f    731 MB    2 months ago
➜  ~ ollama run
Error: requires at least 1 arg(s), only received 0

Why ollama cant just provide the list of avaialble models to run and ask which one to load? this will save a lot of time for cli users :)

<img width="472" height="206" alt="Image" src="https://github.com/user-attachments/assets/260c7aac-4ae8-41f0-890e-7cc35f6aa544" />

extent analysis

TL;DR

Modify the ollama run command to accept optional arguments and provide an interactive model selection interface.

Guidance

  • Review the ollama run command implementation to determine why it requires at least one argument.
  • Consider adding an optional argument to ollama run that allows users to specify a model, and provide a default interactive selection interface when no argument is provided.
  • Investigate using a library or framework that supports interactive command-line interfaces to simplify the implementation of the model selection feature.
  • Evaluate the feasibility of displaying available models and prompting the user to select one when no argument is provided to ollama run.

Notes

The implementation details of the ollama run command and the ollama tool are unclear, which may limit the effectiveness of the suggested modifications.

Recommendation

Apply workaround: Modify the ollama run command to provide an interactive model selection interface when no arguments are provided, as this would address the user's concern and improve the overall user experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING