--- id: llm version: "0.32" license: Apache-2.0 license_treatment: permissive maintenance: active --- # 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. License: permissive · Maintenance: active · Downloads: 538.8K/mo ## 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 above — verify before relying. LLM is a CLI tool and Python library for running prompts against Large Language Models from OpenAI, Anthropic, Google, Meta, and dozens of other providers, both via remote APIs and locally-installed models. 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 pip install llm uv add llm poetry add llm ## Installing llm 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. 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" Requires Python 3.10 or later and an API key for the model provider you intend to use (e.g., OpenAI, Anthropic, Google). 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_current - Install friction: low - Maintenance: active - Downloads: 538.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags llm cli tool, large language model command line, openai anthropic cli, prompt execution tool, local language model runner, llm embeddings extraction, structured data from text, language model api client, cli-tool, llm-interface, multi-provider [View on SkillFed](https://skillfed.io/packages/llm) · [View on PyPI](https://pypi.org/project/llm/)