Out of the box, a local model in Open WebUI only knows what it learned in training. Turn on web search and it can look things up: today’s news, a library’s latest version, a product price, or the docs page you just pasted.
Open WebUI supports more than a dozen search providers, from DDGS, which needs no account at all, to hosted APIs like Tavily, Brave and Exa, to a self-hosted SearXNG.
The settings page can look intimidating, and “web search is on but the model never searches” is one of the most common Open WebUI complaints.
This guide explains the two parts of web search, gets you working in five minutes with DDGS, shows the self-hosted SearXNG route, turns on agentic search with search_web and fetch_url, and fixes the usual problems.
It follows Open WebUI’s official documentation as of late November 2026 (the docs reference Open WebUI v0.13.4).
- Two parts: a Web Search Engine finds links; a Web Loader reads the pages. Leave the loader on default to start.
- Fastest setup: Admin Settings > Web Search > turn on, pick DDGS, backend Auto (Random). No key needed.
- Best results: a hosted search API such as Tavily, Exa, Brave, Serper or Kagi, with an API key.
- Private: self-host SearXNG and enable the
jsonformat, or you get 403 errors. - Agentic search: enable the Web Search capability and default feature on the model, keep Function Calling on Native.
- Model will not search? Check all five gates, raise context to 16K+, or switch that model to Legacy.
How Web Search Works in Open WebUI
Open WebUI splits web search into two jobs, and knowing this saves a lot of confusion.
| Setting | Job | What the model gets |
|---|---|---|
| Web Search Engine | Finds pages for a query | A list of links with short previews |
| Web Loader Engine | Opens a link and extracts the text | The page’s actual content |
The docs call the loader a “web page reader”. It also handles links you paste into a chat with #, so its settings apply even when web search is off. You only need one search engine, and you can leave the loader at its default until something fails to load.
There are also two ways the model uses search:
- Native (agentic) mode, the default: the model decides when to call the
search_webtool, reads snippets, and can callfetch_urlto read a full page. - Legacy mode: Open WebUI runs the search itself before the model answers, then injects the relevant chunks using RAG.
Which Search Engine Should You Pick?
| Engine | Account / key | Cost | Best for |
|---|---|---|---|
| DDGS | None | Free | Getting started in minutes |
| SearXNG | None (self-hosted) | Free | Privacy and full control |
| Brave Search API | API key | Free tier and paid | Reliable independent index |
| Tavily, Exa | API key | Free tiers and paid | LLM-focused results; can also read pages |
| Serper, SerpApi, SearchApi | API key | Paid, with trials | Google-style results |
| Google PSE | API key and engine ID | Free quota then paid | Google results via official API |
| Kagi | API key | Paid | High-quality, ad-free results |
| Ollama Cloud Web Search | Ollama account | Depends on plan | If you already use Ollama’s cloud |
Open WebUI’s own advice is to start with a hosted search API built for LLM workflows for the strongest results. SearXNG is still useful for privacy, but its quality “depends heavily on its upstream engines, rate limits, and instance configuration”. Check each provider’s current pricing before you commit, as plans change often.
Quick Setup: DDGS (No Account)
DDGS (Dux Distributed Global Search) ships inside Open WebUI. There is nothing to install, no URL and no API key.
- Open the admin settings. Click your profile, go to Admin Panel > Settings > Web Search.
- Turn on Web Search.
- Choose DDGS as the Web Search Engine.
- Pick a DDGS Backend. Leave it on Auto (Random). Other options include Bing, Brave, DuckDuckGo, Google, Mojeek, Wikipedia, Yahoo and Yandex.
- Save and test in a new chat.
Why Auto? Each search picks a provider at random, so if one provider refuses automated requests, searching keeps working. A pinned backend can quietly return nothing, and a datacenter or shared IP is more likely to be refused than a home connection.
If you configure by environment variables, note a common trap: the engine value for DDGS is duckduckgo, not ddgs.
ENABLE_WEB_SEARCH=True
WEB_SEARCH_ENGINE=duckduckgo
# optional: pin one backend (Auto is safer)
# DDGS_BACKEND="google"
DDGS is not available on the slim Docker image, where its menu entry is disabled.
Setup with a Hosted Search API
Every hosted provider follows the same pattern:
- Create an account with the provider (for example Tavily, Brave or Exa) and copy your API key.
- Open Admin Panel > Settings > Web Search and turn Web Search on.
- Select the provider as the Web Search Engine.
- Paste the API key into the field that appears, plus any extra field (Google PSE also needs a search engine ID).
- Save and test.
Providers like Tavily and Exa can do both jobs, so you can also select them as the Web Loader for cleaner page extraction. On the Brave free tier, set concurrent requests to 1 to avoid rate limits; the Brave client already retries once after a 429.
Keep API keys out of screenshots and shared configs. If several people use your server, the provider bills every search to your key.
Self-Hosted Setup: SearXNG
SearXNG is a free metasearch engine that aggregates many search services without tracking users. Open WebUI’s docs include a community guide for running it in Docker. The short version:
- Clone the Docker setup:
git clone https://github.com/searxng/searxng-docker.gitandcd searxng-docker. - Set the hostname in
.env, for exampleSEARXNG_HOSTNAME=localhost. - Generate a fresh config: remove
searxng/settings.yml, then rundocker compose up -d ; sleep 10 ; docker compose down. - Enable JSON output. In
searxng/settings.yml, make the formats list includejsonas well ashtml. This step is essential. - Relax the limiter for local use with a
limiter.tomlas shown in the docs, so Open WebUI’s requests are not treated as bots. - Start it:
docker compose up -d. SearXNG is now athttp://localhost:8080. - Point Open WebUI at it. Choose searxng as the engine and set the query URL.
If Open WebUI runs in the same Docker Compose network, use the container name:
services:
open-webui:
environment:
ENABLE_WEB_SEARCH: True
WEB_SEARCH_ENGINE: "searxng"
WEB_SEARCH_RESULT_COUNT: 3
WEB_SEARCH_CONCURRENT_REQUESTS: 10
SEARXNG_QUERY_URL: "http://searxng:8080/search"
The JSON format block in settings.yml should look like this:
search:
formats:
- html
- json
If port 8080 is taken (Open WebUI itself often uses it), map SearXNG to another port. After the first run, the guide recommends adding cap_drop: - ALL back to the SearXNG service for security.
Turn On Agentic Search
Agentic search lets the model search, read a page, check facts and search again on its own. It needs a model with reliable tool calling.
Open WebUI’s docs say cheap, fast models are fine, and list local options such as Gemma 4 31B and Qwen 3.6 27B as meeting the bar; only old or very small models struggle.
- Configure a search engine globally, as above.
- Enable the capability. In Admin Panel > Settings > Models, edit your model and turn on the Web Search capability.
- Enable the default feature. In the same model settings, under Default Features, tick Web Search so the tools are available in new chats.
- Confirm Native mode. Under Advanced Parameters, make sure Function Calling is
Native, which is the default. - Raise the context length to at least 16K if the model runs on Ollama, because web pages are long.
In this mode, search_web returns titles, links and snippets with no vector database involved, and fetch_url returns a page’s full text up to the limit you set.
If you manage settings by environment variables, the global default is DEFAULT_MODEL_PARAMS: '{"function_calling": "native"}'; there is no separate FUNCTION_CALLING_MODE variable. For background on why tool calling matters with local models, see our Ollama tool calling guide.
Using Web Search in a Chat
- Per chat: click the Web Search toggle in the message input (under the “+” or integrations menu, depending on version) to turn it on for that conversation.
- Read a specific page: type
#followed by a URL to attach that page as context. - Always on: in Settings > Interface, setting Web Search in Chat to Always searches on every message, even if you switch the chat toggle off. Set it back to Default for per-chat control.
- Check citations: answers that used search show the sources underneath. Open them to verify important facts.
Web search pairs well with documents. Use Open WebUI knowledge bases for your own files and web search for anything current.
Settings Worth Changing
| Setting / variable | What it does |
|---|---|
WEB_SEARCH_RESULT_COUNT |
How many results to fetch. Also caps the count a model can request. |
WEB_SEARCH_CONCURRENT_REQUESTS |
Parallel requests to the search engine. 0 means unlimited; use 1 for strict free tiers. |
WEB_LOADER_CONCURRENT_REQUESTS |
Parallel page fetches, default 10. |
WEB_LOADER_ENGINE |
Default, playwright for JavaScript-heavy sites, or firecrawl/tavily for better extraction. |
| Fetch URL Content Length Limit | Caps the characters fetch_url returns, so one long page does not overflow the context. |
| Domain Filter List | Restrict or exclude domains from results. |
| Web Search Confirmation | Asks users “Use Web Search?” before a query leaves your server. |
WEB_SEARCH_TRUST_ENV |
Lets the page loader use your http_proxy/https_proxy. On by default. |
These are persistent settings. Environment variables only seed the first value; once you save a change in the admin panel, the saved value wins. If a variable seems to be ignored, check the admin page.
Playwright needs its own browser: the Docker image does not include Chromium, so set WEB_LOADER_ENGINE=playwright as an environment variable and restart, or provide a Playwright WebSocket URL. For v0.13.4, the docs say to use Playwright 1.60.x to avoid 428 Precondition Required errors.
Troubleshooting
The model says the search tool is unavailable, or never searches
This is usually not the search engine.
The tool is only offered when all five gates are open: web search is on globally, on for that model, the model’s builtin tools include web search, the chat toggle is on, and the user’s group has the features.web_search permission.
Function Calling must not be Legacy for the native tools. If everything is correct and a small local model still answers “I don’t have real-time access”, switch that model to Legacy, where Open WebUI runs the search itself, or use a stronger tool-calling model.
403 Forbidden from SearXNG
The JSON format is not enabled. Add json under search: formats: in settings.yml and restart SearXNG.
SearXNG returns nothing, with no error
Its upstream engines are probably blocking it with CAPTCHAs or rate limits. Check the SearXNG log, run the same query in the SearXNG web interface, and disable failing engines or enable others.
DDGS returns nothing
If you pinned a backend, switch back to Auto (Random) before changing anything else.
Results appear but page content is empty
A site can show up in search but block tools from reading it. Raise the model’s context to 16K or more (Ollama’s default on GPUs under 24 GB is 4,096 tokens), try the playwright loader for JavaScript sites, or set a browser-like USER_AGENT if large publishers return 403s.
“None of the web search results could be loaded” behind a proxy
Turn on Trust Proxy Environment in Admin Settings > Web Search, or set WEB_SEARCH_TRUST_ENV=True. If only the proxy can resolve names, you also need ENABLE_LOCAL_WEB_FETCH=True.
Intranet results are skipped
Open WebUI blocks private and loopback addresses by default, logged as Blocked non-global address. ENABLE_LOCAL_WEB_FETCH=True allows them, but lets every user reach internal addresses through your server.
Searches time out
Set WEB_SEARCH_CONCURRENT_REQUESTS=1, lower loader concurrency, and confirm the server can reach both the search engine and the result sites.
FAQ
Is Open WebUI web search free?
Yes with DDGS or a self-hosted SearXNG. Hosted APIs like Tavily, Brave or Serper have their own free tiers and paid plans.
Which search engine gives the best results?
Open WebUI recommends hosted APIs built for LLMs, such as Exa, Tavily, SearchApi, Serper, SerpApi, Brave or Kagi, for the strongest results.
Does web search work with Ollama models?
Yes. Use a recent model with good tool calling and raise its context length. Ollama also has its own web search API, which Open WebUI supports as a provider.
Is my search query private?
Your query goes to whichever provider you choose. For maximum privacy, self-host SearXNG. Admins can also require a confirmation before any query is sent.
Why does my model search on every message?
Web Search in Chat is set to Always in Settings > Interface. Change it to Default.
Do I need Playwright?
No. The default loader handles most sites. Playwright helps with JavaScript-heavy pages but needs a Chromium browser set up.
My settings changes are ignored after editing the .env file
Saved admin panel values override environment variables. Change the value in Admin Settings, or reset it there. Our update Open WebUI guide covers keeping your install current.




