Site icon AIGetFree

How to Run AI Locally in 2026 — Ollama + Open WebUI, Free, Private, 30-Minute Setup

⚠️ Affiliate Disclosure: This guide contains no affiliate links. Ollama, Open WebUI, and all models mentioned are open-source and free. Hardware recommendations are independent. All commands verified July 2026.
Guides & Tutorials · July 2026

Run AI Locally in 2026 — Ollama + Open WebUI, Free, Private, 30-Minute Setup

Your data never leaves your machine. No subscriptions. No censorship. This step-by-step guide walks you through installing Ollama v0.32 and Open WebUI on any computer, pulling free open-weight models like Llama 4 Scout, Qwen3, and DeepSeek V4 Flash, and getting a ChatGPT-like interface running entirely offline. Total cost: $0. Total time: 30 minutes.

OllamaOpen WebUISelf-HostedFree
Download Ollama (Free) →
macOS · Linux · Windows · 126K+ GitHub stars · v0.32
TL;DR

In 30 minutes you'll build a fully private AI assistant. Ollama (v0.32, the model runner), Open WebUI (the ChatGPT-like interface with RAG, voice, web search, and multi-model chat), and your choice of free open-weight models. All running on your own hardware. No internet required after setup. No data sent to any server. No censorship, no content filters, no rate limits. The stack: install Ollama → pull a model (Llama 4 Scout 8B for 8GB VRAM, Qwen3 Coder 32B for 24GB) → install Open WebUI via Docker → open localhost:3000 → you have a private ChatGPT. This guide covers macOS, Linux, and Windows, with hardware recommendations for every budget, advanced configuration, and troubleshooting.

$0Total Cost
30 minSetup Time
2Tools (Ollama+OWUI)
100%Offline After Setup
∞No Rate Limits
50-120tok/s on GPU

What You're Building

A completely private AI assistant that runs on your own computer. Ollama is the engine — it downloads, manages, and runs AI models locally using llama.cpp under the hood. Version 0.32 (July 2026) brings improved multi-GPU scheduling, GGUF model compatibility, and support for NVIDIA Blackwell GPUs (RTX 50 series). Open WebUI is the interface — it gives you a ChatGPT-like chat experience with conversation history, file uploads (PDF, images, code), RAG document querying, voice input/output via local Whisper + TTS, web search integration, model switching mid-conversation, and a plugin system (Functions). Together they form a self-hosted AI platform that requires zero internet connection after the initial model download. Your prompts, conversations, and uploaded files never leave your machine. No account needed. No subscription. No one can shut it down or change the rules. This is the most important AI skill in 2026 — knowing how to run AI on your own terms, not someone else's server.

Quick Reference: Best Models for Your Hardware

ModelVRAM NeededDownload SizeQuality TierBest ForCommand
Llama 4 Scout 8B6-8GB~5GBGoodEveryday chat, laptopsollama pull llama4-scout:8b
Qwen3 Coder 32B20-24GB~18GBExcellentCoding, reasoningollama pull qwen3:32b
DeepSeek V4 Flash8-12GB~8GBVery GoodGeneral purpose, fastollama pull deepseek-v4-flash
Gemma 3 12B8-10GB~7GBGoodLightweight, fastollama pull gemma3:12b
Qwen3 32B20-24GB~18GBExcellentBest overall qualityollama pull qwen3:32b
Laguna XS 2.1 (33B MoE)10-12GB~20GBVery GoodCoding, 3B active paramsollama pull laguna-xs:2.1

Step 1: Install Ollama (5 Minutes)

1

macOS

Download the DMG from ollama.com/download or use Homebrew. Ollama runs natively on Apple Silicon (M1-M4) with Metal acceleration:

brew install ollama

After installation, Ollama runs as a background service on localhost:11434. Verify with ollama --version — you should see v0.32.x or newer.

2

Linux

One command. Works on Ubuntu, Debian, Fedora, and Arch. Requires systemd:

curl -fsSL https://ollama.com/install.sh | sh

For NVIDIA GPUs: ensure you have CUDA drivers installed (driver 550+ for compute capability 5.0+). Verify with nvidia-smi. For AMD GPUs: ROCm support is available for RX 7000 series and newer.

3

Windows

Download the installer from ollama.com/download. Ollama runs natively on Windows 10/11 via WSL2 or as a standalone Windows app. The Windows app uses the NVIDIA CUDA driver directly — no Docker needed for GPU acceleration. After installation, Ollama runs as a system tray app on localhost:11434.

Step 2: Pull Your First Model (2-15 Minutes Depending on Size)

Open a terminal. Pull a model with one command. Download sizes range from 4GB to 20GB depending on the model. Ollama automatically selects the best quantization for your hardware:

