LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

llm-models

List and configure models available to the llm CLI

TLDR

List installed and plugin models
$ llm models list
copy
Filter by a query string
$ llm models list -q [gpt]
copy
List models that support tools
$ llm models list --tools
copy
List models that support schemas
$ llm models list --schemas
copy
Show each model's options
$ llm models list --options
copy
Show the default model
$ llm models default
copy
Set the default model
$ llm models default [gpt-4o]
copy
Set a default option for a model
$ llm models options set [gpt-4o] temperature 0.5
copy

SYNOPSIS

llm models [options] [command]llm models list [options]llm models default [model]llm models options {list|show model|set model key value|clear model [key]}

DESCRIPTION

llm models is how llm shows which model ids you can pass to llm -m / --model. Out of the box the list is OpenAI chat models. llm install plugins add vendors and local runtimes (Claude, Gemini, Ollama, llama.cpp, and others). Aliases are managed separately with llm aliases.The default model is used when a prompt has no -m. Official docs currently default that to an OpenAI chat model; llm models default changes it.llm models options stores per-model defaults so you do not repeat -o key value on every prompt.

PARAMETERS

list

Print available models (built-in OpenAI plus plugins). Default subcommand (llm models).
-q, --query text
Keep models whose id or metadata match. Repeatable.
-m, --model id
Restrict to specific model ids. Repeatable.
--options
Include per-model option names (temperature, and so on).
--tools
Only models that can call tools.
--schemas
Only models that support structured output schemas.
--async
List async model implementations.
--json
JSON instead of text.
default [model]
With no argument, print the current default. With model (id or alias), store that default for llm when -m is omitted.
options list
Default option values set for every model.
options show model
Defaults for one model.
options set model key value
Persist a default option (example: temperature 0.5).
options clear model [key]
Clear one option, or all defaults for that model.
-h, --help
Help for llm models or a subcommand.

INSTALL

brew install llm
copy
nix profile install nixpkgs#llm
copy

CAVEATS

Subcommand of llm. A model in the list still needs a working key or local backend. Plugin model ids are not available until the plugin is installed. --query matching is substring-style across the list output, not a full metadata search API.

SEE ALSO

llm(1), llm-keys(1), llm-logs(1), ollama(1), chatgpt(1)

RESOURCES

Copied to clipboard
Kai