Skip to main content

Web search and page fetching

The agent can search the web and read pages. It has four tools for this:

ToolWhat it does
web_searchsearches the web and returns results with links
fetch_contentfetches a page and converts it to Markdown; clones a GitHub repository
get_search_contentreturns a stored search or fetch result page by page
source_checksearches for sources on a claim and returns quotes from them

Web search works right after installation; no keys are needed.

tip

Ask the agent: "Connect Brave Search with my key" or "Turn off web search". It makes the changes in web-search.json.

Where the settings are stored​

Web access is configured in a single file, web-search.json in the agent directory:

OSDefault path
Linux, macOS~/.local/share/explyt-ai-agent/agent/web-search.json
WindowsC:\Users\<name>\.local\share\explyt-ai-agent\agent\web-search.json

If the XDG_DATA_HOME variable is set to an absolute path, the agent directory is $XDG_DATA_HOME/explyt-ai-agent/agent.

This is the user file outside .explyt/. Web search settings in .explyt/settings.json are not read.

Changes take effect from the next session. A running session keeps working with the old values.

Default values​

On every start, the agent adds missing keys to the file:

{
"provider": ["exa", "duckduckgo"],
"workflow": "none",
"toolActivation": "eager",
"toolExposure": "direct",
"autoOpenBrowser": false,
"fetch": { "allowedModes": ["readable", "raw"] },
"githubClone": { "clonePath": "<OS temp directory>/explyt-github-repos" },
"commands": {
"websearch": { "enabled": false },
"curator": { "enabled": false },
"search": { "enabled": false },
"google-account": { "enabled": false }
}
}
  • Existing values are not overwritten.
  • A deleted key comes back on the next start. To change a value, set a different one instead of deleting the key.
  • Don't change toolActivation and toolExposure: with other values the search tools become unavailable.

Where requests go​

Search. By default every query is sent to two providers at once, and their results are merged:

  • Exa: anonymous access without a key. Exa limits anonymous requests per IP address, by default about 50 a day; everyone going online through the same office NAT shares this limit. Exa blocks some networks completely.
  • DuckDuckGo: the agent reads the HTML results page directly, without an API and without a key.

Search queries leave your computer and reach these services.

Page fetching. fetch_content requests the URL directly from your computer; no third-party services are used.

GitHub. For a repository link, fetch_content makes a shallow clone into the explyt-github-repos temporary directory, through gh if it is installed, otherwise through git over HTTPS. If cloning fails, the agent gets the file tree and README through the GitHub API.

Connect another search provider​

A key alone is not enough: you also need to change provider. Add the keys to the existing file and keep the rest of its content.

Exa with a key, without the per-IP limit (key at exa.ai):

{ "exaApiKey": "<key>", "provider": ["exa", "duckduckgo"] }

To search only through Exa, set "provider": "exa".

Brave Search (key at api.search.brave.com):

{ "braveApiKey": "<key>", "provider": ["brave", "duckduckgo"] }

Tavily (key at tavily.com):

{ "tavilyApiKey": "<key>", "provider": ["tavily", "duckduckgo"] }

Your own SearXNG: the instance must have the JSON response format enabled:

{ "searxngBaseUrl": "https://search.example.com", "provider": "searxng" }

The SEARXNG_BASE_URL environment variable takes priority over searxngBaseUrl.

You can also pass the keys through environment variables (EXA_API_KEY, BRAVE_API_KEY, TAVILY_API_KEY), but you still need to set provider in the file.

{ "webSearch": { "enabled": false } }

This turns off web_search and source_check. Page fetching (fetch_content, get_search_content) keeps working.

If search doesn't work​

If all search requests failed, the agent tells you so and names each provider's error.

What the error saysCauseWhat to do
network errors (fetch failed, ENOTFOUND, ECONNREFUSED, timeouts) from all providersno connection, or a proxy is requiredcheck the connection; for a corporate proxy add "proxy": "http://host:port" to the file
Exa MCP error 403Exa blocks your networkuse only DuckDuckGo ("provider": "duckduckgo"), or connect Brave, Tavily or SearXNG
Exa MCP rate limit reached (429)the daily anonymous limit for your IP is used upwait until tomorrow, add exaApiKey or another provider
a DuckDuckGo error or no resultsDuckDuckGo changed its page or showed a checktry again later or connect another provider
an error parsing web-search.jsonthe file isn't valid JSONfix the file by hand; the agent doesn't repair it

GitHub repositories aren't cloned​

If gh is set to the SSH protocol and there is no working SSH key, cloning fails, and the agent sees the repository only through the API. Check the protocol:

gh config get git_protocol -h github.com

To switch gh to HTTPS for github.com:

gh config set git_protocol https -h github.com

The command changes the gh setting for all tools.