Skip to main content

Reference

The technical details behind every knob, endpoint, and configuration option.

Open WebUI is highly configurable. This section is the canonical source of truth for environment variables, API endpoints, network architecture, reverse proxy setups, and production monitoring. Whether you're tuning a single setting or architecting a multi-node deployment, start here.


โš™๏ธ Environment Variable Configurationโ€‹

Every flag, path, and secret Open WebUI reads at startup, in one place.

Over 200 environment variables control authentication, model routing, storage, logging, and more. Understand PersistentConfig behavior, troubleshoot ignored settings, and find the exact variable you need.

๐Ÿ” Authentication & signupENABLE_SIGNUP, ENABLE_LOGIN_FORM, WEBUI_ADMIN_EMAIL, OIDC/LDAP/SCIM
๐Ÿค– Model connectionsOllama, OpenAI, direct pipeline URLs, timeouts, load balancing
๐Ÿ’พ Storage & databasesSQLite, PostgreSQL, S3/GCS/Azure Blob, Redis
๐Ÿ“Š Logging & auditGLOBAL_LOG_LEVEL, JSON logging, audit log levels and paths
๐Ÿง  RAG & retrievalChunk size, overlap, embedding engines, reranking, vector DB selection

Browse all environment variables โ†’


๐Ÿ”Œ API Endpointsโ€‹

OpenAI-compatible and Anthropic-compatible APIs, plus RAG, file management, and Ollama proxy routes.

Open WebUI exposes a full REST API authenticated via Bearer tokens or JWTs. Use the same endpoints the web UI uses to build automations, chatbots, and custom integrations.

๐Ÿ’ฌ Chat completionsPOST /api/chat/completions, OpenAI-compatible
๐Ÿ”ฎ Anthropic messagesPOST /api/v1/messages, works with the Anthropic SDK and Claude Code
๐Ÿฆ™ Ollama proxy/ollama/api/*, passthrough to native Ollama endpoints
๐Ÿ“„ File & knowledgeUpload files, build knowledge collections, query via RAG
๐Ÿ”ง Filters & outletsInlet, stream, and outlet hooks for every request

Explore the API โ†’


๐Ÿ”’ HTTPS Configurationโ€‹

Terminate TLS in front of Open WebUI with Nginx, Caddy, or HAProxy.

Step-by-step reverse proxy configurations for securing your deployment with HTTPS. Each guide includes certificate handling, WebSocket support, and production-hardened settings.

๐ŸŸข NginxFull config with SSL termination, WebSocket proxying, and headers
โšก CaddyAutomatic HTTPS with minimal configuration
๐Ÿ”„ HAProxyEnterprise-grade load balancing with TLS offloading
โ˜๏ธ Cloudflare TunnelExpose Open WebUI securely without opening ports
๐Ÿ”’ TailscalePrivate encrypted access across your devices, no public exposure
๐Ÿงช ngrokInstant HTTPS tunnels for development and testing

Set up HTTPS โ†’


๐Ÿ”‘ API Keysโ€‹

Programmatic access to Open WebUI for scripts, bots, and integrations.

Generate personal access tokens that let external code call the same endpoints the web UI uses. Each key inherits the permissions of the user who created it.

๐Ÿ” Bearer token authStandard Authorization: Bearer header, works with any HTTP client
๐Ÿ›ก๏ธ Scoped to userKey inherits your role and group permissions
๐Ÿšซ Endpoint restrictionsOptionally limit which API routes a key can access

Set up API keys โ†’


๐Ÿ“Š Monitoringโ€‹

Observe your deployment with Uptime Kuma, OpenTelemetry, Prometheus, and Grafana.

Production monitoring guides covering health checks, model connectivity verification, distributed tracing, metrics, and structured logs. Integrate with your existing observability stack or set up a new one from scratch.

โœ… Health checksBasic, model connectivity, and deep health checks with Uptime Kuma
๐Ÿ“ก OpenTelemetryTraces, metrics, and logs piped to any OTLP-compatible backend
๐Ÿ“ˆ DashboardsPrometheus + Grafana for real-time system and model metrics

Set up monitoring โ†’


๐ŸŒ Network Diagramsโ€‹

See how Open WebUI, Ollama, and Docker communicate across different deployment topologies.

Visual C4 diagrams covering host networking, Docker Compose stacks, separate networks, and platform-specific differences. Useful for debugging connectivity issues or planning your architecture.

๐Ÿ–ฅ๏ธ macOS / WindowsHost Ollama, Compose stack, separate networks, host-network pitfalls
๐Ÿง LinuxSame topologies with Linux-specific networking behavior

View network diagrams โ†’