llm

CLI

CLI tool and Python library for interacting with LLMs.

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

3 curated recipes · not yet executed by the harness#llm#ai#openai#claude#python

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Ask a quick question

~98% est.
llm 'What is the capital of France?'

Pipe file content to LLM

~96% est.
cat error.log | llm 'What is causing this error?'

Use a specific model

~95% est.
llm -m claude-3-5-sonnet 'Explain this code' < main.py

Install

pippip install llm
Homebrewbrew install llm

Agent notes

When to use
Quick LLM queries from the terminal, piping text to AI
Quick examples
  • llm 'Explain this error' < error.log
  • cat 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.

Homepage ↗Repository ↗Apache-2.00 views