Enable Web Search for Your OpenClaw Agent
Give your agent access to up-to-date information. No more relying on training data alone.
Overview
Web search lets your OpenClaw agent answer questions about the real world—news, weather, stocks, facts—instead of relying only on its training data. OpenClaw supports several providers: Brave, Perplexity, Gemini, Grok, and Kimi. Pick one and add your API key.
01. Choose a provider and get an API key
OpenClaw supports these web search providers:
- Brave Search API (recommended, free tier)
- Perplexity API
- Gemini
- Grok
- Kimi
Brave: choose "Data for Search" (not "Data for AI"). Gemini uses GEMINI_API_KEY, Grok uses XAI_API_KEY, Kimi uses KIMI_API_KEY or MOONSHOT_API_KEY.
02. Send the prompt to your agent
Open your Telegram or Slack chat with your OpenClaw agent and send one of these:
Brave:
Configure web search using Brave. My Brave Search API key is: [paste your key here]
Perplexity:
Configure web search using Perplexity. My Perplexity API key is: [paste your key here]
Gemini:
Configure web search using Gemini. My Gemini API key is: [paste your key here]
Grok:
Configure web search using Grok. My XAI API key is: [paste your key here]
Kimi:
Configure web search using Kimi. My Kimi API key is: [paste your key here]
Fallback (if the agent doesn't understand): Use config to set tools.web.search with provider [brave|perplexity|gemini|grok|kimi] and my API key [your key]. Enable web search.
Pro tip
You can copy this entire tutorial and send it to your agent. Your agent will walk you through the setup step by step.
Source: InstantClaw · View online
Top comments (0)