Make Your Site Agent-Readable With One Toggle: Cloudflare Search for Agents
Cloudflare's Search for Agents builds an AI Search index for your zone, advertises it in four meta tags, and serves retrieved Markdown chunks at /.well-known/search over GET or the new HTTP QUERY method. Setup, the endpoint contract, plan limits, and what I measured against Cloudflare's own docs site.

Cloudflare shipped a toggle that turns a whole zone into something an agent can search instead of crawl. You flip it on, Cloudflare builds an AI Search instance for your domain, starts indexing, and writes four agent: meta tags into the head of every HTML page you serve. An agent that reads those tags learns the endpoint, the method, and the instructions in one pass — then calls /.well-known/search?q=… and gets retrieved Markdown chunks back.
That last sentence is the design decision worth understanding before you enable anything: the endpoint does not generate an answer. It returns the chunks; the agent's own model writes the answer. That keeps your site out of the business of competing with the caller's model, and it means your quota is spent on retrieval, not on generation.
This walkthrough covers what the toggle creates, how to verify the tags are actually live, the endpoint contract I exercised against Cloudflare's own developer documentation, the QUERY method from RFC 10008, and the plan limits that decide whether this is free or a line item. Requirements first, though, because each one changes the decision:
- The zone has to be on Cloudflare. Cloudflare's requirement is that the domain is onboarded to your Cloudflare account. Because the tags are injected into HTML at the edge, I would expect DNS-only records that bypass Cloudflare's proxy not to get them — that part is inference, not documented.
- The index is public. Anything the crawler picks up becomes retrievable by any agent that finds the endpoint, subject to your bot and firewall rules. Turn it on for a docs site, a prompt library, a changelog. Not for a staging domain.
- Usage is metered even though enabling is free. AI Search pricing begins December 1, 2026, and ingestion, storage, and queries all count against included allowances.
What the toggle actually creates
Enabling Search for Agents does not only add a route. It creates an object in your account that you can then tune, and the object has a name you will need later: search-for-agents-<ZONE_ID>, in the default namespace, with https://<YOUR_DOMAIN> as its website data source.
The parse type is fixed to discover, which walks sitemaps and links and does not require you to have a sitemap. Two properties are set at creation time and cannot be changed afterwards — the embedding model and the data source — so if you were planning to experiment with a different embedding model, decide that before you flip the switch, not after.
The rest of the defaults are adjustable from the instance's Settings tab. These are the ones that change what an agent receives:
| Setting | Default for a new instance |
|---|---|
| Parse type | discover (sitemaps and links) |
| Crawl page limit | 100,000 pages, subject to instance limits |
| Crawl depth | Five link hops from the source URL |
| Crawl cache age | 24 hours |
| Include subdomains | Off |
| Sync interval | 24 hours |
| Search mode | Hybrid: vector and keyword |
| Embedding model | @cf/qwen/qwen3-embedding-0.6b |
| Chunk size / overlap | 1,024 tokens / 10% |
| Fusion method | Reciprocal Rank Fusion |
| Maximum results | 10 chunks |
| Match threshold | 0.4 |
| Query rewriting | Off |
| Reranking | Off |
| Similarity cache | On, threshold close_enough, 48 hours |
I read that "maximum results: 10 chunks" line as a hard contract when I started testing. It is not, at least not on Cloudflare's own zone — see the measurements below.
Step 1 — Turn it on
In the Cloudflare dashboard, select the domain, open Overview, and find Search for Agents under Quick Actions. The toggle carries a Beta badge on all plans. Confirm the suggested configuration and the pricing notice, then wait for the first crawl to finish. Nothing returns results until indexing completes, and on the Free plan the crawl is capped at 500 pages per day, so a large site is not searchable on day one.
Cloudflare says you can also enable it through the API. I enabled nothing during this test — I only measured the public behaviour of a zone where it is already on, so treat the API path as documentation, not as something verified here.
Step 2 — Verify the tags are live
The discovery mechanism is four meta tags injected into the head of HTML responses. You can read the same bytes an agent reads:
curl -s https://your-domain.example/ | grep -o '<meta name="agent:[^>]*>'
Run against Cloudflare's own documentation zone on 2026-11-28, that returned exactly four tags:
<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/">
The {query} placeholder stays literal in the tag. It is a template the agent is expected to substitute, not a URL you should request as-is. If you grep your own domain and get nothing, the usual causes are: the toggle is off, you are reading a cached HTML response from before you enabled it, or the response is not HTML — Cloudflare documents the injected block as a <head> addition for HTML responses, so a JSON or image endpoint on the same zone is not the place to look.
Step 3 — Check the Markdown-for-Agents variant
If you also run Markdown for Agents — the content-negotiation feature that converts HTML to Markdown at the edge when a client asks for it — the same four fields arrive as YAML front matter on the converted page instead of as meta tags. Markdown for Agents is available only on Pro, Business, and Enterprise plans, so on a Free zone you get the meta tags but not this front matter. One request shows both behaviours:
curl -s -H "Accept: text/markdown" https://your-domain.example/ai-search/ | head -12
The real response from developers.cloudflare.com began like this:
---
agent:
instructions: "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."
endpoint: "https://developers.cloudflare.com/.well-known/search?q={query}"
method: "GET"
documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
description: Cloudflare AI Search is a managed search service. Index your content and query it with natural language from a Workers binding, REST API, or MCP server.
title: Overview
image: https://developers.cloudflare.com/ai-search/og.png?v=174c444ef16de8d7
---
Two details are easy to miss. The agent: key is a nested map, so a naive regex looking for a top-level endpoint: line will not find it. And the rest of the front matter (title, description, image) comes from your page's existing meta tags — Markdown for Agents emits those only when at least one supported tag is present, so a page with no description tag yields a thinner block, not an error.
Step 4 — Query the endpoint with GET
The contract is small: a q parameter, a Markdown response, no answer synthesis.
curl --get "https://your-domain.example/.well-known/search" \
--data-urlencode "q=how do I rotate an API token"
The response header tells you what you are getting and what else the endpoint accepts:
content-type: text/markdown; charset=utf-8
accept-query: text/plain, application/json
That Accept-Query field is the RFC 10008 discovery mechanism doing its job: the server advertises which body formats it will accept for a QUERY request before the client sends one.
The body is a sequence of chunks, each with a heading that names the source path and a relevance score, followed by the chunk's Markdown. A request for cloudflare artifacts on the developer docs zone returned this shape:
# Search results for: "cloudflare artifacts"
## docs/artifacts/api/workers-binding/index.md (score: 1.000)
# Workers binding · Artifacts · Cloudflare Artifacts docs
Call Artifacts from a Worker binding.
---
## docs/artifacts/index.md (score: 0.951)
...
Each chunk keeps its own front matter (title, description, products) when the source page had it, which is why chunks arrive as self-describing blocks rather than bare prose. The --- separator between chunks is worth respecting if you are writing a parser — split on it before you split on headings, or you will cut a chunk in half.
What the measurements actually showed
I ran a batch of requests against developers.cloudflare.com on 2026-11-28 and recorded the parts that affect how you budget context:
| Test | Result |
|---|---|
GET /.well-known/search?q=what is search for agents | 200, text/markdown, 50,667 bytes |
| Chunk count in that response | 50 chunks, scores from 1.000 down to roughly 0.7 |
GET with q=qzxvbnmplkjhgfdsa (nonsense) | 200, 50 chunks, top score 1.000 |
GET with no q parameter | 400 |
OPTIONS /.well-known/search | 405, allow: GET, HEAD, QUERY |
QUERY with a plain-text body | 200, same Markdown format |
QUERY with a JSON body | 200, same Markdown format |
Two of those rows deserve a warning label.
First, 50 chunks is five times the documented default of 10, and a nonsense query still returned 50 chunks with a top score of 1.000. Either Cloudflare's own instance is configured above the documented default, or the documented default does not describe what production zones serve. I cannot tell which from the outside. What I can tell you is that the endpoint as observed has no client-visible "no results" state — you always get a top-k slice, and a query with no semantic match still produced chunks scored near 1.0. Do not build an agent that treats a 200 response as evidence the site contains the answer. Budget for tens of kilobytes per query, and check your own instance's result count before you assume 10.
Second, scores are not comparable across zones or over time. They rank chunks within one response. Every query I sent, gibberish included, had a top score of exactly 1.000, which suggests the displayed scores are normalized per response — my inference, not documented. That would also explain why the 0.4 match threshold in the instance settings did not stop a gibberish query from returning a full result set.
Step 5 — Use QUERY when the query is long
QUERY is a new HTTP method, published as an IETF Proposed Standard in June 2026 as RFC 10008 and coauthored by Cloudflare's James Snell alongside Julian Reschke and Mike Bishop. The RFC's own summary of why it exists: a QUERY carries criteria in the request body, is safe and idempotent like GET, and unlike POST is explicitly repeatable, so caches and automatic retries are allowed to operate on it.
The method requires a Content-Type; the spec says servers MUST fail a request whose content type is missing or inconsistent with the body. Cloudflare's endpoint did not enforce that in my test — a QUERY with no Content-Type still returned 200 — so send the header anyway rather than relying on the server to catch its absence. Search for Agents accepts both a plain-text body and a JSON object with a q field:
# Plain text body
curl -X QUERY 'https://your-domain.example/.well-known/search' \
--header 'Content-Type: text/plain' \
--data 'What is the maximum push size for Cloudflare Artifacts?'
# JSON body
curl -X QUERY 'https://your-domain.example/.well-known/search' \
--header 'Content-Type: application/json' \
--data '{"q":"What is the maximum push size for Cloudflare Artifacts?"}'
Both returned 200 with the same Markdown chunk format as GET in my test, and the top chunk carried the actual limit — 64 MiB per push — rather than a summary of it. That is the practical argument for this endpoint: the agent gets the sentence with the number in it, from the source file, and its own model does the rest.
You do not need a bleeding-edge curl to send this. My test machine ran curl 7.88.1 from Debian bookworm, released in 2023, and -X QUERY with --data worked, because curl has always been willing to send an arbitrary method string. What stock curl will not do is treat QUERY as cached or retryable by default — the safety semantics live in the RFC, not in an old client's heuristics.
Step 6 — Teach an agent to use it
Discovery is passive: the tags are on the page, and an agent that reads the page can act on them. If you control the agent, skip the discovery round trip and give it the contract directly. A compact tool definition plus one prompt line is enough:
{
"name": "site_search",
"description": "Search this site's index instead of crawling pages. Returns Markdown chunks with relevance scores.",
"parameters": {
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Keywords or a natural-language question."
}
},
"required": ["q"]
}
}
Before fetching any page on this domain, call site_search with the user's
question. Read the returned chunks and cite the source paths in your answer.
If a chunk does not contain the number or fact you need, search again with
different wording rather than fetching pages speculatively.
The second sentence matters more than the first. Because the endpoint always returns chunks, the failure mode is not an empty response — it is an agent confidently reading an irrelevant chunk. Requiring the agent to name the source path it used makes that failure visible in the transcript.
I have not benchmarked this against a crawling baseline, and no published comparison exists to borrow.
Plan limits, quotas, and cost
Search for Agents is available on all plans including Free, inside AI Search's limits. The Free tier is generous enough to test and small enough to constrain a real site:
| Limit | Workers Free | Workers Paid |
|---|---|---|
| AI Search instances per account | 100 | Unlimited, default cap 5,000 ($0.10/month above 5,000) |
| Files per instance | 100,000 | 1M, or 500K for hybrid search |
| Pages crawled per day | 500 | Unlimited |
| Included semantic queries / month | 1,000 | 1,000 |
| Included full-text queries / month | 1,000 | 1,000 |
| Maximum PDF file size with OCR enabled | 10 MiB | 10 MiB |
| Maximum plain-text or code file size | 10 MiB | 10 MiB |
| Maximum size for PDFs without OCR and other file formats | 4 MiB | 4 MiB |
The daily crawl cap is the one that bites. Website crawling is bounded by several limits at once — page count per crawl, files per instance, pages per day — and on Free the 500-pages-per-day ceiling is the binding one. A 4,000-page docs site needs at least eight days before it is fully indexed, and every re-crawl competes with that budget.
Billing starts 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 per month included. Beyond that:
| Usage | Price |
|---|---|
| Base ingestion | $0.75 per million tokens |
| Image processing (including OCR) | Additional $0.50 per million tokens |
| Storage | $2.00 per GB-month |
| Semantic, vector, and hybrid queries | $0.75 per 1,000 queries |
| Full-text queries | $0.10 per 1,000 queries |
Ingestion tokens are counted on the final chunks after parsing and chunking, tokenized with cl100k_base, and because chunks overlap by 10% by default the overlapping text is billed once per chunk it appears in. If you want to estimate your bill before enabling, tokenize your content with tiktoken and add the overlap tax. None of this shows up on separate R2, Vectorize, or Browser Run bills: storage is billed as AI Search storage at the rate above, and vectors and the keyword index do not count toward it.
One more cost note that is easy to overlook: the similarity cache is on by default with a 48-hour window. With the close_enough threshold, repeated and near-duplicate queries inside that window can be served from the cache rather than a fresh retrieval. Cloudflare does not say whether cache hits count against your query allowance, so do not bank on the savings; the certain effect is on anyone trying to measure retrieval quality repeatedly with the same or similar strings.
Discovery is not access control
This is the part I would get wrong if I only read the announcement. Search for Agents decides whether agents can find your content efficiently. It does not decide whether they are allowed to.
Requests to the search endpoint remain subject to your AI Crawl Control and WAF configuration, and to your bot management settings. So the two systems compose in a specific order: the meta tags advertise an endpoint that your firewall and bot rules may still refuse. If you have a WAF rule blocking non-browser user agents, or an AI Crawl Control policy that blocks agent-classified traffic, turning on Search for Agents will not override it. You will have published a signpost to a locked door, and the agent will see the block, not the index.
The distinction has a longer history on this site. Cloudflare's granular bot controls split crawler policy into Search, Agent, and Training purposes — that is the access-control half, and it is where you decide who may read you. Search for Agents is the discovery half, and it is where you decide how cheaply a permitted agent can find the right page. If you want the control surface on the other side of the fence, the Cloudflare MCP server guide covers programmatic access to the same account, and the AI SEO audit workflow covers the machine-readable files — robots, llms.txt, structured data — that sit beside this endpoint.
What is missing, and what I could not verify
There is no retrieval-quality benchmark. Cloudflare's post says agents do a good job of discovering and reusing the endpoint during a session, based on their own developer documentation. That is a product-team observation about discovery behaviour, not a measurement of whether the retrieved chunks answer questions. Nobody has published recall, precision, or answer-accuracy numbers for this endpoint against a fixed question set, and I did not build one. Treat "agents find it and use it" and "the results are good" as two separate claims, and only the first has public evidence.
The chunk count does not match the documentation. Documented default is 10 chunks; observed on Cloudflare's zone is 50. Verify on your own instance rather than trusting either number.
The response has no client-visible empty state. A nonsense query returned a full result set. Whatever relevance filtering exists happens inside a top-k selection, not as a filter that can return nothing.
I did not enable the feature on a zone of my own. Everything here was measured from the outside against a zone where it is already enabled, which means I can describe the contract precisely and cannot describe the crawl behaviour, the dashboard confirmation flow, or the first-index latency from first-hand experience.
Failure points worth pre-empting
- A 400 means
qis missing or empty. The response istext/plainand the body names the problem —Missing query parameter: ?q=— so the error tells you which parameter to supply rather than leaving you to infer it. If you are templating the URL, make sure an empty string does not survive as?q=. - Tags missing from your HTML but present for someone else is usually a caching problem. Purge the edge cache for the page before you conclude the feature is broken.
- Results look stale after a content change. Sync interval defaults to 24 hours and the similarity cache holds results for 48. A page edited an hour ago is not in the index, and an identical query may not even reach it once it is.
- The agent gets a block page or a 403 instead of chunks. Your WAF or AI Crawl Control rules are deciding, and that happens upstream of the index — the search settings are not where you fix it.
- Small sites finish indexing in minutes; large ones do not. On Free, 500 pages per day is a hard ceiling, and re-crawls likely draw on the same budget (Cloudflare does not spell this out).
- You want a different embedding model and cannot have one. The model is fixed at instance creation. Recreating the instance is the only path, which means a fresh crawl.
The one-toggle framing is accurate about effort, not about consequence. Flipping it publishes a search interface to the open web and commits your plan to metered usage. The tags are cheap to verify and the contract is five lines long — that is the part worth doing today. The relevance tuning, the WAF interaction, and the quota math are the parts that decide whether agents come back.
Sources
- Cloudflare: Introducing Search for Agents — announcement post, 2026-11-25
- RFC 10008: The HTTP QUERY Method — IETF Proposed Standard, June 2026
- RFC 10008 status and authors — J. Reschke, J.M. Snell (Cloudflare), M. Bishop (Akamai)
- Search for Agents — Cloudflare AI Search docs — toggle steps, defaults, endpoint contract
- AI Search limits and pricing — plan limits, included usage, per-unit rates
- Markdown for Agents — content negotiation and front matter fields
- Live checks against
developers.cloudflare.comon 2026-11-28: page head,.well-known/searchover GET, QUERY (text and JSON), OPTIONS, and a deliberately meaningless query
Related Articles & Guides
Pick Your Quantization With Data: llama.cpp's AMD Benchmark Dashboard
What PP512 and TG128 actually measure, why the context-scaling tab changes the answer for long prompts, and how to read llama.cpp's public AMD benchmark data so a build regression never reaches your machine.
Three Open Datasets and a Pass Strategy: Adapting Nemotron Parse to Your Own Forms
Adapt Nemotron 3.5 Parse to forms it was never trained on: the three released synthetic datasets, the SFT → GRPO recipe with a verifier you define, and single/double/triple-pass parsing with its measured accuracy and throughput cost.
Build a Pose + Costume + Character Reference Pipeline
Build a three-reference image pipeline: a character portrait, a pose mannequin, a ghost-mannequin outfit, a role contract, and a short Node script for OpenAI-compatible image edits.