Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

llm

$ llm Community Med Risk
Simon Willison (simonw) · AI & Media · Apache-2.0 · macos / linux / windows

llm lets users and agents run prompts across OpenAI, Anthropic, Gemini, and local Ollama models via plugins, constrain output via --schema / JSON, attach multimodal files (-a), and query every past prompt/response in SQLite via llm logs list --json.

FCRS-1.0 Score
91 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install llm
CLI vs MCP Decision CLI Only

Composable Unix-pipe LLM runner with SQLite audit logs (llm logs list --json) and structured --schema; ideal for shell workflows.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Built for Unix shell piping with --no-stream, --schema, --no-log, logs list --json, and zero interactive TUI traps.

  • Supports logs list --json, --schema, -s system prompts, and --no-log
Trust & Safety 21 / 25

Remote provider calls incur API billing and default logging writes every prompt/response to local SQLite logs.db unless --no-log is passed.

  • Logs all prompts to SQLite by default unless --no-log is specified
Setup & Portability 14 / 15

Easy brew, pip, and uvx install across macOS, Linux, and Windows, with llm install <plugin> for extra vendors.

  • Cross-platform Python CLI via Homebrew, PyPI, and uvx
Utility & Efficiency 15 / 15

Outstanding Unix pipe composability, SQLite auditability, and structured --schema / -a multimodal attachments.

  • Unified multi-provider CLI with SQLite logging and plugin ecosystem
Maintenance & Lineage 9 / 10

Actively maintained by Simon Willison (simonw/llm) under Apache-2.0.

  • Official simonw/llm repository
Docs & Verifiability 9 / 10

Excellent documentation at llm.datasette.io.

  • Official docs at llm.datasette.io

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Stores provider API keys via llm keys set in keys.json (user app-support dir) or reads OPENAI_API_KEY / provider env vars.

Side Effects
Read-Only Local Write Billing Impact
Cost & Quotas

Apache-2.0 open-source CLI; remote LLM calls bill against your configured provider API keys (local plugins like llm-ollama are free).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# llm CLI Agent Rules
- Pass `--no-log` when processing secrets or private code so prompts are not persisted in SQLite `logs.db`.
- Cap history queries with `llm logs list -n <count> --json` (avoid `-n 0` on large histories).

Agent-Ready Command Recipes

Safe Read-Only Queries

List configured models and aliases
llm models list

Prints available built-in and plugin-installed models offline.

Inspect recent prompt logs as JSON
llm logs list -n 5 --json

Queries the local SQLite log database and prints the last 5 interactions as JSON (--json).

Controlled Writes & Previews

Pipe text through a model with a system prompt and no-log option
cat README.md | llm -s 'Summarize in 3 bullets' --no-log

Runs one-shot completion over stdin without saving sensitive inputs to SQLite (--no-log).

Strengths for Agents

  • + Built for Unix pipes (stdin | llm -s ...) with zero TUI blocking.
  • + Automatic SQLite logging with llm logs list --json and --no-log opt-out.
  • + Rich plugin ecosystem (llm-anthropic, llm-gemini, llm-ollama).

Caveats & Pitfalls

  • ! Saves every prompt/response in plain SQLite logs.db unless --no-log is passed.
  • ! API keys stored via llm keys set reside in plaintext keys.json.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI