I asked Cloudflare's docs about sourdough and got a perfect match
Cloudflare's new search endpoint for agents, tried with curl: GET, the new QUERY method, what comes back, why every score is 1.000, and who pays for it.
By Meet ModiI asked Cloudflare's developer docs how to get the hydration right on a sourdough starter. The new search endpoint answered in 1.8 seconds with 50 results, and the top one, the docs page listing the open source projects Cloudflare sponsors, scored a perfect 1.000. That is the most useful thing I learned about Search for Agents, the new Cloudflare AI Search feature, and it is not in the announcement.
What Cloudflare shipped
Cloudflare AI Search is their managed retrieval service. You point it at a data source, it crawls, chunks, embeds and indexes the content, and then it answers search requests with the passages that match best. It could already take a website as a source. What the announcement adds is the setup and the plumbing: one toggle under Quick Actions on your domain's Overview page, and the search shows up on your own domain, where agents can find it.
The docs list what you get by default. An instance named search-for-agents followed by your zone ID. A crawl that finds pages through sitemaps and links, up to five hops deep, recrawled every 24 hours. Hybrid search, meaning vector and keyword search fused with Reciprocal Rank Fusion. The embedding model is Qwen3 Embedding 0.6B, chunks are 1,024 tokens with 10% overlap, results stop at 10 chunks, and a similarity cache keeps answers to near-identical queries for 48 hours. Reranking and query rewriting are off. The embedding model and the data source are fixed once the instance exists, so changing either one means starting over. It is in beta and available on every plan, including Free.
How an agent finds it
An endpoint nobody knows about is not much use, so Cloudflare advertises it on every page of the site. These four tags were in the head of a Durable Objects docs page when I fetched it:
$ curl -sS https://developers.cloudflare.com/durable-objects/api/alarms/ \
| grep -oE '<meta name="agent:[^>]*>'
<meta name="agent:instructions" content="Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown.">
<meta name="agent:endpoint" content="https://developers.cloudflare.com/.well-known/search?q={query}">
<meta name="agent:method" content="GET">
<meta name="agent:documentation" content="https://developers.cloudflare.com/ai-search/how-to/search-for-agents/">If the site also has Markdown for Agents turned on, a request with Accept: text/markdown gets the same four values as YAML front matter at the top of the page. I fetched the announcement post that way and the front matter was there, pointing at blog.cloudflare.com's own search endpoint.
Look at the first tag again. It is a sentence written by the site, addressed to the agent, telling it what to do next. This one is polite and harmless. But the mechanism is a website putting instructions into its pages for visiting agents to follow, which is the exact pattern we spend the rest of the year telling agents to be suspicious of. An agent that obeys this tag on trust will obey a less polite one too.
What was missing before
An agent working through a docs site had three options. Fetch pages one at a time and hope the navigation leads somewhere. Use a general web search and hope the site ranks for its own content. Or read an llms.txt file, which is a list of pages with descriptions, not a search. The Cloudflare docs page I fetched carries a pointer to its llms.txt right at the top, so they are doing both.
Markdown for Agents solved a different problem: once an agent knows which page it wants, it gets Markdown instead of HTML. Search for Agents answers the question before that one, which page to read. On a site with thousands of pages, that is the expensive question.
I tried it with curl
You do not need a Cloudflare account to try the client side. Cloudflare has it turned on for developers.cloudflare.com and blog.cloudflare.com. Their main site, www.cloudflare.com, redirects the path to a trailing slash and then serves a 404, so it is not on everywhere they run. First, the headers:
$ curl -sS -D - -o body.md \
"https://developers.cloudflare.com/.well-known/search?q=search%20for%20agents"
HTTP/2 200
...
content-type: text/markdown; charset=utf-8
content-length: 42577
accept-query: text/plain, application/json
...That accept-query header is from RFC 10008, which defines the HTTP QUERY method. It was published in June 2026, and one of its three authors, James Snell, works at Cloudflare. QUERY is a request with a body, like POST, that promises not to change anything on the server, like GET. So a client can retry it after a dropped connection without wondering whether it did something twice. The header tells you which body formats the endpoint takes.
Then the same question three ways: GET, QUERY with a plain text body, and QUERY with JSON.
H=https://developers.cloudflare.com/.well-known/search
fmt='status=%{http_code} bytes=%{size_download} time=%{time_total}s\n'
curl -sS -o nl.md -w "$fmt" --get "$H" \
--data-urlencode "q=How do I set an alarm in a Durable Object?"
curl -sS -o qt.md -w "$fmt" -X QUERY "$H" -H 'Content-Type: text/plain' \
--data 'How do I set an alarm in a Durable Object?'
curl -sS -o qj.md -w "$fmt" -X QUERY "$H" -H 'Content-Type: application/json' \
--data '{"q":"How do I set an alarm in a Durable Object?"}'
cmp -s qt.md qj.md && echo same-as-text
cmp -s nl.md qt.md && echo same-as-GETstatus=200 bytes=52489 time=0.855279s
status=200 bytes=52489 time=0.748905s
status=200 bytes=52489 time=0.663667s
same-as-text
same-as-GETAll three returned the same 52,489 bytes. Your curl does not need QUERY support for this to work: -X sends whatever method name you give it. QUERY without any Content-Type header also worked, curl's default form type included. And the edges:
$ curl -sS -w '\n%{http_code}\n' "$H?q="
Missing query parameter: ?q=
400
$ curl -sS -w '\n%{http_code}\n' -X POST "$H" -H 'Content-Type: text/plain' --data 'durable objects alarms'
Only GET, HEAD, and QUERY are supported.
405
$ curl -sS -X OPTIONS -D - -o /dev/null "$H" | grep -iE '^(HTTP|allow)'
HTTP/2 405
allow: GET, HEAD, QUERYShort, honest errors. POST gets refused rather than quietly treated like QUERY, which will surprise anyone whose fetch wrapper only knows GET and POST.
What comes back
A Markdown document. A heading with your query, then one block per result: a path, a score, the page title, sometimes a section name, and the chunk text. The top of the Durable Objects answer:
# Search results for: "How do I set an alarm in a Durable Object?"
## docs/durable-objects/api/alarms/index.md (score: 1.000)
# Alarms · Cloudflare Durable Objects docs
Schedule future wake-ups for Durable Objects using the Alarms API with guaranteed at-least-once execution.
---
## docs/durable-objects/examples/alarms-api/index.md (score: 0.995)
...The answer was in there. setAlarm shows up 22 times in the response, including a section on the method itself. Retrieval did its job. Four things surprised me about the shape, though.
- It is big. 50 results, 52,489 bytes, 7,012 words, for one question. Every query I sent to the docs came back with 50. The docs give 10 chunks as the default for a new instance, so Cloudflare has evidently raised it on their own. On your site you would get 10 unless you change it. An agent pulling 7,000 words into its context per search will feel that.
- It repeats itself. Of the 50 results, 45 were distinct paths. One example page appeared three times as different chunks with different scores.
- On the docs site, results carry a path, not a URL. Requesting https://developers.cloudflare.com/docs/durable-objects/api/alarms/index.md gives a 404. Drop the docs/ prefix and it is a 200. An agent has to guess that. The blog's endpoint returns full URLs, so it depends on how the site is crawled.
- Nothing in the headers says how long you may cache the response. No cache-control, no age, nothing.
The sourdough test
To see what a miss looks like, I asked about something Cloudflare has never documented:
$ curl -sS -o nonsense.md -w "$fmt" --get "$H" \
--data-urlencode "q=best sourdough starter hydration"
status=200 bytes=50438 time=1.770669s
$ grep -c '^## ' nonsense.md
50
$ grep '^## ' nonsense.md | head -5
## docs/sponsorships/index.md (score: 1.000)
## docs/sandbox/sdk/api/storage/index.bucketprovider.md (score: 0.915)
## docs/use-cases/performance/connections/index.early-hints.md (score: 0.914)
## docs/smart-shield/get-started/index.packages-and-availability.md (score: 0.910)
## docs/ai/models/bytedance/seedance-1-pro/index.parameters.md (score: 0.904)Fifty results, the Sponsorships page on top at 1.000, the fifth one at 0.904. The real Durable Objects answer had its fifth result at 0.927. From the scores alone, the agent cannot tell my sourdough question from a good one.
The top result scored exactly 1.000 on every one of the nine queries I sent across both sites, so the scores are rescaled so the best hit in each response is 1. That makes them useful for ordering one list and useless for comparing two. The default match threshold of 0.4 is presumably applied to the raw scores before that rescaling, and whatever it filtered, it did not filter this. The practical upshot: an agent using this endpoint has to read the passages and decide for itself whether they answer anything. That is fine for a strong model. It is not fine for a pipeline that takes the top result and moves on.
Searching the blog for the blog's own announcement
The announcement is about QUERY support, so I asked the blog's endpoint about it:
$ curl -sS -o blogq.md --get https://blog.cloudflare.com/.well-known/search \
--data-urlencode "q=HTTP QUERY method"
$ grep '^## ' blogq.md | head -5
## https://blog.cloudflare.com/zh-cn/mcp-security-updates (score: 1.000)
## https://blog.cloudflare.com/ko-kr/how-to-test-http-3-and-quic-with-firefox-nightly (score: 0.997)
## https://blog.cloudflare.com/ja-jp/conversational-search-with-nlweb-and-autorag (score: 0.996)
## https://blog.cloudflare.com/async-quic-and-http-3-made-easy-tokio-quiche-is-now-open-source (score: 0.992)
## https://blog.cloudflare.com/ko-kr/async-quic-and-http-3-made-easy-tokio-quiche-is-now-open-source (score: 0.990)29 of the 50 results were translated copies of posts, under paths like /zh-cn/ and /ko-kr/, for a query in English. The announcement was not in the 50 at all. Asking it as a question, "Which RFC defines the HTTP QUERY method?", did no better: top hits about HTTP/3 and an RPC library, 23 translations, no announcement. Only when I put the product name in the query, "Search for Agents HTTP QUERY RFC 10008", did the post come back first at 1.000.
Two lessons. For the people querying: distinctive names find things, descriptions of things often do not. For site owners: the crawler indexes what it finds by following links, and that includes every translated copy and every listing page. The pricing page points at path filtering with include and exclude rules for trimming what gets indexed. On a multilingual site I would set those up before anything else, both for better results and because you pay to store all of it.
What you can do with it
Search Cloudflare's docs from a terminal. This turns the docs results into real URLs, drops repeats and keeps five:
cfdocs() {
curl -sS --get "https://developers.cloudflare.com/.well-known/search" \
--data-urlencode "q=$*" |
grep '^## docs/' |
sed -E 's|^## docs/(.*)/index[^ ]*[.]md [(]score: ([0-9.]+)[)]|\2 https://developers.cloudflare.com/\1/|' |
awk '!seen[$2]++' | head -5
}$ cfdocs "workers cron trigger timezone"
1.000 https://developers.cloudflare.com/workers/examples/cron-trigger/
0.975 https://developers.cloudflare.com/workers/configuration/cron-triggers/
0.956 https://developers.cloudflare.com/workers/examples/multiple-cron-triggers/
0.950 https://developers.cloudflare.com/workers/runtime-apis/handlers/scheduled/
0.872 https://developers.cloudflare.com/workers/testing/miniflare/core/scheduled/I opened three of those URLs and all three were 200s. Changelog entries use a different path shape and pass through unconverted, which is fine for a terminal helper and not fine for anything bigger.
Check whether a site has it. The meta tag is the reliable signal, because a missing endpoint can come back as a 404, a 403 from bot protection, or a redirect:
has_agent_search() {
curl -sS "https://$1/" | grep -o 'name="agent:endpoint" content="[^"]*"' \
|| echo "$1: no agent:endpoint tag"
}$ has_agent_search developers.cloudflare.com
name="agent:endpoint" content="https://developers.cloudflare.com/.well-known/search?q={query}"
$ has_agent_search www.modimeet.com
www.modimeet.com: no agent:endpoint tagThis blog is served by Vercel, not Cloudflare, so the toggle is not mine to flip and I have not turned it on for any site. Everything about the owner's side here comes from the docs. Out of curiosity I sent one request to the endpoint on discord.com, www.canva.com, nodejs.org and www.npmjs.com: three 404s and a 403. Three days in, it is mostly Cloudflare's own sites.
If you do run a site on Cloudflare and want this, the order I would go in: trim the paths you do not want indexed, add a WAF rate limiting rule for /.well-known/search, then flip the toggle, then query it yourself with the questions your users actually ask. The response format is the same retrieval output I wrote about in a RAG pipeline I traced, just served over plain HTTP, and the same advice holds: look at what came back before trusting what the model does with it.
The catch: anyone can spend your query budget
The endpoint is public. No key, no account, no signup: I sent every request in this post from a plain curl. That is the point of it, and it is also the bill. The site owner pays for every query, on the AI Search pricing, and billing starts on December 1, 2026.
The included amount is per account, not per instance: 1,000 semantic queries and 1,000 full-text queries a month, 5 million ingestion tokens and 10 GB-month of storage. Search for Agents uses hybrid search, and the pricing table puts hybrid queries in the same row as semantic ones, at $0.75 per 1,000 past the included amount. So 100,000 queries in a month would be 99,000 over, or $74.25. A crawler that decides your search endpoint is a nice cheap way to read your whole site could get there.
What the docs do not say: whether a hit on the similarity cache still counts as a billed query, and whether there is any rate limit on the endpoint beyond what you configure. They do say requests are subject to your WAF, bot management and AI Crawl Control settings, so the tools to limit it exist. You have to set them up yourself.
Smaller things I would wait on:
- On the Workers Free plan the crawler indexes at most 500 pages a day, so a 5,000 page site takes about ten days for its first full index.
- It is not a standard. The /.well-known/ prefix comes from RFC 8615, but search is not one of the 107 entries in the IANA registry as of November 28. Another vendor could pick a different path tomorrow.
- Nobody has said which agents use it. The announcement shows OpenCode finding and using the docs endpoint. It does not mention ChatGPT, Claude or Gemini, and I found nothing from those vendors.
- It is in beta, and the defaults you accept at creation include an embedding model you cannot change later without starting again.
Questions people are asking
What is Cloudflare AI Search?
Cloudflare AI Search is a managed retrieval service. You point it at a data source such as a website, an R2 bucket or a D1 database, and it crawls, chunks, embeds and indexes the content, then answers search requests with the most relevant passages. You can query it from a Worker, from public REST or MCP endpoints, or through Search for Agents at /.well-known/search on your domain.
What is Cloudflare Search for Agents?
Search for Agents is a beta Cloudflare feature, announced on November 25, 2026, that sets up an AI Search index for a whole site with one dashboard toggle. Cloudflare crawls the site, serves results as Markdown at /.well-known/search on the same domain, and adds meta tags to every page so agents can discover the endpoint. It is available on all plans, including Free.
How much does Cloudflare AI Search cost?
Every account gets 5 million ingestion tokens, 10 GB-month of storage, 1,000 semantic queries and 1,000 full-text queries a month included. Past that, ingestion is $0.75 per million tokens, storage $2.00 per GB-month, semantic, vector and hybrid queries $0.75 per 1,000, and full-text queries $0.10 per 1,000. Billing begins on December 1, 2026, according to Cloudflare's pricing page.
What is the HTTP QUERY method?
QUERY is an HTTP method defined in RFC 10008, published in June 2026, for sending a query in the request body. Unlike POST, it is defined as safe and idempotent, so a client can retry it without worrying about changing anything on the server. Unlike GET, it does not need the query squeezed into the URL. Cloudflare's /.well-known/search accepts it with a plain text or JSON body.
HTTP QUERY vs POST: what is the difference?
Both carry a request body, but QUERY promises the request changes nothing on the server, and POST makes no such promise. That means a QUERY can be retried automatically after a dropped connection, the way a GET can, while a POST in general cannot. Against Cloudflare's search endpoint, POST is refused with a 405 error and QUERY returns the same results as GET.
Is /.well-known/search a standard?
No. The /.well-known/ prefix itself is defined in RFC 8615, but search is not registered in the IANA well-known URI registry, which had 107 entries and none for search when I checked on November 28, 2026. For now it is a Cloudflare convention. The QUERY method the endpoint supports is an IETF standard. The path it lives on is not.
How do I make my website searchable by AI agents?
If the site is on Cloudflare, turn on Search for Agents under Quick Actions on the domain's Overview page, then wait for the crawl to finish before testing it. Before you flip it, exclude paths you do not want indexed, such as translated copies, and add a rate limiting rule for /.well-known/search, because the endpoint is public and you pay for queries past the included 1,000 a month.
Sources
- Introducing Search for Agents, The Cloudflare Blog
- Search for Agents, Cloudflare AI Search docs
- AI Search limits and pricing, Cloudflare AI Search docs
- Markdown for Agents, Cloudflare docs
- RFC 10008: The HTTP QUERY Method, RFC Editor
- Well-Known URIs registry, IANA
More Posts
My test skill ran curl before the model read a word
An agent skill told the model how to slip a download past safety checks. What got fixed, what I found in my own skills folder, and a hook that blocks it.
The policy that locked four doors and left the fifth open
Card skimmers on five store sites moved data over WebRTC. I tested a strict CSP locally: four requests blocked, the data channel untouched.
Two services, one topic, either deploy order
A shared topic is only safe if the old consumer ignores what the new producer adds. One field with a default, and either side can roll back alone.