aiagent.club
中文
GitHub repo

simonw/llm

Python Tracked since 2023-04-01 Updated 2026-09-12 View source ↗

#201 of 803 by Stars among GitHub repos

12.5k Stars

Access large language models from the command-line

About

A CLI tool and Python library for interacting with OpenAI, Anthropic’s Claude, Google’s Gemini, Meta’s Llama and dozens of other Large Language Models, both via remote APIs and with models that can be installed and run on your own machine.

Watch Language models on the command-line on YouTube for a demo or read the accompanying detailed notes.

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

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

Run prompts against Gemini or Anthropic with their respective plugins:

You can also install a plugin to access models that can run on your local device. If you use Ollama:

To start an interactive chat with a model, use llm chat:

Excerpted from github.com/simonw/llm

Latest metrics

Stars 12.5k 2026-09-12
Forks 982 2026-09-12
Commits 1.3k 2026-09-12
Releases 71 2026-09-12
Watchers 64 2026-09-12
Open issues 425 2026-09-12
Open PRs 266 2026-09-12