How to Add Google Maps Search to OpenClaw
OpenClaw is a capable local agent, but it has no built-in way to look up places or businesses. If you ask it to find a coffee shop near you or check whether a restaurant is open, it has to guess. Adding Google Maps through AgentPatch changes that.
Why This Matters
A lot of practical questions involve location: where to eat, which businesses are nearby, what hours a place keeps. These aren’t questions a locally-running model can answer from training data — they require live data. Google Maps has it.
The usual path is to sign up for a Google Maps API key, deal with billing setup, and figure out the SDK. AgentPatch shortcuts all of that. Connect once and your OpenClaw bot can search Maps directly — no separate API key to manage.
Setup
The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.
Install (zero dependencies, Python 3.10+):
pip install agentpatch
Set your API key:
export AGENTPATCH_API_KEY=your_api_key
Example commands your agent will use:
ap search "web search"
ap run google-search --input '{"query": "test"}'
Get your API key from the AgentPatch dashboard.
Skill (Recommended)
Install the AgentPatch skill from ClawHub — it teaches OpenClaw when to use AgentPatch and how to use the CLI:
clawhub install agentpatch
MCP Server (Alternative)
If you prefer raw MCP tool access instead of the skill, 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:
“Find me a highly rated sushi restaurant in downtown Austin that’s open for lunch.”
With AgentPatch connected, the bot searches Maps directly:
Searching Google Maps for "sushi restaurant downtown Austin open lunch"...
Here are some top results:
1. Uchi (4.7★) — 801 S Lamar Blvd, open 11am–2pm for lunch Tue–Fri
2. Otoko (4.6★) — 1603 S Congress Ave, omakase lunch Sat–Sun only
3. Sushi Junai (4.5★) — 523 E 6th St, open daily 11:30am–2:30pm
Uchi is probably your best bet for a weekday lunch with high ratings.
The bot pulled real business listings with ratings, addresses, and hours — all from a single chat message.
Wrapping Up
Once AgentPatch is connected, your OpenClaw bot can look up places and businesses on demand. Google Maps is one tool; the same connection also gives your agent access to web search, image generation, email, and everything else on the marketplace. Check out agentpatch.ai to see what’s available.