How open-webui/desktop works
Open WebUI Desktop is an Electron desktop client that can launch a local Open WebUI server, optionally manage llama.cpp for offline inference, or connect to remote Open WebUI servers. The main workflow is setup or connection selection, connection activation, then rendering the server in the desktop interface. The README documents Spotlight, voice input, and background updates as additional capabilities. Some IPC and feature wiring is not visible in the excerpts, so those links are omitted or marked unverified.
Main entry points: Connections.svelte Connection manager · App.svelte App entry · Main.svelte Main interface · llamacpp.ts llama.cpp manager
Components 20
Desktop shell
- App entry
src/renderer/src/App.svelte - Main interface
src/renderer/src/lib/components/Main.svelte - Electron main process
src/main/index.ts - IPC bridge
src/preload/index.ts
Setup and connections
- Connection setup
src/renderer/src/lib/components/Setup/ConnectionManager.svelte - Connection manager
src/renderer/src/lib/components/Main/Connections.svelte - Connection content
src/renderer/src/lib/components/Main/Connections/Content.svelte - Connection sidebar
src/renderer/src/lib/components/Main/Connections/Sidebar.svelte
Local services
- Local installation
src/renderer/src/lib/components/Setup/LocalInstall.svelte - Open WebUI host
src/main/utils/index.ts - llama.cpp manager
src/main/utils/llamacpp.ts - Model downloads
src/main/utils/huggingface.ts - Service locking
src/main/utils/service-lock.ts - Settings
src/renderer/src/lib/components/Main/Settings/InferenceRuntime.svelte
Desktop features
- Spotlight chat
src/renderer/src/components/Spotlight.svelte - Voice input
src/renderer/src/components/VoiceInput.svelte - Background updates
src/main/updater.ts
Renderer state
- UI state
src/renderer/src/lib/stores.ts
Other components
- Desktop user
- Open WebUI server
Connections 22
- Desktop user → App entry: launches
README.md - App entry → Main interface: renders
src/renderer/src/App.svelte - Main interface → Connection manager: renders
src/renderer/src/lib/components/Main.svelte - Main interface → Settings: opens
src/renderer/src/lib/components/Main.svelte - Desktop user → Connection setup: adds server
README.md - Connection setup → IPC bridge: requests connection
src/renderer/src/lib/components/Setup/ConnectionManager.svelte - Connection manager → IPC bridge: requests connect
src/renderer/src/lib/components/Main/Connections.svelte - Connection manager → Connection sidebar: renders
src/renderer/src/lib/components/Main/Connections.svelte - Connection manager → Connection content: renders
src/renderer/src/lib/components/Main/Connections.svelte - Connection content → Local installation: offers setup
src/renderer/src/lib/components/Main/Connections/Content.svelte - Electron main process → Open WebUI host: starts server
src/main/index.ts - Electron main process → llama.cpp manager: manages runtime
src/main/index.ts - llama.cpp manager → Service locking: acquires lock
src/main/utils/llamacpp.ts - llama.cpp manager → Model downloads: downloads assets
src/main/utils/llamacpp.ts - Settings → IPC bridge: controls runtime
src/renderer/src/lib/components/Main/Settings/InferenceRuntime.svelte - Open WebUI host → Open WebUI server: serves locally
README.md - Connection manager → Open WebUI server: connects remotely
README.md - Connection manager → UI state: updates state
src/renderer/src/lib/components/Main/Connections.svelte - App entry → UI state: loads app state
src/renderer/src/App.svelte - Desktop user → Spotlight chat: summons chat
README.md - Desktop user → Voice input: dictates query
README.md - Background updates → Electron main process: integrates updates
src/main/index.ts