llm

CLI

CLI tool and Python library for interacting with LLMs.

0 views

Installation

pippip install llm
Homebrewbrew install llm

Links

License

Apache-2.0

AI Agent Notes

Universal CLI for LLMs — supports OpenAI, Anthropic, Ollama, and plugins

When to use

Quick LLM queries from the terminal, piping text to AI

Examples
  • llm 'Explain this error' < error.log
  • cat README.md | llm 'Summarize in 3 bullets'
  • llm logs # view conversation history

Proven Recipes

Ask a quick question🟢 98% success
llm 'What is the capital of France?'
Pipe file content to LLM🟢 96% success
cat error.log | llm 'What is causing this error?'
Use a specific model🟢 95% success
llm -m claude-3-5-sonnet 'Explain this code' < main.py