/en/articles/cloudflare-gives-your-site-a-search-engine-for-ai-agents-with-a-single-toggle-and-the-new-http

Infrastructure

Cloudflare gives your site a search engine for AI agents, with a single toggle and the new HTTP QUERY method

On November 25, 2026, Cloudflare announced Search for Agents: a toggle in each domain's dashboard that indexes your site and gives it a search endpoint at https://yourdomain.com/.well-known/search, built for AI agents, not for people. The agent asks in natural language and gets back chunks of your content in Markdown, instead of crawling page by page. It's in beta, available on all plans (including the free one), and it comes with native support for QUERY, the new HTTP method the IETF standardized in June. What matters if you have a site behind Cloudflare: billing for AI Search, the service that does the heavy lifting, starts on December 1, 2026, which is to say, in a few days.

What exactly the toggle does

Until now, for an agent to search your site with AI Search you had to create the instance by hand, configure it, and then publish the endpoints yourself. Search for Agents tucks all of that behind a toggle that lives under Overview > Quick Actions in the zone, or in the API. According to the documentation, turning it on does this:

  • An AI Search instance named search-for-agents-<ZONE_ID> is created in the default namespace, with your domain as the source.
  • Crawling uses Discover mode: it reads your sitemaps and follows the links it finds, so you don't need a sitemap, although it helps.
  • The index is hybrid (vectors plus keywords) with the @cf/qwen/qwen3-embedding-0.6b embeddings model, 1,024-token chunks, and 10% overlap.
  • Defaults: up to 100,000 pages, five link hops from the home page, resync every 24 hours, subdomains off, a maximum of 10 chunks per response, a match threshold of 0.4, and a 48-hour similarity cache. Reranking and query rewriting come turned off.

Watch out for one detail: the embeddings model and the data source are fixed when the instance is created. Everything else you can change later in the Settings tab.

Diagram of the Cloudflare Search for Agents flow: toggle, AI Search instance, hybrid index, discovery through metadata, GET or QUERY request, and Markdown response, with AI Search pricing

How agents find out it exists

A search engine nobody knows about is useless, and this is the clever part. Cloudflare injects four metadata tags into the <head> of every HTML response: agent:instructions (a text telling the agent to use the search endpoint instead of crawling pages), agent:endpoint (the URL with ?q={query}), agent:method, and agent:documentation. If you also have Markdown for Agents turned on, an agent that requests a page with Accept: text/markdown gets the same thing in the YAML front matter.

Cloudflare turned it on first in its own developer documentation and says an OpenCode session found the endpoint on the home page, queried it, and answered correctly in a few seconds. It also says that once the agent discovers it, it tends to reuse it several times in the same session.

The response is not a generated answer: it's chunks retrieved from your site, with their path and a relevance score. Cloudflare's argument is that the agent already brings its own model and its own conversation; what it lacks is your information, not another model's opinion.

QUERY: the GET that can finally carry a body

The endpoint accepts GET with the q parameter and also the QUERY method, defined in RFC 10008, published in June 2026 as a Proposed Standard. One of its three authors is James Snell, from Cloudflare.

The idea behind QUERY is simple: send the query in the request body, like a POST, but with the guarantee that it's safe and idempotent, like a GET. That means you can retry it without fear and it can be cached. The RFC lists the problems it solves: long URLs run into limits nobody knows in advance (it recommends supporting at least 8,000 octets), URLs end up in logs and bookmarks more easily than a body does, and encoding data in the URL is inefficient. For Search for Agents, the body can be plain text or JSON with a q field.

Adoption is just getting started:

  • curl already does it with -X QUERY. Daniel Stenberg recommends using --follow and not the old -L if you follow redirects, because -L changes the method on subsequent requests no matter what the server answers.
  • undici, the Node.js HTTP client, added support in version 8.6.0 (July 2026).
  • Browser vendors are discussing it in the WHATWG Fetch repository.

I tested it against Cloudflare's documentation

I didn't enable Search for Agents on any domain. What I did do was query the public endpoint of Cloudflare's documentation, which already has it turned on, with curl 8.5.0. The GET answered 200 with text/markdown in about 3.2 seconds the first time, and a QUERY with a JSON body answered 200 in 1.06 seconds, with the limits and pricing page as the first result. The agent:* metadata is in the home page HTML, just as the announcement describes.

Terminal screenshot: a QUERY request with a JSON body to the /.well-known/search endpoint of developers.cloudflare.com that responds 200 in Markdown, and the agent:endpoint metadata on the home page

What it costs and the limits that actually bite

Search for Agents has no price of its own: it's billed as AI Search, and the pricing page says that billing starts on December 1, 2026.

Item Included per month per account Overage
Ingestion 5 million tokens US$0.75 per million
Storage 10 GB-month US$2.00 per GB-month
Semantic, vector, or hybrid queries 1,000 US$0.75 per 1,000
Full-text queries 1,000 US$0.10 per 1,000

The limits that matter most:

  • On the free Workers plan, a maximum of 500 pages per day are crawled. That's the limit that rules, according to the documentation itself. Doing the math, a 5,000-page site would take at least 10 days to be fully indexed.
  • On the paid plan there's no daily cap, but an instance with hybrid search supports up to 500,000 files.
  • Ingestion tokens are counted on the final chunks, overlap included, using the cl100k_base tokenizer.

My take: since the index is hybrid, every agent query lands in the expensive line (US$0.75 per thousand), not the full-text one. A thousand queries a month go fast if a popular agent discovers your site and queries it several times per session. It's not a bill that's going to bankrupt anyone, but it is an expense that didn't exist before and that you don't control; agent traffic does.

Before you flip the switch

The documentation gives two clear warnings: index only content you want to make publicly searchable, and requests to the endpoint still go through your WAF, bot management, and AI Crawl Control configuration. A few practical recommendations come out of that:

  • Filter paths. AI Search allows URL include and exclude rules. On a CMS, it's a good idea to leave out user pages, internal search results, duplicate tags, and anything you don't want an agent to cite.
  • Check your firewall if you block bots. If you have rules that stop bots, the AI Search crawler can get locked out. Cloudflare documents a Skip rule with Bot Detection ID 122933950 to let it through.
  • Careful with authentication headers. The crawler can send up to five headers to get into protected pages. My take: if you use that option with Search for Agents, what was behind the login ends up answering on a public endpoint. That's not what it's for.
  • If your site is multilingual or uses subdomains, remember that subdomains are off by default.
  • Measure before you brag. Keep an eye on the instance's usage in your account. If no agent queries it in a month, turn it off and don't pay for storage of an index nobody uses.

My take

Search for Agents is the logical follow-up to Markdown for Agents: Cloudflare is turning its network into the layer that translates websites into the language of agents, and while it's at it, it keeps the index. For a documentation site, a technical blog, or a catalog, it makes sense: instead of an agent chewing through 40 pages to find one fact, it makes one query and walks away with the right chunk. The endpoint lives on your domain and respects your firewall, and that's better than letting every AI company crawl your site its own way.

What's still unknown: it's beta, the format of the agent:* metadata is not a standard (it's a Cloudflare convention), and it remains to be seen whether agents from other vendors read it on their own or only when someone trains them to. QUERY, on the other hand, is a standard and will outlast this product. If you write search APIs, it's worth starting to support it now.

Sources