[Unit] Description=OpenWebUI Service After=network.target [Service] User=%i WorkingDirectory=/home/amr/open-webui # Replace with OpenWebUI's directory ExecStart=/usr/bin/python3 /home/amr/.local/bin/open-webui # Replace with the actual startup command Restart=on-failure RestartSec=5 Environment=PYTHONUNBUFFERED=1 # optional: helps with logging [Install] WantedBy=default.target