📎 Webclip
Using AI Without Leaving the Terminal: A Guide to llm
The page explains llm as a command-line tool that unifies access to language models from the terminal. It highlights installation options, provider setup, conversation logging, plugins, local models, fragments, templates, embeddings, and automation examples for everyday development work.
Reading notes#
llmgives one command for different models instead of switching web interfaces.- It saves every conversation to SQLite and can show logs, usage, and exports.
- Installation paths include
uv,uvx,pipx, and Homebrew. - You can set API keys for providers like OpenAI, Anthropic, and Gemini.
- Prompt flags go before the prompt, and files can be passed directly with
-for through pipes. - Chat mode keeps context across exchanges.
- Plugins extend provider support and add tools, fragments, embeddings, and extras.
- On Apple Silicon Macs,
llm-mlxallows local models, with model choices tied to RAM. - Fragments can feed large inputs such as GitHub repos or code symbols.
- Functions and tools let models run code or use plugin tools.
- Aliases, templates, and default models reduce repeated setup.
- Embeddings and
similarsupport semantic search over a SQLite database. symbex,files-to-prompt, and Git commands integratellminto development tasks.- Cost control includes choosing cheaper models, checking token usage, and reusing context.
- The page also shows batch summarization, documentation generation, structured JSON output, and image analysis.
- Best practices emphasize aliases, templates, fragments, low-cost models, Unix pipes, and disabling logs for sensitive data.
