ScriptsApr 1, 2026·1 min read

LLM — CLI Tool for 100+ Language Models

LLM is a CLI and Python library for accessing 100+ LLMs via APIs or locally. 11.5K+ stars. SQLite logging, embeddings, structured data. Apache 2.0.

TO
TokRepo精选 · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

# Install
pip install llm
# Or: brew install llm

# Set API key
llm keys set openai

# Run a prompt
llm "Explain quantum computing in one sentence"

# Chat mode
llm chat -m claude-4-sonnet

# Extract structured data
llm "List 3 fruits" --schema name:str,color:str

# All prompts logged to SQLite
llm logs

Intro

LLM is a command-line tool and Python library for accessing OpenAI, Claude, Gemini, Llama, and dozens of other LLMs through APIs or locally-installed models. With 11,500+ GitHub stars and Apache 2.0 license, it stores all prompts and responses in SQLite for logging and analysis, generates embeddings, extracts structured data using schemas, supports tool execution, interactive chat mode, and multi-modal inputs (images, audio, video) via plugins.

Best for: Developers who want quick LLM access from the terminal with full logging Works with: Claude Code, OpenAI Codex, Cursor, Gemini CLI, Windsurf


Key Features

  • 100+ models via plugins (cloud + local)
  • SQLite logging of all prompts/responses
  • Structured data extraction with schemas
  • Embeddings generation
  • Tool execution support
  • Multi-modal (images, audio, video)
  • Interactive chat mode

FAQ

Q: What is LLM? A: CLI tool with 11.5K+ stars for 100+ language models. SQLite logging, embeddings, structured data, chat mode. Apache 2.0.

Q: How do I install LLM? A: pip install llm or brew install llm. Then llm "your prompt".


🙏

Source & Thanks

Created by Simon Willison. Apache 2.0. simonw/llm — 11,500+ GitHub stars

Related Assets