llm logo

llm

simonw/llm

Access large language models from the command-line

GraphCanon updated 2w · GitHub synced 2w · 30 views this month

12k stars939 forksLast push 2w Python Apache-2.0

Decision brief

Decision-critical facts for 'llm'

Good fit when

  • - You prioritize command-line interaction over graphical interfaces, as llm is designed to provide a seamless CLI experience with multiple installation methods.
  • - You are developing applications that require integration with large language models via the OpenAI API and prefer not to handle authentication and API requests manually.

Avoid when

  • - If you require real-time visual feedback or a graphical interface for interacting with language models, as llm is strictly command-line-based.
  • - If your primary focus is on model training rather than inference or serving, since llm is aimed at accessing and using pre-trained models.
Requirements:
- Installation supports multiple methods including `pip`, Homebrew (with caveats noted), `pipx`, and `uv`.; - Requires an OpenAI API key for certain functionalities.

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (2d since push)
As of 2w
Provenance
Not a fork · Personal account
As of 2w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install llm
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A tool to interact with large language models via the command line, supporting multiple installation methods and OpenAI API integration.

Capability facts

CLI
CLI entrypoint

Source: pyproject.toml:[project.scripts] · Aug 8, 2026

Languages
python

Source: github.language+pyproject.toml · Aug 8, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

OpenAI APIOpenAI API

Source: README excerpt (regex_v1, Aug 8, 2026)

If you have an [OpenAI API key](https://platform.openai.com/api-keys) key you can run this:
Source link
Python runtimePython

Source: README excerpt (regex_v1, Aug 8, 2026)

pip install llm
Source link

Tags

README

Quick start

First, install LLM using pip or Homebrew or pipx or uv:

pip install llm

Or with Homebrew (see warning note):

brew install llm

Or with pipx:

pipx install llm

Or with uv

uv tool install llm

Use LLM to run prompts or start chats against an arbitrary OpenAI-compatible Chat Completions endpoint, such as LM Studio. With uvx, you can do this without installing LLM first:

uvx llm openai endpoint http://localhost:1234/v1 \
  -m google/gemma-4-12b \
  "What is the capital of France?"

uvx llm openai endpoint http://localhost:1234/v1 \
  -m google/gemma-4-12b \
  --chat

Add --key your-api-key if the endpoint requires authentication. See Run against an endpoint without configuring it for more options.

If you have an OpenAI API key key you can run this:


---

# Install the plugin
llm install llm-ollama

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.