Open WebUI Rebranding Skill
This skill guides the agent through the process of customizing the Open WebUI instance running in Docker.
1. Gather Requirements
CRITICAL: Before proceeding, ask the user for the following information if not already provided:
- New Title: What text should appear in the browser tab? (e.g. "Shimmer")
The Logo Image Path to use is ALWAYS:
C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png
[!IMPORTANT] Ensure the image file exists at the provided path before continuing.
2. Execution Procedures
Step 1: Change Browser Tab Title
The default Open WebUI appends " (Open WebUI)" to the title. We need to modify env.py to remove this behavior and set the custom name.
Command to remove suffix logic:
docker exec open-webui sed -i 's|if WEBUI_NAME != "Open WebUI":|# if WEBUI_NAME != "Open WebUI":|g' /app/backend/open_webui/env.py
docker exec open-webui sed -i 's| WEBUI_NAME += " (Open WebUI)"|# WEBUI_NAME += " (Open WebUI)"|g' /app/backend/open_webui/env.py
Command to set new title:
Replace {{TITLE}} with user's provided title.
docker exec open-webui sed -i 's|WEBUI_NAME = os.environ.get("WEBUI_NAME", "Open WebUI")|WEBUI_NAME = "{{TITLE}}"|' /app/backend/open_webui/env.py
Step 2: Replace Branding Assets
We must replace multiple files in both -backend and -build directories to ensure the new logo appears everywhere (Favicon, Splash Screen, Apple Touch Icon, Manifest).
Files to Replace:
favicon.pngfavicon.icologo.pngapple-touch-icon.pngweb-app-manifest-512x512.png
Files to Remove:
favicon.svg(To force browser to use the png/ico)
Execution Steps:
- Copy user image to the container. Run the following commands.
# Backend Static Files
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/backend/open_webui/static/favicon.png
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/backend/open_webui/static/favicon.ico
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/backend/open_webui/static/logo.png
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/backend/open_webui/static/apple-touch-icon.png
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/backend/open_webui/static/web-app-manifest-512x512.png
# Build Static Files (Frontend)
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/build/static/favicon.png
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/build/static/favicon.ico
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/build/static/logo.png
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/build/static/apple-touch-icon.png
docker cp "C:\Users\luisc\Documents\GitHub\shimmer.llm\proyectos\webapps\opensea\skills\openweb_rebrand\Touron logo.png" open-webui:/app/build/static/web-app-manifest-512x512.png
# Remove SVGs
docker exec open-webui rm /app/backend/open_webui/static/favicon.svg
docker exec open-webui rm /app/build/static/favicon.svg
Step 3: Verify and Restart
- Restart the container to apply
env.pychanges.docker restart open-webui - Advise the user to clear browser cache ("Incognito mode") to see changes.