llm
CLICLI tool and Python library for interacting with LLMs.
Universal CLI for LLMs — supports OpenAI, Anthropic, Ollama, and plugins
Recipes
Curated from documentation and usage. Percentages are estimates, not measurements.
Ask a quick question
llm 'What is the capital of France?'Pipe file content to LLM
cat error.log | llm 'What is causing this error?'Use a specific model
llm -m claude-3-5-sonnet 'Explain this code' < main.pyInstall
pip
pip install llmHomebrew
brew install llmAgent notes
- When to use
- Quick LLM queries from the terminal, piping text to AI
- Quick examples
llm 'Explain this error' < error.logcat README.md | llm 'Summarize in 3 bullets'llm logs # view conversation history
Use from an agent
curl -s https://clihub.com/api/tools/llm | jq '.agentHints.provenRecipes[] | {task, command, verified}'Or call get_tool with slug llm on the MCP server at https://clihub.com/mcp.