#How to set up web search
1 messages · Page 1 of 1 (latest)
Web search setup is usually one of these three things: missing API key, tool not allowlisted, or the gateway service isn’t seeing your env vars.
Can you paste (1) your openclaw --version and (2) the exact error text you’re seeing?
In the meantime, here’s the “known-good” checklist for web_search:
- Configure web search (recommended path)
openclaw configure --section web
openclaw gateway restart
- Make sure you actually have a search API key
web_searchneeds a key (Brave/Gemini/Grok/Kimi/Perplexity).web_fetchdoes not need a key.
- If you’re running the gateway as a service, put the key in
~/.openclaw/.env
Service runs often don’t inherit your shell env. Example:
BRAVE_API_KEY=...
Then:
openclaw gateway restart
- If you use tool allowlists, allow web tools
Make sure your agent has eithergroup:weborweb_search/web_fetchintools.allow(notweb.fetch/web.searchetc).
FAQ section (includes a config snippet + key names):
https://docs.openclaw.ai/help/faq#how-do-i-enable-web-search-and-web-fetch
If you paste: