Ollama is the model runtime
Ollama manages model downloads, local execution and a programmatic API. Its resource needs are dominated by the model selected for inference.
Open WebUI is the application layer
Open WebUI adds browser-based conversations, user management and application data. It connects to Ollama or other compatible backends rather than replacing the model runtime.
Common deployment patterns
Security boundary
Keep the raw Ollama API private. Expose Open WebUI through HTTPS, control registration and use stable secrets and persistent storage.
Install the runtime with the Ollama Linux guide, then add the interface with the Open WebUI Docker guide.
Ollama 是模型运行时
Ollama 管理模型下载、本地运行和程序调用 API,其资源需求主要由实际用于推理的模型决定。
Open WebUI 是应用层
Open WebUI 提供浏览器对话、用户管理和应用数据,并连接 Ollama 或其他兼容后端,而不是替代模型运行时。
常见部署方式
安全边界
保持 Ollama 原始 API 仅内部访问。通过 HTTPS 对外提供 Open WebUI,并控制注册、使用固定密钥和持久化存储。
先按照 Ollama Linux 教程 安装运行时,再通过 Open WebUI Docker 教程 添加界面。