Skip to content

VersusGPU

aichat vs LLM: Which Command-Line Tool Should You Use for Local AI?

aichat and LLM both bring local Ollama models to your terminal. We compare setup, interactive chat, scripting, RAG, tools and logging to help you pick the right command-line AI tool.

By , Senior Hardware Editor

4 min read

aichat vs LLM: Which Command-Line Tool Should You Use for Local AI?

aichat and Simon Willison's LLM are two of the most capable free tools for using language models from a terminal, and both can run entirely against local models in Ollama. They're built with different priorities, though. aichat is a self-contained terminal assistant with a feature for almost everything, while LLM is a Python tool designed to slot into scripts, pipelines and a saved history.

At a glance

aichat

LLM

What it is

An all-in-one LLM command-line tool

A command-line tool and Python library for LLMs

Install

Scoop (Windows), Homebrew, Cargo, pacman, Termux or a pre-built binary

pip, pipx, uv or Homebrew

Needs Python?

No

Yes

Connecting to Ollama

Add Ollama as an OpenAI-compatible client in the config file

Install the llm-ollama plugin; models are found automatically

Interactive chat

REPL with tab completion, multi-line input and history search

llm chat, with multi-line input and editor support

Shell command help

Built-in Shell Assistant

Possible with a system prompt or template, but not a dedicated mode

Saved prompts

Roles and macros

Templates (--save and -t)

Conversation memory

Sessions

-c continues the last conversation; history kept in SQLite

Documents and RAG

Built-in RAG over files and folders

Embeddings support, with local embedding models from plugins such as llm-ollama

Tools

Function calling and MCP

Tools from plugins via -T, or your own Python functions via --functions

Extra

Local server with chat API, playground and model arena

Logs every prompt and response to SQLite by default

Licence

MIT or Apache 2.0

Apache 2.0

Setup: LLM finds your models, aichat needs a config entry

If Ollama is already running, LLM is quicker to connect. After installing LLM, llm install llm-ollama adds the plugin, which automatically discovers every model on your Ollama server and makes it available as ollama/<model name>. When you pull a new model in Ollama, it simply appears. Our guide shows how to use LLM with Ollama step by step.

aichat doesn't need Python, which is a real advantage on Windows, where you can install it with Scoop or by downloading a pre-built binary. Connecting it to Ollama means adding an openai-compatible client in its YAML configuration with the address http://localhost:11434/v1 and listing the models you want, along with settings such as each model's maximum input size and whether it supports vision or function calling. That's more typing, but it also lets you describe each model's abilities precisely.

Everyday use: aichat is friendlier interactively

aichat's REPL is the more polished place to sit and chat. It has tab completion, multi-line input, history search, configurable key bindings and custom prompts, plus sessions to keep context and roles to switch between system prompts. Its Shell Assistant turns a plain-English task into a command for your operating system and shell, which is one of the most practical things a local model can do in a terminal.

LLM's llm chat is simpler but perfectly usable, with !multi for several lines of input and !edit to write a prompt in your text editor. Where LLM shines is one-shot commands: -s sets a system prompt, -c continues the last exchange and -x extracts the first code block from the reply.

Scripting and pipelines: LLM is built for it

Both tools accept piped input. aichat goes further on input types, taking stdin, local files, entire folders, web addresses and the output of commands such as git diff, all from one -f option.

LLM, though, is designed around automation. Prompts saved with --save become templates you call with -t, schemas return structured JSON from a model, and every prompt and response is logged to a SQLite database you can look back through later (or switch off with llm logs off). It's also a Python library, so the same models you use on the command line can be called from your own scripts. If you're building small AI helpers into batch jobs, LLM is the better foundation.

Advanced features: aichat packs more in

aichat includes features that LLM handles through plugins or not at all: built-in RAG over your own documents, AI agents that combine instructions, tools and documents, MCP tool support and macros. Run aichat --serve and it starts a local server with an OpenAI-style chat completions API, embeddings and rerank endpoints, a browser-based playground and an arena for comparing two models side by side.

LLM has a strong plugin system instead. The llm-ollama plugin alone adds support for Ollama vision models, embeddings, tools, structured outputs and controls for reasoning models, such as -o think false to skip the thinking step.

Hardware: the model matters, not the tool

Neither tool needs much from your PC on its own; the speed you see depends on the Ollama model and whether it fits in your graphics card's memory. See our guides to context length and VRAM and the best local LLMs for 16GB of VRAM. For other options, including ShellGPT and Fabric, see our best command-line tools for local LLMs.

Which should you choose?

Choose aichat if you want a single program that doesn't need Python, a polished interactive REPL, a dedicated shell-command assistant, built-in RAG and MCP, or a local web playground for comparing models.

Choose LLM if you mostly run one-off prompts and scripts, want reusable templates and structured output, value a log of everything you've asked, or plan to call the same local models from Python.

The bottom line

aichat is the better choice for most people who want a local AI assistant in the terminal: it installs as a standalone program without Python, has a more capable interactive REPL with a built-in shell-command assistant, and adds RAG, MCP tools and a local playground. LLM is better for scripting and automation, because the llm-ollama plugin picks up your Ollama models automatically, prompts can be saved as templates, and every exchange is logged to a SQLite database.

Sources

  1. 01GitHub, sigoden/aichat (README)
  2. 02GitHub, sigoden/aichat example configuration
  3. 03GitHub, simonw/llm (README)
  4. 04LLM documentation, Usage
  5. 05GitHub, taketwo/llm-ollama (README)

About the author

Callum Reid

Senior Hardware Editor

Callum leads GPU, CPU and platform architecture coverage at Forge PC. Before joining the editorial desk, he spent nine years specifying, assembling and stress-testing custom gaming and workstation systems in the UK, with a focus on PCIe bandwidth, VRM thermal design, DDR5 memory tuning and 1440p/4K frame-time consistency.

More from Callum Reid

Read next

How to Stop Your Microphone Volume Changing on Its Own in Windows 11

How-To

How to Stop Your Microphone Volume Changing on Its Own in Windows 11

If your mic level keeps jumping up or down in Windows 11, an app's Automatic Gain Control is the usual culprit. Here's how to set your level in Windows and turn off automatic mic adjustment in Teams, Discord, Zoom and your mic's own software.

Marcus Thorne4 min

Best Free Apps to Control Monitor Brightness in Windows (2026)

Best Picks

Best Free Apps to Control Monitor Brightness in Windows (2026)

Windows' brightness slider often can't control an external monitor. These are the best free apps that can, over DDC/CI: Twinkle Tray, Monitorian and ControlMyMonitor, plus Windows' own settings for laptops and Dell's app for Dell screens, chosen from the developers' official pages.

Hannah Vance5 min

Core Temp vs HWMonitor: Which Free Temperature Monitor Should You Use?

Versus

Core Temp vs HWMonitor: Which Free Temperature Monitor Should You Use?

Core Temp shows per-core CPU temperatures read straight from the processor's thermal sensor; HWMonitor reads the whole PC, from GPU hotspot and fans to voltages, power and drives. Using ALCPU's and CPUID's official pages, we compare what each covers, recent updates and which to use.

Callum Reid4 min