# Best for laptops / 8GB VRAM ollama pull llama4-scout:8b # Best for 24GB VRAM / coding ollama pull qwen3:32b # Fast general-purpose, 12GB VRAM ollama pull deepseek-v4-flash
💡 No GPU? CPU-only works. Ollama runs on CPU-only at 5-10 tokens/sec (vs 50-120 on GPU). For CPU-only, use smaller models like Llama 4 Scout 8B or Gemma 3 12B. A modern laptop with 16GB RAM handles these comfortably. Set OLLAMA_NUM_THREADS=8 to match your core count for best CPU performance.
💡 Want to see what models you have? Run ollama list to see all downloaded models. Run ollama ps to see which models are currently loaded in memory. Run ollama rm model-name to free disk space by removing unused models.

Step 3: Install Open WebUI (5 Minutes)

4

Docker (Recommended)

If you have Docker installed, Open WebUI is one command. This pulls the latest image, mounts a persistent volume for your chat history and settings, and auto-restarts on boot:

docker run -d -p 3000:8080 \ --add-host=host.docker.internal:host-gateway \ -v open-webui:/app/backend/data \ --name open-webui \ --restart always \ ghcr.io/open-webui/open-webui:main

Open http://localhost:3000 in your browser. Create an admin account — this account is stored locally only, no external authentication. Open WebUI automatically detects Ollama running on your machine. Your models appear in the dropdown menu at the top of the chat interface. Select a model and start chatting.

5

Without Docker (Python/pip)

If you prefer pip or don't have Docker:

pip install open-webui open-webui serve

The pip installation includes all dependencies. It runs on Python 3.11+. Open WebUI detects Ollama automatically on localhost:11434.

Step 4: Explore Open WebUI's Full Feature Set

Open WebUI is far more than a chat interface. Here's what you unlock after the 30-minute setup:

📄 RAG — Chat with Your Documents

Upload PDFs, DOCX, text files, or entire codebases. Open WebUI indexes them locally using its built-in vector database (ChromaDB or Qdrant). Ask questions against your documents — everything stays on your machine.

🎙️ Voice Input & Output

Built-in Speech-to-Text via local Whisper models and Text-to-Speech via multiple engines. Hands-free conversation with your local AI. Video and voice calls supported.

🌐 Web Search Integration

Enable web search for real-time information beyond the model's knowledge cutoff. Supports SearXNG, Google PSE, Brave Search, and more. The model retrieves current info mid-conversation.

🔌 Functions (Plugin System)

Extend Open WebUI with Python functions — code execution, image generation via ComfyUI, API calls, database queries. Community functions available in the marketplace. Build custom tools that your AI can invoke.

🔄 Multi-Model Conversations

Switch models mid-conversation. Compare responses from different models side by side. Route specific types of queries to specialized models (coding → Qwen3 Coder, general → Llama 4 Scout).

👥 Multi-User with RBAC

Open WebUI supports multiple user accounts with role-based access control. Share your instance with family or teammates. Admins control which models each user can access.

Step 5: Advanced Configuration

6

GPU Layer Control

Control how many model layers run on GPU vs CPU. This is critical for models that exceed your VRAM — offload what fits on GPU, run the rest on CPU:

# Run with 20 layers on GPU, rest on CPU ollama run llama4-scout:8b --num-gpu 20 # See how many layers a model has ollama show llama4-scout:8b | grep layers
7

Context Length Extension

Default context is 2048 tokens. For document analysis or long conversations, increase it (at the cost of higher VRAM usage):

# Run with 32K context window ollama run llama4-scout:8b --ctx-size 32768
8

Access Your AI From Anywhere

Open WebUI runs on localhost by default. To access it from other devices on your network or remotely:

# Option 1: Tailscale (easiest, encrypted) tailscale up # Then access via https://your-machine.tailnet-name.ts.net:3000 # Option 2: Cloudflare Tunnel (free, no Tailscale needed) cloudflared tunnel --url http://localhost:3000 # Option 3: Local network only # Change Docker port mapping to 0.0.0.0:3000:8080

Hardware Recommendations — Every Budget

BudgetHardwareBest ModelSpeed (tok/s)Context
$0 (existing laptop)16GB RAM, CPU onlyLlama 4 Scout 8B5-102K-4K
$500-800RTX 3060 12GBQwen3 Coder 32B (partial GPU)20-408K-16K
$1,000-1,500RTX 4070 Ti 12GB / RTX 5070 12GBDeepSeek V4 Flash, Laguna XS2.150-8016K-32K
$1,500-2,500RTX 4090 24GB / RTX 5090 32GBQwen3 32B, Llama 4 Maverick80-12032K-128K
$5,000+Dual RTX 4090/5090 / A6000 48GBDeepSeek V4 Pro, Llama 4 Maverick100+128K+
💡 Apple Silicon: M2/M3/M4 Macs with 16GB+ unified memory run models exceptionally well via Metal (MPS). An M3 Max with 36GB RAM can run Qwen3 32B at 30-40 tok/s. Ollama automatically uses Metal on Apple Silicon — no configuration needed. The unified memory architecture means you can run larger models than equivalently-priced NVIDIA GPUs with dedicated VRAM.

