惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
WordPress大学
WordPress大学
小众软件
小众软件
IT之家
IT之家
腾讯CDC
月光博客
月光博客
量子位
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Open WebUI: Your Local ChatGPT
Lingdas1 · 2026-05-24 · via DEV Community

Lingdas1

Open WebUI: Your Local ChatGPT

Transform your local LLM into a beautiful, full-featured web interface — like ChatGPT, but running entirely on your machine.

What Is Open WebUI?

Open WebUI is a self-hosted web interface for Ollama. It gives you:

  • 🖥️ A ChatGPT-like chat interface in your browser
  • 🔄 Switch between models mid-conversation
  • 📁 Upload documents and chat with them (RAG)
  • 🖼️ Image generation (via Automatic1111 / ComfyUI)
  • 🎤 Voice input / text-to-speech
  • 👥 Multi-user support (share with family or team)
  • 📱 Mobile-friendly (works on phone browsers)
  • 🔌 Plugins for images, web search, and more

Best of all: It connects to your local Ollama instance — no data ever leaves your machine.


Prerequisites

  • ✅ Ollama installed and working (see Getting Started)
  • ✅ At least one model pulled (e.g., qwen2.5:7b)
  • ✅ Docker installed (recommended) OR Python 3.11+

Option A: Install with Docker (Recommended — 2 Minutes)

Docker is the easiest way. One command and you're done:

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

Enter fullscreen mode Exit fullscreen mode

What this does:

  • -p 3000:8080 — makes it available at http://localhost:3000
  • -v open-webui:/app/backend/data — keeps your chats saved even if you restart
  • -e OLLAMA_BASE_URL — tells it where your Ollama is running
  • --restart always — auto-starts when your computer boots

Verify It's Running

# Check logs — you should see "Application startup complete"
docker logs open-webui --tail 20

Enter fullscreen mode Exit fullscreen mode

Then open http://localhost:3000 in your browser.

First time? Create an account. Don't worry — it's local only. Your data stays on your machine.


Option B: Install with pip (No Docker)

If you don't have Docker:

# Install
pip install open-webui

# Run
open-webui serve

Enter fullscreen mode Exit fullscreen mode

Then open http://localhost:8080.


What You'll See

After logging in, Open WebUI looks and feels like ChatGPT:

Open WebUI Interface

Key areas:

Area What It Does
Chat panel (left) Your conversation history
Model selector (top) Switch between all your downloaded models
Chat input (bottom) Type your message
Paperclip icon Upload documents
Settings gear Configure model parameters, RAG, voice

Cool Things to Try

1. Switch Models Mid-Chat

In the top dropdown, you can switch models during a conversation. Each model sees the same chat history.

  • Start with qwen2.5:7b for general chat
  • Switch to deepseek-r1:14b when you need hard reasoning
  • Switch to codellama for code tasks

2. Upload Documents (Built-in RAG)

Click the paperclip icon and upload a PDF, Word doc, or text file. The model can then answer questions about it.

Use cases:

  • Upload a research paper and ask questions
  • Upload your company's handbook
  • Upload a textbook chapter for study help

3. Use Voice Input

Click the microphone icon to speak instead of type. This works in Chrome and Edge.

4. Customize the Model's Behavior

In Settings → Model, you can adjust:

  • Temperature: 0.2 (precise) to 1.0 (creative)
  • Context length: How much the model remembers
  • System prompt: The model's persona

Advanced: Connecting to Other Services

Image Generation

Open WebUI can integrate with local image generators:

# Add Automatic1111 (Stable Diffusion)
docker run -d \
  -p 7860:7860 \
  -v sd-models:/models \
  --gpus all \
  asd/stable-diffusion-webui:latest

Enter fullscreen mode Exit fullscreen mode

Then configure in Open WebUI Settings → Image Generation.

Web Search (Experimental)

Enable web search in Settings → Web Search. Open WebUI will search the internet when answering questions.


Production Setup

With HTTPS

For secure remote access (behind a VPN or tunnel):

# Using Caddy as a reverse proxy
docker run -d \
  -p 443:443 \
  -v open-webui:/app/backend/data \
  -e OLLAMA_BASE_URL=http://ollama:11434 \
  -e WEBUI_SECRET_KEY=your-secret-here \
  --name open-webui \
  ghcr.io/open-webui/open-webui:main

Enter fullscreen mode Exit fullscreen mode

Multi-User Setup

Open WebUI supports multiple users out of the box. Each user:

  • Gets their own chat history
  • Can't see other users' chats
  • Can choose from any model you've pulled

To add users: Go to Settings → Admin Panel → Users → Create User.


Troubleshooting

Problem Cause Fix
"Connection refused" Ollama not running Start Ollama first: ollama serve
Blank page at localhost:3000 Container not started docker start open-webui
"No models available" No models pulled ollama pull qwen2.5:7b
Slow document Q&A Embedding model not loaded First doc upload takes extra time to load embeddings
Port 3000 already in use Another service using it Change port: -p 8080:8080 and use http://localhost:8080
Container won't start Docker not running Start Docker Desktop or Docker daemon

Resources


Next step: Now that you have a GUI, try setting up Local RAG — let your LLM answer questions about your own documents.

Part of the Local LLM Guide — the definitive resource for running AI on your own hardware.