ArticleAutomation & toolsComputer5 min read

How to Add Web Search to Local AI on Windows and Linux in 2026 (Your Own SearXNG, Brave or Tavily Key)

Let a local AI model on your Windows or Linux PC search the web with built-in search, your own SearXNG server, or your Brave Search or Tavily key.

On this page
  1. What you need
  2. Your choices
  3. Step 1: Find the setting
  4. Step 2a: Point it at SearXNG
  5. Step 2b: Use a Brave Search or Tavily key
  6. Step 3: Ask something current
  7. Troubleshooting
  8. Privacy and cost
  9. FAQ
  10. Try it now
  11. Related

Your PC runs a local model well, but the model stops at its training date. Off Grid AI Desktop (OGAD) gives that model web search on Windows and Linux, so it can answer with this week’s facts and the links behind them. Searches work out of the box, and you can route them to your own SearXNG server or your own Brave Search or Tavily key. Download Off Grid AI Desktop. Web search is free.

What you need

  • A Windows 10 or Windows 11 PC, or a Linux PC that runs the .deb (Ubuntu 24.04 and its relatives) or the AppImage.
  • Off Grid AI Desktop 0.0.61 or later. The current release is 0.0.62. On Windows you can also install it from the Microsoft Store.
  • A chat model that calls tools. In the model picker it carries the wrench icon, labelled Calls tools.
  • Optional: a SearXNG server, or an API key from Brave Search or Tavily.
  • On Linux, only if you use a key: a running keyring (GNOME Keyring, KWallet or another Secret Service). The app stores keys there.
  • No Off Grid AI account. Web search is part of the free app.

Your choices

Choice What it needs Who sees your query
Built in Nothing (“Free. No account or key.”) DuckDuckGo Lite first, then Bing when its results match your words
Your SearXNG server A server address Your server, then the engines it asks
Brave Search API Your key from api-dashboard.search.brave.com Brave
Tavily Your key from app.tavily.com Tavily

Thirteen more keyed providers sit in the same list, including Exa, Serper, Kagi, Perplexity and Mojeek. Each one keeps its own key.

Step 1: Find the setting

  1. Click Settings in the sidebar, open the Model settings card, and click Tools. From a chat, the gear icon labelled Settings opens the same drawer; pick its Tools tab.
  2. Make sure Enable tools is on.
  3. Scroll to Web search: “Where searches go when a model looks something up.”

A new install has Built in selected, so search already works. The steps below are for your own provider.

Step 2a: Point it at SearXNG

SearXNG is a free, open-source search engine you host. It queries other engines for you and returns the combined results.

On Linux, with Docker installed:

docker run -d --name searxng -p 8080:8080 searxng/searxng

On Windows, run the same command in PowerShell with Docker Desktop installed, or run SearXNG inside WSL.

OGAD reads SearXNG’s JSON results, and SearXNG serves only HTML until you allow JSON. Edit settings.yml (in /etc/searxng/ inside the container) and list both formats under search::

search:
  formats:
    - html
    - json

Restart the container. Then in OGAD:

  1. Click Your SearXNG server (“Private search on a server you run.”).
  2. In Server address, type http://localhost:8080. Keep the http://. An address without a scheme gets https:// added, and a local SearXNG does not answer on it.
  3. Click Test. You should see Works.

A SearXNG on a home server works too. Type its network address, such as http://192.168.1.40:8080.

Step 2b: Use a Brave Search or Tavily key

  1. Click Brave Search API or Tavily.
  2. Paste the key into API key.
  3. Click Test. The key is saved, only that provider is asked, and the result reads Works.

The field then shows “Key saved on this device”, with Replace key and Remove key. The key never comes back to the screen.

Whatever you pick, the note “If it does not answer, the built-in search steps in.” applies. A key that ran out or a server that’s down doesn’t leave the model blind.

Step 3: Ask something current

Start a new chat and ask a question that needs today’s web.

For example, you keep a SearXNG container on the Ubuntu box under your desk and run a tool-calling model on your Windows laptop. Set the laptop’s Server address to the box, http://192.168.1.40:8080, and ask “Which NVIDIA driver is current for Linux, and what did it fix?” The model searches, SearXNG gathers results, and the answer comes with links. Paste one link and say “read this page”: OGAD offers the model its page reader for addresses, so it reads the page instead of searching again.

To keep one question offline, say so. “Answer without searching online” makes chat stop offering the web tools for that request.

Troubleshooting

A failed Test shows Did not answer and the reason.

Symptom Check Fix
“the key or server refused the request” (SearXNG) JSON allowed in settings.yml? Add json under search: formats:, restart
“could not reach it” Address has http:// and the right port? Container running? docker ps; on Windows, allow port 8080 through the firewall for a server on another PC
“no answer in time” Is the server slow or asleep? Wake it, or switch to Built in
Key won’t stay saved on Linux Is a keyring running? Start GNOME Keyring or KWallet, then paste the key again. On Hyprland or Sway, see the keyring guide
Model never searches Calls tools icon on the model? Enable tools on? Pick a tool-calling model, turn tools on

Privacy and cost

  • Your chats stay on your PC. A search sends the query your model wrote, and nothing else from the chat, to the provider you chose.
  • Built in asks DuckDuckGo Lite first, then Bing, then Brave’s results page. No key, no cost.
  • Your SearXNG server keeps queries on your server, and the engines it asks see that server, not your PC.
  • Brave Search API, Tavily and the other keyed providers see queries under your own account and bill you directly, if at all.
  • Keys are encrypted by Windows on Windows and by your keyring on Linux, one per provider.

Your model runs on your PC without internet. Search is the one step that needs a connection.

FAQ

How do I add web search to a local LLM on Windows?

Install OGAD, pick a model with the Calls tools icon, and keep Enable tools on. Search uses Built in with no setup. For your own provider, open Settings > Model settings > Tools > Web search.

Does SearXNG work with local AI on Linux?

Yes. Run SearXNG in Docker, allow JSON in its settings.yml, then choose Your SearXNG server and enter http://localhost:8080.

Is web search free?

Yes, in OGAD. A paid plan from Brave, Tavily or another provider is billed by that provider.

Why does my Linux PC forget my Brave key?

OGAD stores keys in your system keyring. On desktops without one running, such as a bare Hyprland or Sway session, there is nowhere safe to put it. Start a keyring and save the key again.

Can I use the same setup on my phone?

Off Grid AI Mobile has the same choices. See web search on Android and on iPhone.

Try it now

Download Off Grid AI Desktop for Windows or Linux, load a model that calls tools, and ask it what happened this week.

DID THIS LAND?
UPDATES FROM THE CREATOR