simonw/llm
A command-line tool and Python library for interacting with various large language models, both remote APIs and local models.
Core Features
Quick Start
pip install llmDetailed Introduction
LLM is a powerful command-line interface and Python library designed to streamline interactions with a diverse range of Large Language Models. It acts as a universal client, enabling users to send prompts to popular commercial APIs such as OpenAI, Anthropic's Claude, and Google's Gemini, while also supporting self-hosted models through extensible plugins like `llm-ollama`. Beyond basic text generation, LLM offers robust features including persistent logging of prompts and responses to SQLite, generation and storage of embeddings, structured content extraction, and the ability to grant models tool-execution capabilities, making it an essential toolkit for developers and researchers in the AI domain.