Cloudflare has added Search for Agents, a dashboard toggle that makes your website searchable by AI agents. Turn it on for a domain on Cloudflare, and Cloudflare creates a search index of your pages and serves it from your own address.

Until now, setting this up meant creating an AI Search instance (Cloudflare’s service for indexing content), wiring its endpoints to your domain, and telling agents where to look. The toggle does all three. You can enable it from the zone’s Quick Actions in the dashboard or through the API. A zone is a domain managed in Cloudflare.

How agents find and use it

Agents search at /.well-known/search?q=your+query on your domain. Cloudflare also adds agent: tags to the head of your HTML pages, which tell an agent the endpoint, the request method and where the documentation lives. If you use Cloudflare’s Markdown for Agents, the same details appear at the top of the Markdown version of each page.

Results come back as Markdown. They are matching content from your site, not AI-written answers.

Cost and private pages

Search for Agents is available to all Cloudflare customers, including Free. Usage is billed at AI Search pricing for ingesting content, storing the index and answering queries. Check the AI Search limits and prices before pointing it at a large site.

The index is public and lives on your domain, so anything it crawls can be returned to any agent that asks. Cloudflare says your bot management, AI Crawl Control and firewall settings apply to these requests. If your site has members-only or draft pages, open the search URL in a logged-out browser after enabling it and confirm those pages do not appear in results.

Since this is a standard AI Search instance, you can also expose it through an MCP endpoint (a connection that tools like Claude can call), a public REST API or a Workers binding.


End of article