Skip to content

Web research

Agents can search the web through a SearXNG instance Axocoatl runs on your computer, and read pages with web_fetch. Both run on your computer, not in the Session container, and in native Sessions only Agents whose tools list them get them (legacy Sessions differ; see below). Each result has a source id for citations, and the URL, time and content hash of every page an Agent reads are kept in the Session’s network record. web_fetch refuses private and local addresses, including this computer’s own, and checks every redirect.

web_search:
provider: searxng
searxng:
managed: true # Axocoatl runs the SearXNG container (the default)
engines: [] # keep only these engines; empty keeps SearXNG's defaults
language: all
safesearch: 0 # 0 off, 1 moderate, 2 strict
timeout_secs: 15 # 1-60
web_fetch:
max_bytes: 4194304 # largest body read, 64 KiB-8 MiB
timeout_secs: 20 # whole fetch including redirects, 1-60

web_search needs provider: searxng; the searxng block is optional. The web_fetch block’s presence enables web_fetch. axocoatl validate checks both blocks and their bounds.

A managed instance needs local Podman. The first web_search starts a container named axo-searxng- plus a short hash of the data root, from a pinned SearXNG image (docker.io/searxng/searxng:2026.10.2-19ffbcd30, by digest). If the image is not present, Podman pulls it then, which can make the first search slow; pull it ahead with podman pull and the image from web_search.searxng.image or the pinned one. The container publishes its port on 127.0.0.1 only, runs with every Linux capability dropped and no-new-privileges, and has no host directory mounted. Axocoatl writes its settings, with a random secret kept in the data root, and copies them in. The daemon removes the container when it stops, and removes one left by an earlier run when it starts.

To use an instance you already run, set managed: false and its url. Its JSON output format must be enabled (search.formats includes json). Axocoatl queries that URL as given, including a loopback or private address, because you named it.

web_search:
provider: searxng
searxng:
managed: false
url: http://127.0.0.1:8888

List web_search, web_fetch or both in an Agent’s tools. The list is exact: an Agent that does not list a web tool is not offered it, and the default team lists neither. A listed tool that is not configured stops the team from being applied, with the reason:

web_search is listed for researcher but web_search.provider is not configured; set web_search.provider: searxng

Read-only helpers and required reviewers follow the same rule: one gets a web tool only when its own template lists it. A lead cannot hand a web tool to a helper it adds, because a helper’s tools come from its approved template. The web tools change nothing in the repository, so listing them does not make a read-only helper a writer, and the Team & budget view marks each Agent that lists one with a web badge.

In native Sessions the web tools are refused when sandbox.network is none: they reach the internet from your computer, so they would undo that setting. Under egress they work as under bridge: sandbox.egress limits the Session container, not your computer, so its list does not apply to them. They are also withheld from attempts made with Explore several ways: an Agent that lists them runs its attempt without them, and a call to one is declined.

Every search result and every page web_fetch reads has a source_id, S plus eight hex digits taken from the SHA-256 of its normalized URL, so the same page has the same id in a search result and a fetch. web_fetch returns the page as numbered paragraphs (¶1, ¶2, …) with its title, final URL, status and content hashes. Agents cite a claim as [S1a2b3c4d], or a paragraph as [S1a2b3c4d ¶3].

A long page comes back in windows of max_chars characters (1,000-65,536, default 32,768); start_paragraph reads the next one. max_chars, start_paragraph and web_search’s max_results given as null take their defaults. HTML is reduced to its text: scripts, styles, head apart from the title, frames and embedded SVG are dropped. Plain text and Markdown split on blank lines; JSON and XML come back as one block. Other content types are refused by name.

In the turn’s inspector, an activation that used a web tool has sources evidence. Its summary counts the sources, how many were read and how many the final answer cites. Its recorded details list each source id with its URL, when it was retrieved, the hashes of a page that was read, and whether the final answer cites it. An id the answer cites that no web tool returned to that activation is listed as an unknown citation.

Before a call with valid arguments sends anything, it appends a web_request event to the Session’s network record, readable with GET /api/sessions/{id}/network: the tool, the tool call, the activation and the Agent, with the URL a fetch requests or the SHA-256 and length of a search’s query. When the call finishes it appends a web event naming the same tool call, whether it was allowed or refused and why, the source ids, and the time. A search records the SHA-256 and length of its query, not the query text, which is already in the call’s recorded arguments, plus the result count and the engines that did not answer. A fetch records the URL, the final URL and each redirect, the status, the bytes read and the SHA-256 of the body and of the extracted text. A recorded fetch URL is cut at 1,024 bytes (a search result’s at 512) and then marked as cut; the full URL is in the call’s recorded arguments.

If the web_request event cannot be written, for example because the record is full, nothing is sent and the call fails. If the web event cannot be written, the request already left your computer and is in the record, but the call fails and nothing it found reaches the Agent.

  • Search queries. SearXNG sends each query to public search engines from Podman’s default network. The model writes the queries, so anything in the conversation can leave in one; treat a query like any other outbound message. SearXNG’s own requests to the engines are not in the network record.
  • Fetches. web_fetch requests pages from the daemon process, without any proxy from the environment. It sends no credentials or cookies; it identifies itself as Axocoatl-web_fetch in User-Agent.
  • The image. A managed instance pulls its image on first use unless it is already present.

None of this traffic passes through the Session container’s network, and sandbox.network does not govern it apart from refusing the tools under none.

web_fetch reads only public pages. It refuses a URL whose host is a private, loopback, link-local or other special address, including IPv4 written inside IPv6 forms such as ::ffff:127.0.0.1 and numeric spellings such as 2130706433.

A public address can still be your computer. Most networks give a computer a global IPv6 address, and a server may have a public IPv4 address; either reaches every service listening on all interfaces, such as a development server or a database. So web_fetch also refuses any address of your computer’s own network interfaces, read again for every fetch, and any address on a network one of them is directly connected to (the interface’s prefix, such as your home network’s /24 or /64). A network counts as directly connected only when its prefix is /16 or longer for IPv4, or /48 or longer for IPv6; on an interface with a wider prefix, such as a /8, only the interface’s own address is refused. A point-to-point link, as many VPNs use, has no network of its own, so only its own address is refused.

A host name is resolved on your computer, and the fetch is refused if any address it resolves to is refused, so a name cannot point it at your computer or the network it is on. It follows at most five redirects and checks each one the same way, as well as its scheme and any user:password@. Only http and https URLs are read.

What it cannot tell apart from the internet is a public address that leads back into a network you belong to without being directly connected: your router’s own public IPv4 address, which can forward ports to devices behind it, or another subnet of a campus or company network that uses public addresses.

A legacy (1.0-format) Session gets the web tools without network record events:

  • web_search, when configured, goes to every Agent whose tools list is empty (an empty list means every tool the Session offers) or names it, also under sandbox.network: none, as in 1.0.
  • web_fetch, when configured, goes only to an Agent whose tools list names it, and never under sandbox.network: none.

A configuration that still names the hosted tavily provider keeps working for legacy Sessions only; native Sessions refuse it and validate warns. Use provider: searxng.

SearXNG is licensed under the AGPL-3.0-or-later. Axocoatl runs the unmodified upstream image as a separate container and talks to it over HTTP. Public engines limit automated traffic, and SearXNG reports the ones that did not answer; web_search passes them on as unresponsive_engines. If one engine keeps failing, list the ones that work for you under engines.