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

2026-12-03来源 dev.toEnglish
How to Add Web Search to Local AI on Your iPhone in 2026 (Your Own SearXNG, Brave or Tavily Key)

Your iPhone can run a capable AI model with your chats kept on the phone. Off Grid AI Mobile (OGAM) adds the one thing that model lacks, which is today. Switch on Web search and the model looks things up when your question needs current facts. Search is built in and free, or you can point it at your own SearXNG server or a Brave Search or Tavily key, stored in your iPhone's Keychain.

Download Off Grid AI Mobile · Get OGAM on the App Store

Off Grid AI Mobile

What you need

  • An iPhone on iOS 17 or later, with OGAM 0.0.129 or later.
  • A downloaded chat model that can call tools. In the composer, a model that can't shows N/A next to Tools.
  • Wi-Fi or mobile data while the model searches.
  • Optional: your SearXNG server's address, or a Brave Search or Tavily API key.
  • Nothing to pay. Web search is in the free app, with no account.

Turn the tool on

  1. In any chat, tap the gear icon in the message box. VoiceOver reads it as Chat options.
  2. Tap Tools.
  3. Check that Web search and Read a web page are switched on. A new install has both on.

The line under Web search names the provider it uses. It starts as Built in, which searches DuckDuckGo Lite first and moves to Bing or Brave's results page only when an earlier engine gives nothing useful. For many people that's the whole setup.

Pick your own provider

Tap the name Web search to open its settings. The screen reads "Where searches go when a model looks something up." Tap one:

  • Built in: "Free. No account or key."
  • Your SearXNG server: "Private search on a server you run."
  • Brave Search API: "Your key from api-dashboard.search.brave.com."
  • Tavily: "Your key from app.tavily.com."

Below those are more key-based services, including Exa, Serper, Kagi, Perplexity, SerpApi and Mojeek. A tap switches provider straight away.

Adding a SearXNG server

Type the address in Server address with its scheme and port, for example http://192.168.1.20:8888. Without a scheme the app assumes https://. If you paste an address that ends in /search, the app trims it for you.

The first time OGAM talks to a server on your Wi-Fi, iOS asks to let Off Grid AI find and connect to devices on your local network. Tap Allow. Without it, your iPhone blocks the request and the test can't reach your server.

Adding a Brave or Tavily key

Paste the key into API key. The field hides what you type. Tap Test and the app stores the key in the iOS Keychain, set so it can be read only while your iPhone is unlocked. The key stays out of the app's settings and backups. After that the field shows Key saved on this device, with icons to Replace key and Remove key.

Each provider gets its own Keychain entry, so a Brave key and a Tavily key can both sit there while you try them side by side.

Test it

Tap Test. It sends one search to the provider you picked, and only that one. You get Works, or Did not answer with a reason such as "could not reach it" or "a bot check".

While your own provider is selected, the screen also says "If it does not answer, the built-in search steps in." So a typo in the address or an expired key slows a search down but doesn't stop it.

Use it in a chat

Ask the way you'd ask a person. The model calls Web search when it needs to, and Read a web page when a result needs a closer look. Paste a link and ask "What does this article say about battery life?" and it reads that page.

For example, you're packing for a trip and want to know whether a new UK entry rule affects you. Ask "Do I need an ETA to visit the UK from Canada this month, and how much does it cost?" With Brave selected, the model searches through your Brave key, can open the official page when the snippets aren't enough, and answers in plain words. The conversation itself stays in OGAM on your iPhone.

Fix common problems

Symptom Check Fix
Tools shows N/A Your model can't call tools Choose a model that can. See how to pick the best local AI model on your iPhone
SearXNG test: "could not reach it" Local Network access is off for Off Grid AI Open iPhone Settings > Privacy & Security > Local Network and turn on Off Grid AI
SearXNG test: "the key or server refused the request" SearXNG only answers JSON when its settings allow it Add json under search: formats: in settings.yml, restart SearXNG, test again
Brave or Tavily test: "the key or server refused the request" Key copied with a missing character, or revoked Tap Replace key, paste a fresh key, tap Test
The model guesses instead of searching Too many tools on, or Web search off Turn Web search on and switch off tools you don't use

Who sees what

Your chats and the model stay on the iPhone. What leaves is the search query, to the provider you chose. Built in sends it to DuckDuckGo, then Bing or Brave if needed. Your SearXNG server sees it, then passes it to whichever engines you set up there. Brave and Tavily see it under their own terms. A page opened with Read a web page is fetched by your iPhone.

Built-in search and SearXNG cost nothing in OGAM. Brave and Tavily bill on their own plans.

FAQ

Can a local AI on iPhone search the web?

Yes. In OGAM the model runs on your iPhone and calls a web search tool when a question needs it. Chat still works with no connection; searching needs one.

Is my search API key safe on my iPhone?

OGAM keeps it in the iOS Keychain, readable only while the phone is unlocked, and never in app settings or backups. Remove key deletes it from the Keychain.

Can I reach my home SearXNG server from my iPhone on the go?

Yes, if your iPhone can reach it. Put both on a private network such as Tailscale, or give the server a public HTTPS address.

Is it different on Android?

The screens are the same. On Android the key is kept in Android Keystore. See the Android guide. The Mac version is here.

Related

Get Off Grid AI Mobile for iPhone, open Tools, and ask it what changed this week.

原文:https://www.a8q9.cn/en/article/how-to-add-web-search-to-local-ai-on-your-iphone-in-2026-your-own-searxng-brave--f16a83.html

相关文章