Note
This is a quick copy-paste-observe guide for people in a hurry to quickly set up Open-WebUI such that one can run and access a local Large Language Model (LLM) as a web application similar to OpenAI's ChatGPT.
Tip
This setup is recommended if your GPU hardware specifications falls below what is the typical minimum 64000 token context window required for agentic coding. Eg. Nvidia Geforce RTX 3060 with 12GB VRAM.
- Install Ollama using the command below:
curl -fsSL https://ollama.com/install.sh | sh- Install Open-WebUI via docker using the command below:
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainIf you wish to utilise a Nvidia GPU, use the command below instead:
docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda- Download ollama LLM model by using the command below:
ollama pull <model_name>
#Eg. ollama pull qwen3:8bWarning
Note that, if you use any models with the cloud tag, it means it would not be fully local as it would be using Ollama's cloud models.
- Access Open-WebUI via its dashboard:
Dashboard Link: http://localhost:3000
Note
Note that you can access it from an external network device via http://<SERVER_IP_ADDR>:3000.
- Ollama Installation - https://ollama.com/
- Open-WebUI Installation - https://github.com/open-webui/open-webui
Enable Web Search using SearXNG π
Note
This is to avoid using proprietary Search Engine APIs where cost can easily go un-tracked and ballooned to staggering heights πΈπΈπΈ .
Using SearXNG, while requiring additional setup, allows for free and audit-able search actions.
Instructions π
Create workspace for SearXNG:
Create
settings.ymlin the directory,searxng:Deploy SearXNG:
docker run -it -d \ --name searxng_c \ --restart unless-stopped \ -p 8069:8080 \ -v $(pwd)/settings.yml:/etc/searxng/settings.yml:ro \ searxng/searxngConfigure π§
Set the following properties in Open-WebUI, as seen in the screenshot below:
Web Search Engineis set tosearxng.Bypass Web Loaderis enabled.Note
The web loader is needed to bypass in order to avoid
No sources givenruntime error.Searxng Query URLto the right url as seen in the screenshot.Note
The Query URL may vary based on your setup but it should be as in the screenshot if you have set up the SearXNG docker above as instructed.
Verify βοΈ
After setting up SearXNG docker, use the command below to verify it is working.
curl "http://localhost:8069/search?q=python&format=json"After configuring in Open-WebUI, follow the steps below to verify that Open-WebUI can do web searches using SearXNG:
Create new Chat.
Toggle Web Search enabled for the Chat.
Enter the following prompt:
Search the web and tell me what is the latest exchange rate between SGD and Malaysia Ringgit. State the reference source link.References π