Cloudflare offers AI agents a search engine for each website

Cloudflare offers AI agents a search engine for each website

Cloudflare has made Search for Agents available in beta to all its customers, including those on the free plan: when enabled, it creates a site index and a search endpoint on the domain itself, allowing AI agents to query content without going through pages one by one.

The new option automates an integration that previously required manually configuring an AI Search instance and connecting its endpoints to the domain. Cloudflare says enabling it from the dashboard is enough to start crawling and indexing; afterward, it adds metadata to pages to tell agents where to search.

An endpoint on the domain and results in Markdown

Search for Agents is based on AI Search, Cloudflare's service for indexing content and adding search to applications and agents. When the feature is enabled for a zone, Cloudflare creates an instance of that service and exposes an address in the format https://example.com/.well-known/search. The query can be included as a q parameter.

To help agents find the address, Cloudflare adds metadata to the <head> of HTML responses. This metadata indicates that it is preferable to use the search API rather than crawl individual pages, specifies the endpoint and query method, and includes a link to the documentation. If the site also has Markdown for Agents enabled, the same information appears as YAML in the header of Markdown responses.

The difference from conversational search is deliberate: the endpoint returns retrieved content, not an AI-generated answer. Results arrive in Markdown, with references to pages and relevance scores; the agent combines them with its own model and the conversation with the user. Cloudflare argues that this avoids the need for a second model to generate another answer based on the material found.

Agents can query the endpoint using GET or QUERY, an HTTP method that Cloudflare has also added. QUERY lets users send the search text in the request body, either as plain text or as JSON with a q field. Cloudflare presents this method as suitable for searches because it allows query criteria to be sent without changing the server's state.

Initial setup with specific limits

The feature can be enabled in the dashboard, on the domain's Overview page under Quick Actions; it can also be enabled through the API. Cloudflare's guide says the domain must be added to the account and recommends indexing only content that should be publicly searchable. Before running queries, you must wait for AI Search to crawl and index the material.

The instance is created with default values and a name based on the zone identifier: search-for-agents-<ZONE_ID>. It uses the site associated with the domain as its source and the Discover mode, which finds pages through sitemaps and links without requiring a sitemap. Cloudflare lets users change configurable options from the instance's Settings tab; some values, including the embeddings model and data source, are fixed when the instance is created.

The initial parameters define the scope of indexing and how results are retrieved. The following table lists the values Cloudflare documents for a new instance:

AreaInitial configuration
CrawlingDiscover using sitemaps and links
Page limit100,000 pages, subject to instance limits
DepthFive link hops from the source URL
Crawl cache24 hours
SubdomainsDisabled
SynchronizationEvery 24 hours
SearchHybrid: vector and keyword
Embeddings model@cf/qwen/qwen3-embedding-0.6b
Chunk size1,024 tokens
Overlap10%
Maximum results10 chunks
Match threshold0.4
Query rewriting and rerankingDisabled
Similarity cacheEnabled, with a duration of 48 hours

The combination of hybrid search and retrieved chunks returns relevant material without turning the query into a written answer. Cloudflare says the model's generation settings apply only when the instance is used through a chat completions API, not through the /.well-known/search endpoint.

Cloudflare ofrece a los agentes de IA un buscador por sitio web
© Cloudflare Blog

Site controls remain in effect

Enabling the search engine does not remove the restrictions the owner already applies to their domain. Requests to the endpoint remain subject to bot management settings, AI Crawl Control, and the web application firewall (WAF). The guide also notes that access depends on the domain's settings, so the feature does not amount to opening any site content to all agents.

This nuance aligns with Cloudflare's recommendation to review what content is indexed and how access to it is allowed. The company points to its Agent Readiness page, which covers how to guide agents on authentication, what content they can see, the format in which they receive it, and how they pay for it. The announcement does not detail any automatic change to existing access rules.

The feature can coexist with Markdown for Agents, but the two address different tasks. That option converts individual pages to Markdown when an agent requests them using the appropriate content negotiation; Search for Agents, by contrast, retrieves relevant content from the index for a query. The former makes it easier to read a specific page, while the latter helps locate information within the site.

Usage is tied to AI Search

Search for Agents is available in beta for all plans, but it is not an unlimited service. Cloudflare bills usage according to AI Search pricing: consumption includes content ingestion, index storage, and queries, subject to included usage and the limits of Workers Free and Paid plans. Free plans have stricter limits, according to TNW.

Cloudflare announced the product on November 25. TNW reported that AI Search billing begins on December 1 and that a certain amount of usage is included each month; it did not publish prices. Cloudflare's documentation also directs users to review pricing and plan limits before confirming activation.

The instance created for the domain remains a standard AI Search instance. In addition to the search endpoint for agents, customers can separately enable a public REST API or MCP endpoints, use the instance from Workers, or embed search and chat components for human visitors. Cloudflare clarifies that these additional public endpoints are not required for Search for Agents to work.

Cloudflare's bet on agent access

The feature addresses a point of friction Cloudflare had already identified in its infrastructure: AI Search could crawl, convert, and index a website, but getting it running for a site required creating an instance and integrating it to publish endpoints on the domain and help agents find them. Search for Agents puts that process behind a dashboard toggle.

The announcement also continues a line of tools aimed at agents. Cloudflare links the design to Markdown for Agents, which converts HTML pages to Markdown in real time on enabled zones through content negotiation headers. TNW also notes that the company launched Kitesurf, a browser for AI agents, in August.

The potential scale is part of the context presented by TNW: Cloudflare said in October that daily AI agent requests on its network had grown by more than 1,700% in a year. The outlet also attributes to CEO Matthew Prince the prediction that bot traffic could reach 1,000 times human traffic. These figures provide the backdrop for a product that aims to direct queries toward indexes and endpoints, rather than leaving each agent to crawl every page.

Cloudflare says it enabled Search for Agents in its developer documentation before the announcement. In a test with OpenCode, the agent discovered the endpoint on the homepage and queried /.well-known/search with a question; the company says it received a correct answer a few seconds later. It adds that, once an endpoint has been discovered, an agent will probably reuse it several times during the same session.

The feature can now be enabled from the dashboard or through the API, but the owner must wait for the initial crawl to finish and decide what content they want to make publicly searchable. After that, agents' queries will continue to be governed by the domain's rules and AI Search limits.

Sources: TNW | Artificial-intelligence, Cloudflare Blog, Cloudflare Docs, Cloudflare Docs