Cloudflare Launches Search for Agents: One-Switch Activation for Automated Indexing and Discovery
How It Works
The service builds on the Markdown for Agents principle. Cloudflare’s network converts HTML pages to Markdown in real time for enabled zones. Search for Agents leverages the AI Search service to automatically create an index for your zone. It exposes APIs that any AI agent can discover and use to search your site under your own domain. You can activate this feature via API or the Cloudflare dashboard. It is available to all customers, including the Free plan with applicable limits. Once activated, Cloudflare creates the AI search instance and begins crawling and indexing your zone’s content.
Breaking news:
Configuration and Access
The AI search instance is created with default settings. You can enable result re-ranking or modify configuration options like buffer memory settings at any time. The documentation lists all available options. Once content is indexed, you or any agent on the internet can start using Search for Agents, subject to your domain settings such as robots management, AI Crawler Control, and WAF configuration.
Discovery Mechanism
Discovery is essential because a search feature is useless if agents do not know it exists. Search for Agents automatically advertises the search endpoint on every page of your site. For HTML responses, metadata is added to the page. If you have enabled Markdown for Agents, an agent requesting a page with the Accept: text/markdown header receives the same information at the top of the document in YAML format. Agents easily pick up these instructions and know how to search your site.
Agent Interaction
Once an agent knows your site has a search endpoint, it can start using it. For example, via a command-line query, it can interrogate the endpoint with a specific search term. Results return in Markdown format, showing relevance scores and relevant text snippets. Depending on your configuration, the agent can also use natural language to ask questions. The response contains retrieved content, not a generated answer from another AI model, as the agent already has its own model and user conversation.
HTTP QUERY Method
To support this functionality, we introduced support for the new HTTP QUERY method. This is an IETF proposed standard, co-authored by James Snell, published in June 2026 as RFC 10008. The QUERY method allows a client to send search criteria in the request body in a safe and idempotent manner without modifying server state. Adoption is underway, with major browser makers discussing the RFC and more frameworks and clients adopting it. Search for Agents natively supports QUERY, with request bodies in plain text or JSON.
Practical Usage
In a session with an agent, you can observe how it discovers the search endpoint on the homepage and then queries it with a specific question. The correct answer returns in seconds. Once the agent has discovered the API, it is likely to reuse it multiple times in the same session whenever it needs content search. We enabled this feature for our developer documentation before the public announcement and found that agents do a good job discovering and using the search API during their tasks.
Integration Options
Since Search for Agents is powered by an AI Search instance in your account, you benefit from all standard configuration options and additional features. You can enable public REST APIs or MCP endpoints. You can use it from Workers or integrate it on your site for human visitors.
Pricing
Usage follows the AI Search pricing model, which covers content ingestion, index storage, and query serving. This is within the usage limits included in Free and Paid Workers plans. We recommend checking the Agents Readiness page to understand how you can prepare your site for AI agents.
More stories: