How to Add Google Search to OpenClaw

OpenClaw is a great local AI agent, but out of the box it has no way to look things up on the web. If you ask it about something recent, it can only work from its training data. Adding Google Search changes that.

Why This Matters

Most interesting questions involve something time-sensitive: current prices, recent news, documentation for a library that just released a new version. Without web search, your OpenClaw bot has to guess or admit it doesn’t know. With Google Search available, it can look things up and give you a real answer.

The usual approach is to sign up for a search API, grab a key, and figure out how to wire it into your agent config. AgentPatch skips most of that. You connect AgentPatch once and your agent gets access to Google Search — plus everything else on the marketplace — without managing a separate search API key.

Setup

Add AgentPatch to ~/.openclaw/openclaw.json:

{
  "mcp": {
    "servers": {
      "agentpatch": {
        "transport": "streamable-http",
        "url": "https://agentpatch.ai/mcp",
        "headers": {
          "Authorization": "Bearer YOUR_API_KEY"
        }
      }
    }
  }
}

Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard. Restart OpenClaw and it discovers all AgentPatch tools automatically.

Example

You’re chatting with your OpenClaw bot on Telegram and ask:

“What’s the latest stable version of Rust?”

Without web search, the bot would give you whatever was current as of its training cutoff. With AgentPatch connected, it searches Google directly:

Searching Google for "latest stable Rust version"...

Rust 1.84.1 was released on January 30, 2026. You can download it at rust-lang.org
or update with `rustup update stable`.

The agent handles the search, reads the result, and gives you a direct answer. You didn’t write any code, configure a search API, or do anything other than ask the question.

Same thing works in Discord or Signal if that’s where your OpenClaw instance lives.

Wrapping Up

Once AgentPatch is connected, your OpenClaw bot can search Google whenever it needs current information — no separate API key required. And Google Search is just one tool on the marketplace; the same connection gives your agent access to image search, email, maps, and more. Check out agentpatch.ai to see what else is available.