Introducing Search for Agents
- Source
- blog.cloudflare.com
- Publisher
- Cloudflare
- Date

Context
Cloudflare's Search for Agents turns site search for AI agents into a single switch. Before it, a website on Cloudflare could already be indexed by AI Search, Cloudflare's managed indexing and service, but the owner had to create and configure that index, publish search endpoints from their own domain and make sure agents knew the endpoints existed. According to Cloudflare's launch post, turning the feature on in the dashboard or through the API now does all three: Cloudflare creates the AI Search instance, crawls and indexes the site, and serves search at /.well-known/search on the site's own address. It is open to all customers, including the Free plan with limits, and usage is billed under AI Search pricing.
Cloudflare's own documentation site shows what this looks like from the agent's side. Every page carries tags naming the search address, the method to use, a documentation link and an instruction to search instead of crawling individual pages, so an agent that reads any page learns where to ask. In Cloudflare's demonstration, an OpenCode asked for the maximum push size for Cloudflare Artifacts found the endpoint on the documentation homepage, sent the question, and returned the correct answer a few seconds later. What comes back from the endpoint is the matching passages in Markdown with relevance scores, here the Artifacts limits page, which lists 64 MiB per push, rather than a written answer, because the agent already has its own model to compose one.
The index stays an ordinary AI Search instance that the owner can reconfigure, for example by turning on or opening REST and endpoints, and agent searches remain subject to the site's bot management, AI Crawl Control and firewall rules. The evidence that agents find and use the endpoint is Cloudflare's alone: it ran the feature on its developer documentation before launch and says agents did a good job of discovering and using it, but the post's text gives no usage figures. An earlier explanation of the same launch covers the discovery tags and the new HTTP QUERY method in more detail.
- Search for Agents advertises a site's search endpoint on every page: HTML responses get agent:instructions, agent:endpoint, agent:method and agent:documentation meta tags, and Markdown for Agents responses carry the same fields in YAML front matter.
- The /.well-known/search endpoint returns retrieved content in Markdown, not a generated answer. Cloudflare's reasoning is that the calling agent already has a model and the user's conversation, so it needs source material rather than a second model's answer.
- Besides GET, the endpoint accepts the HTTP QUERY method from RFC 10008, published June 2026, which sends search criteria in a request body safely and idempotently. Cloudflare supports plain-text and JSON bodies.
- Agent queries still pass through the zone's bot management, AI Crawl Control and WAF settings, and usage is billed under AI Search pricing for ingestion, index storage and queries, with limits on the Free plan.
- Cloudflare enabled the feature on its developer docs before launch and says agents did a good job of discovering and using the search API; in an OpenCode demo, an agent found the endpoint from the homepage and correctly answered a question about Artifacts push limits.
- Retrieval — Selecting evidence relevant to the current request.
- Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
- reranking — A second pass that re-scores retrieved candidates by reading each one against the query, fixing the ordering that fast vector search got approximately right.
- Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.


