Skip to the page

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 in place of YOUR_SPECSTREAM_KEY. OpenClaw adds /search itself:

baseUrl
https://api.specstream.ai/searxng/YOUR_SPECSTREAM_KEY
OpenClaw config
{
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 in apiKey:

OpenClaw config
{
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 in apiKey:

OpenClaw config
{
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 has the details.

Your key

Get your key 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.