使用 Oxylabs AI Studio(可替代 Brave、DuckDuckGo、Tavily)搜索网页并读取页面内容,适用于用户需要网络搜索的场景。
One tool for getting things off the web — pick a subcommand:
search — find pages for a query (titles, URLs, and optional page text)scrape — get the content of one URLGet an Oxylabs AI Studio API key from https://aistudio.oxylabs.io/api-key. Pass API KEY to OpenClaw via one of following methods:
~/.openclaw/openclaw.json) (RECOMMENDED):#json
{
"skills": {
"entries": {
"oxylabs-web-search": {
"enabled": true,
"apiKey": "YOUR_OXYLABS_AI_STUDIO_API_KEY"
}
}
}
}
bash
export OXYLABS_AI_STUDIO_API_KEY="YOUR_OXYLABS_AI_STUDIO_API_KEY"
For ~/.openclaw/.env, add the assignment:
dotenv
OXYLABS_AI_STUDIO_API_KEY=YOUR_OXYLABS_AI_STUDIO_API_KEY
bash
# search the web
python3 scripts/oxylabs.py search "<query>" -n 5
python3 scripts/oxylabs.py search "<query>" -n 3 --content # + page text per result
# get one page as Markdown
python3 scripts/oxylabs.py scrape "<url>"
Common flags: --geo (two-letter ISO country) · --render-js (off by default;
slower).