News 4 min read

Cloudflare launches Search for Agents, a site search API for AI agents


Cloudflare introduced Search for Agents on November 25, 2026: one toggle in the dashboard that indexes a website and gives AI agents a search endpoint on the site’s own domain, at /.well-known/search. It is built on Cloudflare’s AI Search service and is available in beta on all plans, including Free. Instead of crawling a site page by page, an agent can ask it a question and get back the relevant content in Markdown.

What’s new

  • One toggle. In the dashboard, a domain’s Overview page has a Search for Agents switch under Quick Actions; it can also be turned on through the API. Cloudflare then creates an AI Search instance named search-for-agents-<ZONE_ID>, crawls the site and indexes it, according to the developer docs.
  • A standard place to search. The endpoint lives at https://<your-domain>/.well-known/search?q={query} and accepts keywords or natural-language questions.
  • Results, not answers. The endpoint returns matching chunks of your pages in Markdown, not a generated answer. Cloudflare’s reasoning: the agent already has a model and a conversation with the user, so it only needs the source content.
  • Automatic discovery. Cloudflare adds <meta> tags to the <head> of every HTML page (agent:instructions, agent:endpoint, agent:method and agent:documentation) telling agents the search API exists and how to call it. With Markdown for Agents also on, the same details arrive as YAML front matter when an agent asks for a page with Accept: text/markdown.
  • HTTP QUERY. The endpoint supports QUERY, the new HTTP method published as RFC 10008 in June 2026 and coauthored by Cloudflare’s James Snell. QUERY sends the search in a request body, safely and idempotently, like a GET with a body. Plain text and JSON bodies both work.
  • Your rules still apply. Requests to the endpoint go through the zone’s bot management, AI Crawl Control and WAF settings.

Default settings

The docs list what a new instance starts with. The main ones:

Setting Default
Crawling Discover: sitemaps and links, up to 100,000 pages, five link hops
Re-crawl Every 24 hours; subdomains off
Search mode Hybrid (vector and keyword)
Embedding model @cf/qwen/qwen3-embedding-0.6b, fixed at creation
Results Up to 10 chunks of 1,024 tokens; reranking off
Cache Similarity cache on, 48 hours

Reranking, cache and most other settings can be changed later in the instance’s Settings tab; the embedding model and data source cannot.

Pricing and limits

Search for Agents uses AI Search pricing, and AI Search billing begins on December 1, 2026. Every account gets 5 million ingestion tokens, 10 GB-month of storage, 1,000 semantic queries and 1,000 full-text queries a month. Beyond that, ingestion costs $0.75 per million tokens, storage $2.00 per GB-month, semantic or hybrid queries $0.75 per 1,000 and full-text queries $0.10 per 1,000.

On the Workers Free plan, crawling is capped at 500 pages a day, so a large site takes days to index fully. Workers Paid has no daily crawl cap. Search for Agents defaults to hybrid search, which is billed at the semantic rate, so a busy site that agents query often will pass the 1,000 included queries quickly.

What it means for developers

If your docs or blog already sit behind Cloudflare, this is the quickest way to let coding agents search them properly instead of scraping pages. Cloudflare says it turned it on for its own developer documentation ahead of the launch and found that agents do a good job of discovering the endpoint and using it during their tasks. Once indexing finishes, you can test it the way the docs show:

curl "https://developers.cloudflare.com/.well-known/search?q=cloudflare+artifacts"

curl -X QUERY 'https://developers.cloudflare.com/.well-known/search' \
  --header 'Content-Type: application/json' \
  --data '{"q":"How many bulk import requests per minute does Email Service allow?"}'

For agent builders, the useful parts are the agent:* meta tags and the /.well-known/search path: an agent that checks for them can search any enabled site the same way. The blog notes that curl and undici are adopting QUERY, so a client that does not support the method yet can fall back to GET with ?q=.

A few cautions from the docs. Only index content you mean to be public, because anyone, human or agent, can query the endpoint unless your WAF or crawler rules block them. Because it is a normal AI Search instance in your account, you can also open REST API or MCP endpoints for it, call it from Workers, or embed a search box for human visitors.

How it compares

Until now, agents mostly found site content by fetching pages or reading llms.txt files, which list pages but cannot be searched. Search for Agents adds a search endpoint any agent can find from the page itself. Other agent search APIs, such as the Brave Search API that agents can pay per request with x402, search the whole web; Cloudflare’s searches one site, served from that site’s own domain and controlled by its owner.

Sources