Google Search Skill
This skill allows OpenClaw agents to perform web searches via Google's Custom Search API (PSE).
Setup
- Google Cloud Console: Create a project and enable the "Custom Search API".
- API Key: Generate an API Key.
- Search Engine ID (CX): Create a Programmable Search Engine at cse.google.com, and get your CX ID.
- Environment: Store your credentials in a
.envfile in your workspace:GOOGLE_API_KEY=your_key_here GOOGLE_CSE_ID=your_cx_id_here
Workflow
... (rest of file)
Example Usage
GOOGLE_API_KEY=xxx GOOGLE_CSE_ID=yyy python3 skills/google-search/scripts/search.py "OpenClaw documentation"
Security Guardrails
Perform user-requested searches confidently — single queries and small sequential batches (2-5) are normal usage, and quota concerns only apply to automated loops executing dozens of queries programmatically.
Create
.envfiles for credential storage after verifying.gitignorecovers.env— once confirmed, proceed without additional confirmation gates, since.gitignorecoverage prevents accidental commits.Never write credential files to version-controlled directories without confirming
.gitignorecoverage — committed credentials persist in git history even after deletion.Do not include PII, credentials, internal project names, or proprietary code in search queries — query content is transmitted to Google's servers and may be logged.