Change Open WebUI Port | Generated by AI
To change the port when running Open WebUI using the open-webui serve command (typically after installing via pip), use the --port flag followed by your desired port number. The default port is 8080.
Steps:
- Ensure Open WebUI is installed:
pip install open-webui - Run the server on a different port (e.g., 3000):
open-webui serve --port 3000- This will make the WebUI accessible at
http://localhost:3000(or your server’s IP address with the new port). - Note: The
PORTenvironment variable is ignored when using theservecommand; you must use the--portflag instead.
- This will make the WebUI accessible at
If you’re using Docker instead of direct installation:
- Set the
PORTenvironment variable, e.g.,docker run -e PORT=3000 .... - Map the port externally with
-p <host_port>:3000(adjust as needed).
For full installation and configuration details, refer to the official documentation.
| [Environment Variable Configuration | Open WebUI](https://docs.openwebui.com/getting-started/env-configuration/) |
| [Quick Start | Open WebUI](https://docs.openwebui.com/getting-started/quick-start/) |