#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)

late token
#

Has aynone an openclaw.json file, that gives all my AI Agent's full access to the web search via API and also web browsing to all web browsers?

silver beaconBOT
amber sierraBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> βœ… Mark Solution

vital kestrelBOT
#

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:

After editing, restart the gateway:

openclaw gateway restart