TL;DR
- Search for Agents automates AI Search setup via a dashboard toggle, eliminating manual configuration and integration work for site owners
- The service automatically crawls and indexes your content, then advertises the search endpoint to agents using metadata and YAML front matter
- Agents discover the search API and query your site using keywords or natural language, receiving results in Markdown format
- Search for Agents supports the new QUERY HTTP method (RFC 10008) for safe, idempotent search requests in request bodies
- Availability
- All customers, including Free
- Pricing
- Follows standard AI Search
- HTTP Support
- QUERY method (RFC 10008) plus
What happened
Cloudflare announced Search for Agents, a feature that simplifies deploying AI-searchable websites. Previously, using AI Search required manual creation of instances, configuration, and integration work to make search available from your domain. Search for Agents eliminates this by automatically creating and configuring an AI Search instance for your zone when you enable it via the Cloudflare dashboard or API.
How it works and what changes
When enabled, Search for Agents automatically crawls and indexes your site's content. The service then advertises the search endpoint to AI agents using metadata tags embedded in every page. For HTML responses, Cloudflare injects agent metadata including instructions, the search endpoint URL, HTTP method (GET), and documentation link. If you also use Markdown for Agents, the same information appears in YAML front matter when agents request the content-negotiated Markdown version.
Agents discover this metadata and can then query your site's search API at the standard /.well-known/search endpoint. The service supports both keyword searches and natural-language queries, returning results in Markdown format. Agents use these results as context for their own AI models rather than receiving generated answers, preserving the agent's existing conversation context.
curl "https://developers.cloudflare.com/.well-known/search?q=cloudflare+artifacts"Discoverability and agent control
Search for Agents automatically advertises endpoints and instructions on every page of your site, making it immediately discoverable to agents. Agents can discover the search endpoint during their initial crawl of your homepage and then reuse it throughout a session.
Site owners retain control over what agents can access through existing Cloudflare features such as bot management settings, AI Crawl Control, and web application firewall rules. The search instance uses the default configuration but supports enabling features like reranking and adjusting cache settings at any time.
HTTP QUERY method support
Search for Agents natively supports the QUERY HTTP method, published as RFC 10008 in June 2026. QUERY is designed for safe, idempotent search requests that send criteria in the request body without modifying server state. Cloudflare authored this standard, and adoption is underway with curl, undici, and major browser vendors discussing the RFC.
The service accepts both plain text and JSON request bodies with the QUERY method, allowing agents to send queries in their preferred format.
curl -X QUERY 'https://developers.cloudflare.com/.well-known/search' \
--data 'What is the maximum payload size per ingestion request in Basin Pipelines?'Getting started and pricing
Search for Agents is available to all Cloudflare customers, including those on the Free plan (subject to plan limits). You can enable it using the API or through the Quick Actions section of your zone page in the dashboard. Once enabled, Cloudflare begins automatic crawling and indexing. You can access and configure your AI Search instance directly from the Search for Agents page or through your account's AI Search instances view.
Usage follows standard AI Search pricing, which covers content ingestion, index storage, and query serving, subject to your plan's included usage and limits. Because Search for Agents is powered by an underlying AI Search instance, you can also enable additional features such as public REST API endpoints, MCP endpoints, embed search on your website for human visitors, or use it from Workers.
Source
Cloudflare Bloghttps://blog.cloudflare.com/search-for-agents/AI-assisted, verified against the source. This post was drafted with AI from the primary source linked above and checked automatically against it. For anything you depend on, read the original.
- #cloudflare
- #aisearch
- #agents
- #api
- #search