llm
CLI utility and Python library for interacting with Large Language Models from organizations like OpenAI, Anthropic and Gemini plus local models installed on your own machine.
Decision gist · record as of 2026-08-14
Yes. LLM is actively maintained, has low install friction, carries no security vulnerabilities, and offers a practical abstraction over multiple LLM providers. It is worth installing if you work with language models from the command line or want a unified Python interface to multiple providers. The main prerequisite is an API key for at least one provider (OpenAI, Anthropic, Google, etc.) or a local model setup.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later and an API key for the model provider you intend to use (e.g., OpenAI, Anthropic, Google).
- Low install friction with a pure-Python wheel distribution.
- Active maintenance with a release 10 days ago and consistent updates; the project has 12363 GitHub stars and receives substantial ongoing development.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
last release 2026-08-04 (10 days) · last repo commit 2026-08-12 · 12,363 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 538,816 downloads/mo, #6,112 on PyPI
Alternatives
Verify before relying
pip install llm
llm keys set openai
# Paste your OpenAI API key
llm "Ten fun names for a pet pelican"- Whether all 13 runtime dependencies are strictly required or if some are optional for specific features (e.g., embeddings, tool calling).
- Performance characteristics and latency when running against local models via plugins versus remote APIs.
- Memory footprint and resource requirements for running local models through the plugin system.
What it is and what it does
LLM is a unified command-line and Python interface for interacting with Large Language Models from multiple providers. It abstracts away provider-specific APIs, letting you run prompts, start interactive chats, and work with models from OpenAI, Anthropic, Google, Meta, and others—both via remote APIs and locally-installed models through plugins. The tool stores prompts and responses in SQLite, supports structured data extraction from text and images, can generate and store embeddings, and grants models the ability to execute tools.
You install it once with pip, configure API keys for the providers you use, and then run prompts from the command line or import it as a Python library. It handles the boilerplate of authentication, request formatting, and response parsing, making it practical for quick one-off queries, batch processing, and integration into scripts and applications.
Use it for
- Run ad-hoc prompts and chats from the terminal against OpenAI, Anthropic, or other remote LLM APIs without writing code.
- Extract structured content and text from images and documents using vision-capable models via a single CLI command.
- Log all prompts and responses to a local SQLite database for auditing, analysis, and retrieval of past interactions.
- Build plugins to run self-hosted models (e.g., via Ollama or LM Studio) without rewriting your prompt execution logic.
- Generate and store embeddings for text or documents, then query them for semantic search and similarity tasks.
- Grant language models access to tools and functions so they can execute terminal commands or call external APIs as part of their reasoning.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
LLM is actively maintained, has low install friction, carries no security vulnerabilities, and offers a practical abstraction over multiple LLM providers. It is worth installing if you work with language models from the command line or want a unified Python interface to multiple providers. The main prerequisite is an API key for at least one provider (OpenAI, Anthropic, Google, etc.) or a local model setup.
Install
llm on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a release 10 days ago and consistent updates; the project has 12363 GitHub stars and receives substantial ongoing development.
Requires Python 3.10 or later and an API key for the model provider you intend to use (e.g., OpenAI, Anthropic, Google).
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install llm
llm keys set openai
# Paste your OpenAI API key
llm "Ten fun names for a pet pelican"
Verify before relying
- Whether all 13 runtime dependencies are strictly required or if some are optional for specific features (e.g., embeddings, tool calling).
- Performance characteristics and latency when running against local models via plugins versus remote APIs.
- Memory footprint and resource requirements for running local models through the plugin system.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 13 packagesclickcondense-jsonopenaiclick-default-groupsqlite-utilspydanticPyYAMLpluggypython-ulidsetuptoolspippyreadline3puremagic |
| Maintenance | Actively maintained 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 538,816 / month, #6,112 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: End Users/DesktopIntended Audience :: Science/ResearchProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Text Processing :: LinguisticTopic :: Utilities |
Evidence: llm-0.32-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “large language model command line”
- llmLLM is a CLI tool and Python library for running prompts against…
- mlx-lmMLX LM loads, generates text with, fine-tunes, and quantizes large…
- llama-index-cliProvides command-line interface tools for working with llama-index, a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also banks · chatlas · llm-github-models · lmstudio · llm-anthropic · open-interpreter · headroom-ai · llm-openai-plugin · aider-chat · litellm