#Has aynone an openclaw.json file, that gives all my AI Agent's full access to the web search via API
1 messages Β· Page 1 of 1 (latest)
Yep, something like this should do it.
{
tools: {
// Gives agents web_search + web_fetch + browser
allow: ["group:web", "browser"],
web: {
search: {
enabled: true,
provider: "brave", // swap if you want another provider
maxResults: 5,
timeoutSeconds: 30,
},
fetch: {
enabled: true,
},
},
},
plugins: {
entries: {
brave: {
config: {
webSearch: {
apiKey: "BRAVE_API_KEY_HERE",
mode: "web",
},
},
},
},
},
browser: {
enabled: true,
defaultProfile: "openclaw",
profiles: {
openclaw: { cdpPort: 18800 },
// attach to your real signed-in Chromium session
user: {
driver: "existing-session",
attachOnly: true,
},
// example Brave profile
brave: {
driver: "existing-session",
attachOnly: true,
userDataDir: "~/Library/Application Support/BraveSoftware/Brave-Browser",
},
// example remote CDP browser
remote: {
cdpUrl: "http://127.0.0.1:9222",
},
},
},
}
A couple important gotchas:
- This is JSON5, not YAML.
- This applies globally, so all agents inherit it unless you override/restrict them under
agents.list[].tools. - Browser support is Chromium-based browsers only, so Chrome / Brave / Edge / Chromium, plus remote CDP. Not literally every browser.
- If you use
plugins.allow, make sure"browser"is in there too, or the browser tool will disappear.
Docs:
- https://docs.openclaw.ai/tools/web
- https://docs.openclaw.ai/tools/browser
- https://docs.openclaw.ai/gateway/configuration
After editing, restart the gateway:
openclaw gateway restart