Ollama
$ ollama Official Med Riskollama downloads, manages, and serves quantized local LLMs on macOS, Linux, and Windows. While ollama run defaults to an interactive chat REPL unless given a prompt argument, subcommands like list, ps, and show plus its local localhost:11434 REST API integrate cleanly with scripts.
brew install ollama Use ollama list/ps/pull directly to manage local models; call http://localhost:11434/api/generate with curl for strict JSON-mode inference.
Agent-Readiness Checklist
Local Probe EvidenceCaptured --help excerpt
Large language model runner
Usage:
ollama [flags]
ollama [command]
Available Commands:
serve Start Ollama
create Create a model
show Show information for a model
run Run a model
stop Stop a running model
pull Pull a model from a registry
push Push a model to a registry
signin Sign in to ollama.com
signout Sign out from ollama.com
list List models
ps List running models
cp Copy a model
rm Remove a model
launch Launch the Ollama menu or an integration
help Help about any command
Flags:
-h, --help help for ollama
--nowordwrap Don't wrap words to the next line automatically
--verbose Show timings for response
-v, --version Show version information
Use "ollama [command] --help" for more information about a command. FCRS-1.0 6-Dimension Breakdown
Supports one-shot ollama run <model> <prompt> --format json, list, and ps, though bare ollama run enters a blocking REPL and list/ps emit plain tables rather than JSON.
- Supports
--format jsononrun;listandpsemit human tables
Local inference keeps prompts private on-device; pulling multi-GB weights writes large files into ~/.ollama/models.
- Local model execution;
pulldownloads multi-GB weights to disk
Easy brew/installer setup across macOS, Linux, and Windows, though requires ollama serve daemon running and substantial RAM/VRAM.
- Cross-platform binary/app; requires local
ollama servedaemon and GPU/RAM
De-facto standard for local LLM management and OpenAI/Ollama HTTP serving.
- One-command model pulling, quantization management, and local REST API
Official ollama/ollama project under MIT license.
- Official
ollama/ollamarepository
Clear docs/cli.md and ollama --help.
- Official CLI docs at github.com/ollama/ollama
Security, Auth & Guardrails
Stores an Ed25519 key under ~/.ollama/id_ed25519 for pushing models to ollama.com; local inference needs no auth.
Free, MIT open-source local inference runtime; hardware RAM/VRAM and disk space required.
# Ollama Agent Rules - Never run `ollama run <model>` without a prompt argument or piped stdin—bare invocations enter an interactive chat REPL. - Confirm disk/VRAM capacity before running `ollama pull`, as model weights span several gigabytes.
Agent-Ready Command Recipes
Safe Read-Only Queries
ollama list
Displays installed local models, IDs, disk sizes, and modified timestamps.
ollama ps
Lists models currently resident in RAM/VRAM and processor split.
Controlled Writes & Previews
ollama run llama3.2 --format json 'Return {"status":"ok"} as JSON.' Runs single-shot inference (--format json) using a prompt argument rather than entering the REPL.
Strengths for Agents
- + Simplest way to pull, inspect (
list,ps), and run local LLMs. - +
ollama run <model> <prompt> --format jsonsupports one-shot JSON generation without entering the REPL.
Caveats & Pitfalls
- !
ollama listandollama psdo not output JSON directly (usecurl localhost:11434/api/tagsfor JSON). - ! Bare
ollama run <model>without a prompt blocks in an interactive chat loop, andollama pulldownloads gigabytes.