# Features:
# • Starts Open-WebUI inside a detached screen session
# • Automatically detects and uses a free port if 3000 is occupied
# • Proper health check: waits until the web UI is fully loaded
# (port listening + valid HTTP/HTML response)
# • Opens Firefox automatically when the server is ready
# • Option to stop or restart if server is already running
# • Clean, user-friendly console output
#
# Usage:
# ./owui → Start (or manage) Open-WebUI
# ./owui → If running: offers stop/restart
#
# Requirements:
# • Open-WebUI installed in ~/.open-webui
# • venv environment with open-webui package
# • screen, curl, ss, firefox installed
This script was created and published free of charge for the open source community. If you find it useful and would like to support future development, consider making a small donation:
Bitcoin (BTC): 33AXe8Z8XBuGKx9eHHmGnvbawrNYjSgDcM
Ethereum (ETH): 0xa61d178EA84C2200A8617b51B4bCf98F87ff59Ff
Solana (SOL): BDf5EgsN8fRUicYzeM8cuaNhL7zdty2qsEj2mC2jA4Fm
Ripple (XRP): rLHzPsX6oXkzU2qL12kHCH8G8cnZv1rBJh
Cardano (ADA): addr1q8anur2wvvc6pv3cpp30vv05makyra8huh0lk0yhdk6hcnlrzr27g03klu862usxqsru794d03gzkk8n86ta34n85z0svn5ams
USTether (USDT): 0xa61d178EA84C2200A8617b51B4bCf98F87ff59Ff
Thank you for your support! 🙏