FAQ

Can I really run this completely offline?
Yes — after the initial model download. Ollama and Open WebUI run entirely on your machine. No internet connection is required for inference. The only time you need internet is to download new models or update the software. Everything else — chat, file uploads, conversation history, RAG document querying — works offline. Voice features using local Whisper/TTS models also work offline. Web search is the only feature that requires internet.
How does this compare to ChatGPT or Claude?
Quality depends on the model you pull. Qwen3 32B rivals GPT-5.6 Luna on most reasoning and coding tasks. DeepSeek V4 Flash is competitive with Claude Sonnet 5 on analytical work. Llama 4 Scout 8B is comparable to GPT-5.6 Luna on everyday chat. The trade-off: local models are slightly weaker than the best frontier cloud models on extremely complex tasks, but you get unlimited usage, complete privacy, no censorship, and no per-token billing. For 90% of everyday AI use, the quality difference is negligible. For the remaining 10% that needs frontier intelligence, you can always use a cloud API for that specific query while keeping the rest local.
Can I use this on a Raspberry Pi?
Technically yes, but it will be very slow. A Raspberry Pi 5 with 8GB RAM can run very small models like Gemma 3 4B at 1-2 tokens/second. It's a fun experiment but not practical for daily use. For usable performance, you need at least 16GB RAM and ideally a GPU with 8GB+ VRAM. A used RTX 3060 12GB ($200-250 on the secondhand market) is the sweet spot for entry-level local AI.
Are there any content filters on local models?
No — that's one of the main reasons to run locally. Open-weight models (Llama, Qwen, DeepSeek, Gemma, Laguna) have no built-in content filters. Open WebUI does not add any. You get unrestricted access to the model. This is both a feature and a responsibility — use it wisely. For sensitive professional work (legal, medical, security research), the absence of censorship means the model will engage with questions that cloud providers block.
What if I run out of VRAM?
Ollama handles this gracefully. When a model exceeds available VRAM, Ollama automatically offloads overflow layers to system RAM/CPU. Performance drops but the model still runs. You can also use the --num-gpu flag to manually control how many layers stay on GPU. For persistent VRAM constraints, use quantized models (Q4_K_M versions use roughly half the VRAM of FP16 with minimal quality loss) or choose a smaller model from the reference table above.
How do I update Ollama and Open WebUI?
Ollama: ollama update (or re-run the install script on Linux, download the new installer on Windows/macOS). Open WebUI (Docker): docker pull ghcr.io/open-webui/open-webui:main && docker stop open-webui && docker rm open-webui, then re-run the docker run command. Your data persists in the mounted volume. Open WebUI (pip): pip install --upgrade open-webui. Check for updates monthly — both projects release frequently with new features and model support.

You Just Built Your Own Private AI — Here's Why It Matters

In 30 minutes, with two free open-source tools and zero dollars, you built a private AI assistant that rivals ChatGPT. Your data stays on your machine. No subscriptions. No censorship. No one can shut it down. The models are free, the tools are free, and the hardware is whatever you already own. More importantly: you now own your AI infrastructure. When cloud services raise prices, change terms, add censorship, or go offline — your AI keeps running. This is the most important AI skill to learn in 2026: knowing how to run AI on your own terms, not someone else's server. The models will keep improving, but the stack — Ollama + Open WebUI — is stable, mature, and will serve you for years.

◆

The Bottom Line

Ollama = The Enginev0.32. Downloads and runs models locally. macOS, Linux, Windows. One command: ollama pull. 126K+ GitHub stars.
Open WebUI = The InterfaceChatGPT-like UI with RAG, voice, web search, multi-model, Functions. Self-hosted. Active development.
Llama 4 Scout = Best Laptop8B params, ~5GB download. Runs on 8GB VRAM or 16GB CPU. Free, open-weight. Everyday AI companion.
Qwen3 32B = Best QualityRivals GPT-5.6 on reasoning and coding. Needs 24GB VRAM. Best free local model for professional work.

Related Posts

You run one terminal command, pull a model in under two minutes, open localhost:3000 in your browser, and type your first prompt into a ChatGPT-like interface that runs entirely on your own machine — no internet, no account, no subscription, no censorship.

You type ollama run and watch the model spin up, entirely offline, entirely yours.

🔬 Testing Methodology

Test period
7+ days of hands-on use
Pricing
Manually verified at time of writing
Affiliate
Some links may earn a commission — full disclosure