How do I enable web search and web fetch

web_fetch works without an API key. web_search requires a Brave Search API key. Recommended: run openclaw configure --section web to store it in tools.web.search.apiKey. Environment alternative: set BRAVE_API_KEY for the Gateway process.
{
tools: {
web: {
search: {
enabled: true,
apiKey: "BRAVE_API_KEY_HERE",
maxResults: 5,
},
fetch: {
enabled: true,
},
},
},
}
Notes:
If you use allowlists, add web_search/web_fetch or group:web.
web_fetch is enabled by default (unless explicitly disabled).
Daemons read env vars from ~/.openclaw/.env (or the service environment).
Docs: Web tools.