Jorge Turbica / blog · Blog ← All articles ES · Leer en español
Cloud

Cloudflare opens your site to agent search with one click, and bills from December 1

Search for Agents indexes your domain and serves /.well-known/search to AI agents. What it costs, how to enable it and what to limit.

Cloudflare now lets any AI agent search your website with a single request to /.well-known/search, instead of crawling it page by page. All it takes is a toggle in the zone dashboard. The detail that decides whether it stays free arrives on December 1, 2026: that is when billing starts for AI Search, the service underneath, and the endpoint is public.

Cloudflare announced Search for Agents on November 25, 2026. It is in beta and available on every plan, including Free.

What changes

Until now, making your site searchable for agents with AI Search meant creating the instance, configuring the crawl and exposing the endpoint yourself. Search for Agents automates all of it:

  • It creates an AI Search instance named search-for-agents-<ZONE_ID> that crawls https://<your-domain> through sitemaps and links, no sitemap required.
  • It serves search at https://<your-domain>/.well-known/search, which returns retrieved content in Markdown, not a generated answer: the agent already has its own model.
  • It advertises the endpoint on every page with <meta name="agent:endpoint"> and related tags in the <head>. With Markdown for Agents also on, the same data goes into YAML front matter when the client sends Accept: text/markdown.
  • It accepts GET with ?q= and also the HTTP QUERY method (RFC 10008, published in June 2026), which carries the query in the body safely and idempotently.

Cloudflare runs it on its own developer docs and reports that agents such as OpenCode find the endpoint on the home page and keep reusing it during a session.

What it costs

The instance is a regular AI Search instance, with the same limits and pricing. Each account gets 5 million ingestion tokens, 10 GB-month of storage, 1,000 semantic queries and 1,000 full-text queries per month. Beyond that:

UsagePrice
Ingestion$0.75 per million tokens
Storage$2.00 per GB-month
Semantic, vector and hybrid queries$0.75 per 1,000
Full-text queries$0.10 per 1,000

Search for Agents uses hybrid search by default, so its queries bill at the semantic rate. A back-of-the-envelope example: a 2,000-page documentation site at roughly 1,500 tokens per page comes to about 3.3 million ingestion tokens with the 10% chunk overlap, inside the free allowance. If agents run 50,000 searches a month, you pay for 49 blocks of 1,000 above the allowance: about $36.75 a month. At 500,000 searches, about $374.

On the Workers Free plan a different limit bites first: at most 500 pages crawled per day, so a large site takes days to be fully indexed.

How to turn it on and test it

The domain must be onboarded to your Cloudflare account. Then:

  1. In the dashboard, open the zone and go to Overview.
  2. Under Quick Actions, turn on Search for Agents.
  3. Review the default settings and the pricing notice, then confirm.
  4. Wait for AI Search to crawl and index your content.

To check it responds, the two forms Cloudflare documents:

bash
curl --get "https://example.com/.well-known/search" \
  --data-urlencode "q=How do I verify webhook signatures?"

curl -X QUERY "https://example.com/.well-known/search" \
  --header "Content-Type: application/json" \
  --data '{"q":"How do I verify webhook signatures?"}'

Requests to the endpoint go through your WAF and AI Crawl Control, so you can throttle or block agents with the same rules you already use for bots.

Traps and edge cases

The endpoint is public and you pay for it. Anyone who finds /.well-known/search, agent or not, generates queries that count toward your bill from December 1. Before enabling it on a site with real traffic, add a rate-limiting rule on that path and watch usage for the first few weeks.

It indexes whatever the crawler can reach. Cloudflare warns you to index only content you mean to make searchable. Forgotten but still linked pages, staging environments on the same domain, or documents that were only "hidden" by not being in the menu can all end up in results. AI Search path include and exclude rules are the way to scope it.

Some choices are permanent. The embedding model (@cf/qwen/qwen3-embedding-0.6b) and the data source are fixed when the instance is created. Changing them means creating a new one.

Updates take time to show. The defaults resync every 24 hours and cache similar queries for 48 hours. If you ship an urgent fix to a page, an agent may keep getting the old version for a while.

Subdomains are out. Include subdomains is off by default: if your docs live on docs. and your blog on another subdomain, check which zone and origin each instance indexes.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