mirror of
https://github.com/open-webui/desktop.git
synced 2026-11-05 01:27:46 +00:00
[PR #279] feat(open-terminal): add serveOnLocalNetwork option #240
Labels
No labels
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/desktop#240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/desktop/pull/279
Author: @joaoquintas
Created: 10/10/2026
Status: 🔄 Open
Base:
main← Head:feat/open-terminal-serve-on-local-network📝 Commits (1)
5e53642feat(open-terminal): add serveOnLocalNetwork option to bind on all interfaces📊 Changes
4 files changed (+32 additions, -6 deletions)
View changed files
📝
src/main/utils/index.ts(+3 -1)📝
src/main/utils/open-terminal.ts(+10 -3)📝
src/renderer/src/lib/components/Main/Settings/OpenTerminal.svelte(+16 -2)📝
src/renderer/src/lib/i18n/locales/en-US/translation.json(+3 -0)📄 Description
Description
Adds a "Serve on local network" switch to Settings → Terminal (
openTerminal.serveOnLocalNetwork,default
false), mirroring the existinglocalServer.serveOnLocalNetworkoption.--host 0.0.0.0; otherwise127.0.0.1(unchanged default).portInUse()and the advertised URL stay on127.0.0.1, so the app's own client is unaffected and no0.0.0.0URL is exposed.8000when unset; the effective default is39284.Use case: the Desktop app connected to a remote Open WebUI server. Admin-level terminal connections are
proxied by the server backend, which cannot reach a loopback-bound terminal
(
Connect call failed ('127.0.0.1', 39284)).Testing (macOS, Apple Silicon, Node 22):
npm run typecheckpasses (0 errors).lsofshows*:39284with the switch on and
127.0.0.1:39284with it off. A remote Open WebUI 0.11.4 server executes terminaltool calls over VPN through an admin-level connection. Prettier was not applied because the touched files
do not conform on
main; the added lines follow the existing style to keep the diff minimal.Security note: when enabled, the terminal is reachable on every interface and protected only by its
API key. Users should restrict source addresses with a host firewall.
Related Issues
Closes #196
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.