{"slug":"ollama","name":"Ollama","kind":"runbook","what":"The one-command local model runner with a REST API on port 11434.","page":"https://insidethemachine.ai/setups/ollama","status":"docs-checked","status_label":"Not run: commands checked against the official docs only","status_note":"Commands checked against the official docs on 2026-10-15. Not run end to end.","wrapper":"The wrapper scripts are generated from the site data. Every .sh passed bash -n and shellcheck and ran in plan mode on Linux (Debian 13). Every .ps1 passed the PowerShell parser and chat.ps1 ran in plan, verify and rollback mode under PowerShell 7 on Linux with Windows calls mocked. Not run on macOS or real Windows.","wrapper_tested":"2026-10-16, Debian 13 box (no GPU, no systemd): the script installed Ollama for real. Checks: version PASS; API checks FAIL until `ollama serve` runs (no systemd); with the server up, tags PASS.","sh":"https://insidethemachine.ai/install/ollama.sh","ps1":"https://insidethemachine.ai/install/ollama.ps1","md":"https://insidethemachine.ai/install/ollama.md","json":"https://insidethemachine.ai/install/ollama.json","one_liner":"curl -fsSL https://insidethemachine.ai/install/ollama.sh | bash","one_liner_windows":"irm https://insidethemachine.ai/install/ollama.ps1 | iex","actions":{"install":"curl -fsSL https://insidethemachine.ai/install/ollama.sh | bash","plan":"curl -fsSL https://insidethemachine.ai/install/ollama.sh | bash -s -- plan","verify":"curl -fsSL https://insidethemachine.ai/install/ollama.sh | bash -s -- verify","rollback":"curl -fsSL https://insidethemachine.ai/install/ollama.sh | bash -s -- rollback --yes"},"env":{"ITM_RAM":"memory in GB instead of detecting it"},"model_by_memory_gb":null,"low_memory":null,"platforms":{"macos":{"install":[{"title":"Install Ollama","lines":[{"k":"run","c":"curl -fsSL https://ollama.com/install.sh | sh"},{"k":"note","c":"alternatives: brew install ollama   |   brew install --cask ollama-app   |   download https://ollama.com/download/Ollama.dmg"}]},{"title":"Configure (your choices)","lines":[{"k":"you","c":"ollama pull gemma4","why":"example model name used in the README; pick any model from ollama.com/library"},{"k":"you","c":"ollama run gemma4","why":"interactive chat"}]}],"verify":[{"run":"ollama --version","expect":"prints a version string"},{"run":"curl -s http://localhost:11434/api/tags","expect":"JSON list of locally pulled models"},{"run":"curl -s http://localhost:11434/api/chat -d '{\"model\":\"gemma4\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"stream\":false}'","expect":"JSON with message.content"}],"rollback":[{"k":"ollama","c":"ollama rm gemma4"},{"k":"mac","c":"brew uninstall ollama   # or: brew uninstall --cask ollama-app"},{"k":"run","c":"rm -rf ~/.ollama"}]},"linux":{"install":[{"title":"Install Ollama","lines":[{"k":"run","c":"curl -fsSL https://ollama.com/install.sh | sh"}]},{"title":"Configure (your choices)","lines":[{"k":"you","c":"ollama pull gemma4","why":"example model name used in the README; pick any model from ollama.com/library"},{"k":"you","c":"ollama run gemma4","why":"interactive chat"}]}],"verify":[{"run":"ollama --version","expect":"prints a version string"},{"run":"curl -s http://localhost:11434/api/tags","expect":"JSON list of locally pulled models"},{"run":"curl -s http://localhost:11434/api/chat -d '{\"model\":\"gemma4\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"stream\":false}'","expect":"JSON with message.content"}],"rollback":[{"k":"ollama","c":"ollama rm gemma4"},{"k":"mac","c":"brew uninstall ollama   # or: brew uninstall --cask ollama-app"},{"k":"run","c":"rm -rf ~/.ollama"}]},"windows":{"install":[{"title":"Install Ollama","lines":[{"k":"run","c":"irm https://ollama.com/install.ps1 | iex"}]}],"verify":[{"run":"ollama --version","expect":"prints a version string"},{"run":"curl -s http://localhost:11434/api/tags","expect":"JSON list of locally pulled models","you":true},{"run":"curl -s http://localhost:11434/api/chat -d '{\"model\":\"gemma4\",\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}],\"stream\":false}'","expect":"JSON with message.content","you":true}],"rollback":[{"k":"ollama","c":"ollama rm gemma4"},{"k":"you","c":"brew uninstall ollama   # or: brew uninstall --cask ollama-app","why":"macOS/Linux command; do the same by hand"},{"k":"you","c":"rm -rf ~/.ollama","why":"macOS/Linux command; do the same by hand"}]}}}