跳到主要内容Skip to main content
本地推理与部署Local Inference & Serving生产可用Production

Open WebUI

open-webui / open-webui

自托管 AI 聊天/工作台:接 Ollama 与 OpenAI 兼容 API,带 RAG、联网搜索、多用户权限与工具扩展。A self-hosted AI chat and workbench for Ollama and OpenAI-compatible APIs, with RAG, web search, multi-user permissions and tool extensions.

159.1k stars 23119 forks Svelte 语言Language NOASSERTION 许可License 最近推送Last push 2026-11-19

为什么选Why choose it

  • 一个界面接 Ollama、OpenAI 兼容 API 和多种模型后端;本地/内网部署,数据不离开自己的机器。A full chat UI rather than a raw API.
  • 内置 RAG、网页搜索、文档上传、多用户与 RBAC、工具/函数调用,适合团队内部知识库与模型网关。RAG, search and multi-user controls are built in.
  • 159k star、迭代快,Docker 一条命令起;比自己写聊天前端 + 权限 + RAG 省很多。Works with local and hosted model endpoints.

不适合Not for

自定义许可:BSD-3 基础 + Open WebUI 品牌条款;去掉品牌有用户数/商业授权条件,商用前读 LICENSE。You need a single-user desktop app with no server.
它不是推理引擎;吞吐、量化、GPU 调度还是交给 Ollama / vLLM / SGLang。You cannot manage accounts and data retention.

最小上手Minimum setup

  1. 用 Docker 起服务,先接一个 Ollama 或 OpenAI 兼容 endpoint,确认流式输出与模型列表。Run it with one local model and create two users.
  2. 开一个普通用户账号,上传一份 PDF 试 RAG,检查引用、权限与数据落盘位置。Upload a small document and test RAG citations.
  3. 再配联网搜索/工具与 RBAC,观察并发、日志、反向代理与备份。Check what traces and documents are stored before inviting others.

依赖与成本Dependencies and cost

Docker / Python;Ollama 或 OpenAI 兼容 API;向量库/嵌入模型;生产要反向代理、持久卷与备份。Check runtime, model weights and external service dependencies in the README.

许可与使用边界License and usage boundaries

自定义许可(BSD-3 基础 + 品牌条款):移除/替换 Open WebUI 品牌受用户数与商业授权限制,商用前读 LICENSE。Code is NOASSERTION; model weights, training data and generated content may have separate terms — check each before commercial use.

开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

替代与相邻Alternatives and neighbors

  • Text Generation WebUI — 本地优先Local-first,本地 LLM 的 Web 界面,支持 llama.cpp、Transformers、ExLlama 等后端,模型加载、角色对话与扩展都在一个页面里。A local LLM web UI supporting llama.cpp, Transformers and ExLlama backends, with model loading, chat and extensions on one page.
  • LocalAI — 本地优先Local-first,本地 OpenAI 兼容 API,支持文本、图像、语音等多模态后端。A local OpenAI-compatible API supporting text, image and speech backends.
  • Ollama — 先试这个Start here,一条命令拉模型、跑本地推理,自带模型库与 OpenAI 兼容 API。Pull and run local models with one command, with a built-in model library and an OpenAI-compatible API.

下一步Next steps

  • 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
  • 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.

GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare

快照口径:stars / forks / language / license / pushed_at 来自 GitHub API 2026-11-20 快照;之后的变化没有回写。标签与“适合 / 不适合”是编辑判断,不是 GitHub 元数据。Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
不背书:本站只做索引与风险提示,不审计代码、不保证安全、不替你做许可判断。仓库脚本与模型权重请自行审查。No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.