Agent search with a single toggle
Cloudflare announced Search for Agents, a feature that lets AI agents search the content of a website. Previously, adding a site as a data source through the AI Search service required configuring an index and integrating search endpoints. The new feature puts that setup behind a single toggle in the Cloudflare dashboard.
How it works
For your zone, the feature automatically creates an AI Search instance, crawls and indexes your site's content, and exposes search APIs that agents can discover under your own domain. All of this happens at the network level, on Cloudflare's side.
- Can be enabled from Quick Actions in the dashboard or via the API.
- Available to all customers, including the Free plan, which has limits.
- The instance is created with default settings; options like reranking and caching can be changed later.
- Search access is subject to your bot management, AI Crawl Control and WAF settings.
How agents find the search
So agents know the search exists, Cloudflare adds information advertising the search endpoint to every page of your site. For HTML pages, this is embedded in page metadata. If Markdown for Agents is also enabled, agents requesting a page as Markdown receive the same information in YAML front matter, including the search API's address, method and usage instructions.
How agents use the search
Once an agent learns the site's search endpoint, it can send queries directly. For example, a request to /.well-known/search?q=... returns matching pages and relevance scores in Markdown. Depending on the AI Search configuration, agents can also ask natural-language questions.



