Cloudflare Introduces Search for Agents with Dashboard Toggle
Cloudflare today announced Search for Agents, a new feature that places AI Search setup behind a single toggle in the dashboard. By enabling the toggle for a zone, the service automatically creates an AI Search instance, begins crawling and indexing the zone's content, and makes the search endpoint discoverable under the user's own domain. The feature eliminates the manual configuration previously required to add website search to AI agents, allowing site owners to turn on searchable content with one action. Search for Agents is available to all customers, including Free tier users subject to usage limits.
The technical implementation leverages Cloudflare's existing Markdown for Agents infrastructure, which converts HTML pages to Markdown in real time using content negotiation headers. Search for Agents builds on this by automatically creating an index for the zone and exposing APIs that any AI agent can discover and use. The search endpoint is advertised on every page of the site through metadata and YAML front matter, enabling agents to locate the search API without prior knowledge of the site's structure. This discoverability is reinforced by well-known URIs that agents can detect automatically.
Once an agent discovers the search endpoint, it can perform keyword or natural-language queries against the indexed content. The API supports both plain text and JSON request bodies, and newly adopts the HTTP QUERY method as an IETF Proposed Standard (RFC 10008), coauthored by Cloudflare's James Snell. This method allows search criteria to be sent in a request body safely and idempotently without modifying server state, making it well-suited for AI search workloads. Early adoption includes clients such as curl and undici, with major browser vendors also discussing the RFC.
Search for Agents exposes results in Markdown format, returning retrieved content rather than generated answers, which allows the agent to maintain its own model and conversation context. The search endpoint can be accessed via well-known URIs such as /.well-known/search?q={query}, and supports natural-language questions about specific content. For example, agents can query for specific limits or configuration details, with results returning relevant documentation pages and their associated metadata. The feature was tested during an agentic session using OpenCode, where the agent successfully discovered the search API and retrieved correct answers about Cloudflare Artifacts' maximum push size.
Because Search for Agents is powered by an underlying AI Search instance, users retain access to all standard configuration options and features. These include enabling public REST API or MCP endpoints, using the service from Workers, or embedding AI Search on websites for human visitors. Configuration options such as reranking, cache settings, and bot management controls remain adjustable at any time through the dashboard or API. The service inherits the pricing model of AI Search, covering content ingestion, index storage, and query serving within the account's included usage and plan limits.
Cloudflare recommends site owners consult the Agent Readiness page to optimize their sites for agents, covering guidance on authentication, controllable content visibility, preferred content formats, and cost considerations. The company invites site owners making their content searchable to agents to provide feedback via X or the Cloudflare Developer Discord. Search for Agents is available starting today, with documentation accessible through the developer portal for those wishing to implement or configure the feature for their zones.
Source credits
By Celso Martinho from Cloudflare Blog. Edited by SetuGeo.