> SpecStream is the live web data engine for teams and agents. This is the Markdown copy of https://specstream.ai/docs/integrations/openclaw. Every page, with what SpecStream does and costs: https://specstream.ai/llms.txt

# OpenClaw web search

For OpenClaw users: the agent's `web_search` tool runs on the Search API once you change the `baseUrl` of one search provider.

Pick one of the three providers below. Each goes in your OpenClaw config, under the provider's `plugins.entries` block, and `tools.web.search.provider` names it. Install the provider's plugin first if you have not, or choose the provider in `openclaw configure --section web` and then set the `baseUrl`.

## SearXNG provider

Set `baseUrl` to this address, with [your key](https://specstream.ai/workspace/search?route=searxng&utm_source=openclaw&utm_medium=howto) in place of `YOUR_SPECSTREAM_KEY`. OpenClaw adds `/search` itself:

baseUrl

```text
https://api.specstream.ai/searxng/YOUR_SPECSTREAM_KEY
```

OpenClaw config

```json5
{
  plugins: {
    entries: {
      searxng: {
        config: {
          webSearch: {
            baseUrl: "https://api.specstream.ai/searxng/YOUR_SPECSTREAM_KEY",
          },
        },
      },
    },
  },
  tools: {
    web: {
      search: {
        provider: "searxng",
      },
    },
  },
}
```

The address then holds your key, so keep it in a secret or an environment setting.

The same value works as the environment variable `SEARXNG_BASE_URL` when no `baseUrl` is set in the config.

## Tavily provider

Set `baseUrl` to `https://api.specstream.ai/tavily` and put [your key](https://specstream.ai/workspace/search?route=tavily&utm_source=openclaw&utm_medium=howto) in `apiKey`:

OpenClaw config

```json5
{
  plugins: {
    entries: {
      tavily: {
        enabled: true,
        config: {
          webSearch: {
            apiKey: "YOUR_SPECSTREAM_KEY",
            baseUrl: "https://api.specstream.ai/tavily",
          },
        },
      },
    },
  },
  tools: {
    web: {
      search: {
        provider: "tavily",
      },
    },
  },
}
```

Or set the environment variables `TAVILY_BASE_URL=https://api.specstream.ai/tavily` and `TAVILY_API_KEY` on the Gateway. A value in the config wins over the environment.

## Brave provider

Set `baseUrl` to the host only, `https://api.specstream.ai`. OpenClaw adds the search path itself. Put [your key](https://specstream.ai/workspace/search?route=brave&utm_source=openclaw&utm_medium=howto) in `apiKey`:

OpenClaw config

```json5
{
  plugins: {
    entries: {
      brave: {
        config: {
          webSearch: {
            apiKey: "YOUR_SPECSTREAM_KEY",
            baseUrl: "https://api.specstream.ai",
          },
        },
      },
    },
  },
  tools: {
    web: {
      search: {
        provider: "brave",
      },
    },
  },
}
```

## Check it works

Ask your agent about something from this week. It calls `web_search`, and the answer cites the pages the Search API returned.

## Cost

Each search is one Search API call. A drop-in call runs the fast search, at $1 per 1,000 searches of up to 10 results. A call that asks for an answer or the tool's thorough mode runs the default search, at $5 per 1,000. It comes out of your balance, with no quote and no approval. [Search API](https://specstream.ai/docs/search-api.md) has the details.

## Your key

[Get your key](https://specstream.ai/workspace/search?route=searxng&utm_source=openclaw&utm_medium=howto) on the Search API screen of your SpecStream workspace. New accounts start with $2 of credit, no card.

The same setting works in other tools too: [Search API by one setting](https://specstream.ai/docs/integrations/drop-in-search.md).
