simonw/llm
A CLI and Python library providing a unified interface for interacting with dozens of Large Language Models through remote APIs and local installations.

LLM provides a command-line tool and Python API for running prompts against multiple LLM providers including OpenAI, Anthropic, Google, and Meta. It supports storing conversation history, embedding text, and running models locally. The tool abstracts away provider-specific details, offering a consistent interface for prompt execution, model selection, and conversation management across both cloud-based and self-hosted models.