▶YouTube
AI Skills

How to Install LLM and Chat with AI Models from Your Terminal

November 12, 2026 · NextGenTip · 18 views

LLM is a command-line tool by Simon Willison for asking AI models right from the terminal. This guide explains what it does and how to install it.

What is LLM?

LLM is a command-line tool by Simon Willison for talking to AI models without leaving the terminal. Instead of opening a browser tab, you ask a question in your shell and get the answer back in plain text — which makes it easy to pipe results into scripts, logs and other tools.

It works with many providers, including models that run offline on your own machine, and it can be extended with plugins. Conversations are saved, so you can return to an earlier chat and continue it.

What can you do with LLM?

How to install LLM

Install it with pip. Open a terminal — on Windows, press Start, type PowerShell and press Enter; on macOS, open Terminal — then run:

pip install llm

That installs the tool itself. To use a hosted model you need an API key from that provider — the tool is free, but the models charge for usage. You can also point it at a local model endpoint instead, for example a server running on your own machine, which avoids sending anything to a provider.

First steps after installing

Ask a simple question from the terminal to confirm the tool works:

llm "What is the capital of France?"

Then try a practical job: pipe a file into it for a summary, or ask it to explain an error message from a log. When you find a prompt you reuse, save the conversation and continue it later instead of starting over.

Frequently asked questions

Is LLM free? Yes. It is an open-source project on GitHub, and you can download and use it free of charge.

Do I need to pay for anything? The tool costs nothing, but hosted models need an API key and charge for usage. Local models avoid that, at the cost of running them yourself.

Is it hard to install? No. One pip command is enough, and the README covers keys and plugins.

← Back to all guides

Comments (0)

Leave a comment