Skip to content

Search and reading

A Bot searches the web with web_search and reads a page with web_read, both from Python. The control plane does the searching and the fetching. The settings are under Admin → Settings → Search, which also shows each search source’s health and runs a test search with the saved settings.

search.engine picks one of four:

Engine Key What it is
builtin (default) none The Built-in Scraper: asks several search sites at once and merges what they return.
searxng none Your own SearXNG instance.
brave search.brave.api_key Brave’s Search API.
exa search.exa.api_key Exa.

It needs no key. It asks DuckDuckGo, Yahoo, Seznam and Wikipedia, and Marginalia once you give it a key, and merges what they return.

Every search leaves from the control plane’s one address, and a site asked too often blocks it for everyone. So it holds itself to about ten requests a minute per site, with a search asking one or two sites. With that budget spent, a search waits for its turn: up to 20 seconds, or a minute for a query in a batch. Past that it answers busy with the seconds to wait, which is not a block.

A site that refuses is left alone for 30 seconds, doubling up to 30 minutes; one that only timed out, for 15 seconds up to 2 minutes. When nothing can answer, an answer to the same query from the last hour is served, and says that is what it is.

  • search.builtin.sources names which sources are asked, comma-separated. Empty asks the defaults. A list asks only what it names, which is also how to try brave, mojeek and startpage: since 2026 they answer a plain request from most addresses with a captcha or a proof of work, so they are off unless named.
  • search.builtin.marginalia_key is a key for Marginalia, an index of the small, text-heavy web (English queries only). A key is free for non-commercial use, and its results are CC-BY-NC-SA. Without one it is not asked.

Set search.searxng.url to your instance’s root (http://searxng:8080). No key, many more engines, and a community that keeps them working. Its settings.yml must list json under search.formats, and its limiter must let the control plane’s address through; Silo says which of the two is wrong when one is.

Each is one provider’s own index behind your key: no scraping and no self-imposed limit, but every search spends your plan’s quota. A rate limit is retried once, then the Bot is told the plan is used up. A rejected key or an account out of credit is said in words, never as an empty result. Answers are cached for 5 minutes. Exa takes the country, not the language.

web_read takes an address and gives the page’s text as markdown, cut to what a model can afford. Sites with an API (GitHub, YouTube, arXiv, Apple Podcasts) are read through it. A page that is empty until its scripts run is rendered by Lightpanda, a headless browser in the calling Bot’s own machine, never on the control plane; PDFs and documents are read there too.

Key Default What it does
reader.render true Render pages that need their scripts. Off, such a page is reported as needing a browser.
reader.github_token none A GitHub token for reading repositories, issues and files: 60 requests an hour without one, 5,000 with. It needs no permissions for public repositories.
reader.block_private true Refuse internal addresses. See Network.
reader.allow none Internal addresses it may still reach.
Key Default What it does
search.engine builtin builtin, searxng, brave or exa. The old duckduckgo_scraper reads as builtin.
search.builtin.sources the defaults The sources the Built-in Scraper asks.
search.builtin.marginalia_key none Marginalia’s key.
search.searxng.url none Your SearXNG instance.
search.brave.api_key none For brave. Not the Built-in Scraper’s brave source, which needs no key.
search.exa.api_key none For exa.