Skip to content
INTERNET INFRASTRUCTURE & NETWORKS

Cloudflare Introduces "Search for Agents" to Simplify AI Discovery and Content Indexing

Cloudflare has announced the launch of "Search for Agents," a new capability designed to bridge the gap between websites and autonomous AI agents. Built on top of Cloudflare’s existing AI Search service, the new feature allows site owners to enable automated content indexing and discovery with a single toggle switch directly inside the Cloudflare dashboard. By automating the setup of retrieval infrastructure, the service aims to make website content immediately discoverable and searchable for AI applications without requiring developers to manually build or configure complex backend systems.

For some time, Cloudflare’s AI Search has provided users with the ability to index website content and integrate search functionality into applications and agents. However, deploying an instance previously demanded considerable manual effort. Site owners had to create and configure search instances initially, handle integration work to expose search endpoints from their custom domains, and ensure that external AI agents knew where to locate the index and how to interact with it. Search for Agents removes these hurdles, shifting the provisioning process behind a straightforward interface toggle. Once activated for a specific zone, the service automatically initiates an AI Search instance, begins crawling and indexing the website’s content, and exposes discoverable APIs directly from the owner’s domain.

How the Infrastructure Works

The underlying concept builds organically upon Cloudflare’s earlier initiative, Markdown for Agents, which utilizes content negotiation headers to convert any HTML page into Markdown in real time across enabled zones. Similarly, Search for Agents leverages the core capabilities of AI Search by generating a dedicated index for a zone and establishing standardized APIs at the network level. This setup allows any internet-connected AI agent to autonomously discover and query the website under its native domain.

Customers can activate Search for Agents programmatically via the API or by navigating to the dashboard within their zone page under Quick Actions. The feature is available across all account tiers, including Free plans subject to standard platform limits. Once enabled, Cloudflare’s network automatically crawls and indexes the site’s pages, allowing site administrators to monitor or modify the resulting AI Search instance through the account’s AI Search instances view. While the initial instance is created using default settings, administrators retain the flexibility to adjust configuration parameters, such as cache behaviors or the activation of reranking options, at any time. Furthermore, access to the search index remains bounded by existing domain security settings, including bot management protocols, AI Crawl Control parameters, and web application firewall configurations.

Ensuring Seamless Discoverability

A foundational challenge in agentic workflows is discoverability—search infrastructure provides little utility if visiting agents cannot determine its existence or location. To solve this challenge, Search for Agents automatically injects standardized metadata into every page of an enabled website.

For standard HTML responses, the network incorporates specific metadata tags directly into the page header. These tags instruct automated systems to utilize the designated search API for retrieving relevant content via keywords or natural-language queries rather than exhaustively crawling individual pages, with results returned cleanly in Markdown format. For zones where Markdown for Agents is also active, agents requesting pages with specific content-type acceptance headers receive identical instructions embedded within YAML front matter. These standardized indicators allow visiting agents to quickly interpret site layout instructions and seamlessly transition to querying the search endpoint.

Introducing Search for Agents

Once an agent recognizes that a site hosts a search endpoint, it can submit queries using standard web protocols. The system accommodates both keyword searches and complex natural-language questions, returning relevant source material rather than a synthesized conversational response. Because the querying agent typically maintains its own language model and active conversation context with an end user, the search endpoint provides precisely what is required: direct, ranked access to relevant site documentation or content segments formatted as Markdown, accompanied by relevance scores.

Native Support for the New HTTP QUERY Method

To optimize search operations further, Search for Agents offers native support for the HTTP QUERY method. Recently published as RFC 10008 by the Internet Engineering Task Force and coauthored by Cloudflare’s James Snell, the QUERY method enables clients to securely and idempotently transmit search criteria inside an HTTP request body without altering server state. This architectural design makes it a natural fit for AI-driven search interactions.

Adoption of the QUERY standard is currently gaining momentum across the developer ecosystem, with major browser vendors discussing specifications and various HTTP clients and networking libraries, such as curl and Node.js-associated runtimes, incorporating native support. Search for Agents takes full advantage of this development by accepting QUERY requests using either plain text or JSON payloads, allowing modern applications and agent runtimes to execute searches cleanly and efficiently.

Real-World Implementation and Broader Ecosystem Support

Ahead of the public announcement, Cloudflare deployed Search for Agents across its own extensive developer documentation portal to evaluate real-world performance. Observational logs from agentic sessions—such as those run through developer environments like OpenCode—demonstrated that automated agents successfully discovered the search endpoint on the site homepage and subsequently queried the designated well-known search path to retrieve accurate technical details. Because agents quickly identify and cache the availability of the search API, subsequent queries within the same session are routed directly to the index, significantly reducing unnecessary network traffic and resource consumption.

Crucially, because Search for Agents is backed by a fully featured AI Search instance, site owners inherit access to a broad suite of complementary tools. Administrators can choose to enable public REST API or Model Context Protocol endpoints, integrate the search functionality directly into Cloudflare Workers via bindings, or embed visual search widgets directly onto web pages for human visitors.

The launch coincides with broader industry efforts by Cloudflare to establish standards for machine-readable web infrastructure. Alongside the new search capability, Cloudflare continues to direct developers toward resources like its Agent Readiness initiative, which helps site owners optimize their web properties for autonomous systems by establishing clear guidelines for authentication, content access controls, structured data delivery, and monetization pathways. Search for Agents is available immediately to all customers, with usage governed by standard AI Search pricing structures and plan limits.