LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

llm-install

Install Python packages into the same environment as llm

TLDR

Install a plugin from PyPI
$ llm install [llm-claude-3]
copy
Upgrade a package already in that environment
$ llm install -U [llm]
copy
Editable install of a local plugin
$ llm install -e [path/to/plugin]
copy
Reinstall even when the package is already current
$ llm install --force-reinstall [llm-claude-3]
copy
Include pre-releases
$ llm install --pre [plugin-name]
copy
Remove a package from the llm environment
$ llm uninstall [llm-claude-3]
copy

SYNOPSIS

llm install [options] [packages...]llm uninstall [-y] packages...

DESCRIPTION

llm install runs pip inside the same Python environment that provides the llm command. That is how model plugins (for example llm-claude-3 or llm-ollama) become visible to llm models and llm prompt. Packages installed with a different pip or virtualenv are not picked up.llm uninstall removes packages from that same environment. It asks for confirmation unless -y is given.

PARAMETERS

packages

One or more project names (PyPI) or, with -e, a local path. llm install with no packages prints help.
-U, --upgrade
Upgrade each named package to the latest version pip will accept.
-e PATH, --editable PATH
Install the project at PATH in editable mode.
--force-reinstall
Reinstall even when the package is already up to date.
--no-cache-dir
Do not use pip's download cache.
--pre
Allow pre-release and development versions.
-y, --yes
llm uninstall only. Skip the confirmation prompt.
-h, --help
Help for llm install or llm uninstall.

INSTALL

brew install llm
copy
nix profile install nixpkgs#llm
copy

CAVEATS

Subcommand of llm, not a separate binary. A Homebrew or Nix llm and a pip install llm are different environments; install plugins with the llm you actually run. llm install -U llm upgrades the tool inside its current environment and can move ahead of the distro package. Package names and versions go to pip, so a typo installs nothing useful and a broad upgrade can change unrelated plugins.

SEE ALSO

llm(1), llm-keys(1), llm-models(1), pip(1)

RESOURCES

Copied to clipboard
Kai