simonw/llm
Access large language models from the command-line
What it solves
LLM provides a unified, command-line interface to interact with a wide variety of Large Language Models (LLMs). It removes the friction of switching between different web interfaces or API providers by allowing you to run prompts, manage chats, and perform data tasks directly from your terminal.
How it works
It acts as a central hub that connects to various AI services (like OpenAI, Anthropic, and Google Gemini) via their APIs, or to local models running on your machine through plugins. You can save your API keys securely, set up custom system prompts, and use templates to standardize your interactions. All your prompts and model responses are automatically stored in a local SQLite database, making it easy to track your history or build local search tools using embeddings.
Who it’s for
This tool is designed for developers, data enthusiasts, and power users who want to integrate LLMs into their terminal workflows, automate text processing, or experiment with different models without leaving the command line.
Highlights
- Access dozens of models, including remote APIs and local models via plugins.
- Interactive chat mode directly in the terminal.
- Automatic logging of all prompts and responses to a local SQLite database.
- Support for structured data extraction and tool execution.
- Ability to generate and store embeddings for advanced search and data analysis.
- Highly extensible through a plugin system.
Related
- Project
- Project
- Project
- Project
- Project