Cloudflare Search for Agents is worth switching on if your website holds a large body of public documentation, product detail or articles that an AI agent might need to search, and you are prepared to watch the usage it creates. A small business site with a handful of service pages is likely to gain little from it. Cloudflare announced it on 25 November 2026 as a beta on all plans, including Free, with a single dashboard toggle, and its Search for Agents documentation explains how it works.
You can also build your own agent search without Cloudflare, as this website has done. The choice comes down to how much content you have, how you want it searched and who will maintain the search service.
What did Cloudflare launch?
Search for Agents gives an AI agent a search facility on your own domain. Rather than fetching individual pages and working through their contents, the agent sends a search request and receives relevant passages from your website. Cloudflare builds the index, serves the endpoint and advertises it on your pages, so the owner's part is the decision and the settings.
Cloudflare's documentation puts the distinction plainly: "The endpoint returns relevant content in Markdown, not an AI-generated answer." An agent already has its own model to compose any answer, so what it needs from your website is the relevant information.
How does Cloudflare Search for Agents work?
Cloudflare creates an AI Search instance for your domain, crawls the website, builds a searchable index and makes that index available through an endpoint at /.well-known/search. It also adds information to your pages telling agents where the endpoint is and how to use it.
The instance is named search-for-agents-<ZONE_ID> and uses your website as its data source. You can open it from your domain's Overview page or through AI Search in your Cloudflare account. It crawls with a method called Discover, which finds content by following links and reading sitemaps, although a sitemap is not required.
Turning the feature on accepts Cloudflare's suggested configuration. These defaults are worth understanding before you do:
- The index synchronises every 24 hours, with a crawl cache age of 24 hours.
- Hybrid search combines keyword matching with vector search, which looks for similarities in meaning.
- Content is divided into chunks of 1,024 tokens, with a 10% overlap between neighbouring chunks.
- Searches return a maximum of 10 chunks, subject to a match threshold of 0.4.
- Crawling follows links up to five hops deep, and subdomains are excluded by default.
- Query rewriting and reranking are switched off, while the similarity cache is enabled with a duration of 48 hours.
These are among Cloudflare's documented defaults at launch. Configurable settings can be changed later in the instance's Settings tab, but some, such as the embedding model and data source, are fixed when the instance is created.
A returned chunk is a passage, so 10 results can come from fewer than 10 pages. Because of the sync and cache settings, a page you change does not immediately change what the endpoint returns. Cloudflare also pauses scheduled syncs after 31 days without a search request, and a paused index stays searchable but stops picking up changes.
How do agents find the search endpoint?
Cloudflare adds four meta tags to the head of HTML responses. They describe the search facility, its address, the request method and where an agent can find further instructions. Because the tags go into HTML responses across the site, an agent arriving at an article or product page can discover the search facility without first finding the homepage. These are the tags shown in Cloudflare's documentation, using an example domain:
<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://example.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 you also enable Markdown for Agents, Cloudflare includes the same discovery information in YAML front matter when a client requests a page using the Accept: text/markdown header. These tag names are Cloudflare's convention, not a W3C or IETF standard, so an independent website can adopt them without any guarantee that every agent will recognise them.
What is the HTTP QUERY method, and do you need it?
You do not need HTTP QUERY to provide agent search. An ordinary GET request with a search parameter is enough for a usable search interface. QUERY, published in June 2026 as RFC 10008, is another way to send the search criteria: in the request body rather than the URL, as a safe operation that can be repeated. Cloudflare documents the following QUERY request:
curl -X QUERY "https://example.com/.well-known/search" --header "Content-Type: text/plain" --data "How do I verify webhook signatures?"
Cloudflare also accepts a JSON request body containing a q field, using the application/json content type. Both methods retrieve content from the same search index.
Client support is still developing. In its launch announcement, Cloudflare named curl and undici as examples of adoption, while browser vendors were discussing support. For an independent build, start with GET and add QUERY when a client needs it.
Should you turn on Cloudflare Search for Agents?
Turn it on if your website contains a substantial amount of public information that an agent could usefully search, you are comfortable making that information available through a search endpoint, and you are prepared to monitor the usage. Leave it off if your website has little content or if exposing searchable excerpts conflicts with your existing access policy. Websites with a practical use for the feature include:
- Software and equipment documentation with detailed technical references.
- Help centres containing answers to customer support questions.
- Product catalogues with specifications and descriptions spread across many pages.
- Established blogs with articles covering related subjects in depth.
A local business website with a homepage, a few service pages and contact details is a different case. An agent that can read those pages may already have everything it needs, and a separate index adds another service to maintain without solving a real retrieval problem.
When should you leave it switched off?
Leave it off for content you would not want returned through a public search request. Cloudflare advises owners to index only content that is intended to be publicly searchable. A page being reachable is not the same as the business wanting its passages in a searchable collection, so decide the scope before the site-wide crawl. Private or members' content needs a login or other access control, never a robots.txt rule alone.
Two separate controls apply. What enters the index depends on the crawl: Cloudflare's crawler documentation for website sources says the crawler identifies itself as Cloudflare-AI-Search, records pages disallowed in robots.txt as blocked instead of indexing them, and rejects the crawl when a robots.txt Content Signals line sets search or ai-input to no. That documentation does not mention noindex tags, so do not count on one to keep a page out.
Who receives results is a different question. Cloudflare's Search for Agents documentation states that requests to the endpoint remain subject to AI Crawl Control and Web Application Firewall (WAF) configurations. A robots.txt rule changes what gets indexed, while a WAF or AI Crawl Control rule changes who can query the endpoint, so check both against your policy. The guide to managing automated access to your website explains the separate access decisions available to website owners.
Should you build your own agent search instead?
Build your own if your website is outside Cloudflare, you need precise control over searchable content and result formatting, or you already have a site search that can be exposed to agents. Otherwise, Cloudflare's toggle avoids much of the work involved in creating and maintaining a separate search interface.
The Cloudflare route needs no code to switch on, though the careful rollout described later asks for robots.txt edits, WAF rules and test requests. An independent build is developer work, because it needs a functioning search service, instructions explaining how to use it and a reliable way for clients to discover it.
What should your search documentation contain?
Publish one documentation file that tells an agent how to make a valid request without guessing. It should cover what the search includes, the address and method, each parameter, the limits, the response fields and what errors mean. Point the documentation tag in your page head to it, so an agent that finds the tags can read the rules before its first search. A custom file can start with YAML front matter like this:
---
agent:
instructions: "Search this website for relevant public content. Results are returned in Markdown."
endpoint: "https://example.com/search.md?q={query}"
method: "GET"
documentation: "https://example.com/search.md"
---
How should your search results be presented?
Provide an endpoint that accepts GET requests and returns relevant content in Markdown, with a JSON version for developers whose clients need structured data. Give each result a title, the original page address, its Markdown address where available and a relevant excerpt. If your implementation produces a match score, explain what that score represents, and return published information rather than a generated answer.
You can use Cloudflare's /.well-known/search path or choose an address of your own, and the discovery tags can point to either. A client that knows Cloudflare's convention can try the well-known path without reading a page, while one that only guesses that path would miss a search at /search.md. With a custom address, accurate discovery tags matter more.
Where does llms.txt fit?
Use llms.txt as a concise guide to the website, including directions to the search documentation and endpoints. It complements the search service rather than providing search itself. The llms.txt proposal, version 2.1, published at llmstxt.org, recommends standard link relations for discovering Markdown versions of pages and the llms.txt files that describe them.
The root file should identify the website, explain what it covers and organise links to relevant content. Its Search section can direct an agent to the search instructions and both endpoints. The proposal gives this example of an HTTP response header:
Link: </docs/page.md>; rel="alternate"; type="text/markdown", </docs/llms.txt>; rel="describedby"
The alternate relation identifies the Markdown version of a page. The describedby relation points to the llms.txt file covering that content.
It is also worth supporting Accept: text/markdown on ordinary page URLs. Answering that header lets an agent get Markdown from a page address it already knows, alongside any separate Markdown addresses. Send Vary: Accept with those responses and check that your cache or CDN honours it, or leave them uncached, so a cache does not hand Markdown to a browser or HTML to an agent.
A worked example: the agent search on ncristea.com
This website runs its own agent search, developed for the site rather than through Cloudflare's toggle. Checked on 1 December 2026, its public HTML pages carry all four agent tags from Cloudflare's convention plus an extra agent:methods field. The search address is https://ncristea.com/search.md?q={query}, and GET is the supported method. The public resources are:
/search.mdfor search documentation and Markdown search results./search.jsonfor the same results as JSON, with a match score from 0 to 100./llms.txtand/blog/llms.txtfor guidance about the website and its blog./agent-documentation.mdfor instructions about searching and reading the website./agent-permissions.jsonfor guidance about permitted automated activity.
Searches take the parameters q, page and type, and the type filter narrows results to one kind, such as blog posts or services. Queries are limited to 100 characters and 5 words, results to 10 per page, and the stated rate limit is 30 searches a minute from one address.
Each result gives its title, original address, Markdown address, kind and a short excerpt. The response is retrieved information from the website, never a written answer. The pages checked send Link response headers pointing to their Markdown copy and to /llms.txt, and the blog post checked also points to /blog/llms.txt. Unlike Cloudflare's version, the search lives at its own address rather than /.well-known/search, answers GET without HTTP QUERY, and adds a JSON endpoint and a permissions file.
For any independent build, per-query charges depend on the search service behind the endpoint, which can itself be a paid service such as Cloudflare AI Search. The other costs are development, keeping content current and maintaining the interface, and the build still has to limit the collection to public content, drop pages that are withdrawn and apply a rate limit.
Can you have agent search built without Cloudflare?
Yes. A developer can build the same kind of agent search on your current host and domain, provided the hosting can run it, with no Cloudflare account or nameserver change. It suits firms that would rather not move their DNS to Cloudflare or route their traffic through it. It also suits firms that want to decide exactly what is searchable and how results look, or that already run a site search agents could use.
I build this by hand in PHP and MySQL, mainly for bespoke websites rather than WordPress, with training for your staff included. Which of the parts described above your site needs is agreed on a short call, and the hosting and code are checked before the scope is fixed. Each build is priced by written quote, with the scope agreed in writing before work starts.
Is it worth it?
It is worth it when searching your website is a genuine task an agent might need to perform, and the usage stays within a cost you accept. It is harder to justify as an SEO purchase, because the launch material offers no evidence of improved rankings, citations or enquiries. For a small business, the decision also depends on the cost of keeping the index and how often it is actually searched.
What does Cloudflare Search for Agents cost?
Each Cloudflare account gets one monthly AI Search allowance, shared with any other AI Search use on that account, of 5 million ingestion tokens, 10 GB-month of storage, 1,000 semantic queries and 1,000 full-text queries. Beyond that, base ingestion costs $0.75 per million tokens, storage $2.00 per GB-month, semantic, vector or hybrid queries $0.75 per 1,000 and full-text queries $0.10 per 1,000, in US dollars, according to Cloudflare's AI Search limits and pricing page as read on 1 December 2026, the day AI Search billing began.
Image processing, which includes text read from images and scanned documents by optical character recognition (OCR), adds $0.50 per million tokens on top of base ingestion, and those tokens share the 5 million token allowance. The pricing page does not mention VAT, so a UK business should check how VAT is treated on its actual invoice.
Crawling has its own limits. On Workers Free, Cloudflare caps crawling at 500 pages a day and 100,000 files per instance. Workers Paid has no daily crawl cap, though a Discover crawl still stops at 100,000 pages on either plan.
What determines your monthly bill?
Page count alone does not tell you the cost, because ingestion is measured in tokens. Cloudflare counts tokens on the final chunks after parsing, and because neighbouring chunks overlap, the overlapping text is counted in each chunk it appears in. Long articles and detailed technical documents therefore cost more to process than short contact or service pages.
Storage measures the content the instance keeps, and vectors and the keyword index do not count toward it. Search usage depends on the requests received and the search mode. Cloudflare's pricing documentation recommends narrowing path filtering and removing duplicate or unnecessary files to reduce storage, which can also leave a cleaner collection for an agent to search. No typical monthly bill can be quoted for a small website without knowing its content and search usage, so a closely monitored trial shows real figures for that period.
Will it improve rankings or get your website into AI answers?
None of the sources checked for this article shows that it does. Cloudflare's launch material reports no ranking, citation or enquiry gains, and Google Search Central's guidance on AI features and your website says that websites do not need additional AI-specific machine-readable files or markup to appear in AI Overviews or AI Mode. An agent search endpoint does not change that guidance.
Cloudflare's launch announcement showed an OpenCode coding agent discovering the endpoint on Cloudflare's own developer documentation and using it to answer a question. That demonstrates the mechanism, but not that ChatGPT, Google or Perplexity discover and use the endpoint on other websites by themselves.
The practical benefit is narrower: an agent that already reaches your website and recognises its search instructions can retrieve relevant content without reading page after page. The difference between useful technical work and unsupported claims is covered in the article on making website information easier to retrieve.
How do you enable agent search on your website?
There are two routes. If your domain is on Cloudflare, switch on Search for Agents in the dashboard. If you want an independent implementation, expose a search service and advertise it with the same discovery tags, backed by your own documentation. Either way, a search URL that answers is not enough on its own, so check the tags, the results and the discovery.
For either route, inspect the HTML source of representative public pages and find the agent meta tags. Check that the endpoint and documentation addresses are correct and reachable.
Send a GET request with a search term that occurs in your published content and examine the returned Markdown, the relevance of the excerpts and the source references. Then search for a subject the website does not cover and judge what comes back by its source.
An empty result is the clean outcome. Loosely related passages from your own pages are normal for a search that matches on meaning, such as Cloudflare's hybrid search, where passages whose vector similarity clears the match threshold compete for the result limit. An error needs its status code and error details read against the instance's state, because the cause can be an access rule, the endpoint or the index. Information that comes from none of your pages or files would be a fault, because the endpoint returns retrieved content, never a written answer.
Finally, give an agent that can fetch pages and make HTTP requests an ordinary page address, without telling it the search endpoint. A direct request proves the endpoint works, not that an agent will find it alone. Check your server logs, Cloudflare's traffic analytics or the agent's own record of its HTTP requests for a request to the search endpoint, because a correct answer could come from the page itself.
The easy way: how do you turn it on in Cloudflare?
Use the Search for Agents toggle under Quick Actions on your domain's Overview page. Your domain must already be onboarded to your Cloudflare account. Turning it on accepts the suggested configuration and starts the crawl, so set the crawl scope first. Steps 4 to 6 below are Cloudflare's own; the others are the precautions I recommend for a controlled start, drawn from Cloudflare's Search for Agents, crawler and WAF documentation.
- Confirm you can undo it. Check that your account lets you create a WAF custom rule, and an API token for that account with the AI Search Write permission, which the way back below uses to delete the instance. If either is missing, do not switch the feature on.
- Set the crawl scope. Save a copy of your current robots.txt so you can restore it. Under RFC 9309, the robots.txt standard, a crawler that finds a group naming it follows that group instead of the
User-agent: *rules, so a newUser-agent: Cloudflare-AI-Searchgroup must repeat the Allow and Disallow rules from the*group that should still apply, then add the sections that must not be searchable. Test a few allowed and excluded paths for that user agent in a robots.txt tester that accepts a custom user agent. Check that no Content Signals line setssearchorai-inputtonounless you want to block the crawl entirely. - Restrict the endpoint while it builds. Before switching on, add a WAF custom rule that lets only your own IP address query the endpoint, following Cloudflare's allowlist pattern: expression
(http.request.uri.path eq "/.well-known/search" and not ip.src in {203.0.113.10}), action Block, with your address in place of the example. Check that no existing allow or skip rule lets other addresses through, and once the feature is on, send a valid search from a phone on mobile data and check in Security Events that this rule blocked it. Other addresses cannot query the agent search endpoint until you remove this rule in step 9. - Select your domain. Sign in to the Cloudflare dashboard, choose the domain and open Overview.
- Turn on Search for Agents. Find it under Quick Actions, read the default settings and the pricing notice, and confirm only if both are acceptable.
- Let the index build. Cloudflare creates the AI Search instance and crawls your site. Wait for indexing to finish before judging the results. Bot protection, WAF or Turnstile rules on your site also apply to this crawler, so if pages are missing, check whether your own rules blocked it.
- Check what was indexed. Open the instance from the Overview page or from AI Search in your account and review the Jobs and Items tabs. If a page you meant to keep out appears, add an exclude rule under Path Filters, where exclude rules take priority, use Trigger sync and wait for a job that completes: Cloudflare keeps previously indexed pages when a crawl does not finish or stops at its page limit. Website patterns match the full URL, including the hostname, and are case-sensitive, so start one with
**:**/members/**covers the pages under that section, and the section's own address needs checking too. The job log should then list that page asSkipped by rulewith your pattern, and the page should be gone from the instance's Items tab; if it is still listed, keep the WAF rule. - Test the endpoint from your own address. Run the GET request after these steps with your own domain and a question your content answers, then the off-topic search described in the previous section. If you excluded a page, also search for a phrase found only on it, which must return no passage from that page; a block page or an error proves nothing about the index.
- Open it to agents. If your plan includes WAF rate limiting rules, add one for the endpoint path first, then remove the WAF rule from step 3 once these checks pass. If WAF or AI Crawl Control rules still limit who may query the endpoint, send one request a rule should allow and one it should block, and check that each gets the response you expect.
- Watch usage. Compare usage with the monthly allowance often in the first weeks and regularly after that. Checking does not cap spending, so decide beforehand the figure at which you will take the way back below.
curl --get "https://example.com/.well-known/search" --data-urlencode "q=How do I verify webhook signatures?"
The response should contain retrieved Markdown passages with source references and relevance scores. If a search returns nothing useful, check the Jobs tab before changing search settings. If you have enabled Markdown for Agents, also check that a page requested with Accept: text/markdown includes the discovery information in its YAML front matter.
Plan the way back before you start, because access, discovery and stored data are undone separately. Take these steps in order:
- Block the endpoint. Add a WAF custom rule for everyone, expression
(http.request.uri.path eq "/.well-known/search"), action Block. Then send a valid search from an address no other rule allows, such as a phone on mobile data, and check in Security Events that this rule blocked it. - Switch the feature off. Turn Search for Agents off under Quick Actions. Cloudflare's Search for Agents page, as read for this article, does not say what this removes.
- Delete the instance. If the
search-for-agents-<ZONE_ID>instance is still listed under AI Search, delete it with the API call below. Cloudflare's API reference says this removes the instance and all its indexed data permanently. Pausing indexing is no substitute, because Cloudflare says a paused instance stays fully searchable. - Check the result. Request a page's HTML and the endpoint again, and confirm the instance has gone from AI Search.
- Restore robots.txt. Undo only the lines you added for this rollout, or put back the copy saved before it if nothing else in the file has changed since.
curl -X DELETE "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/ai-search/namespaces/default/instances/search-for-agents-<ZONE_ID>" --header "Authorization: Bearer <API_TOKEN>"
This order is my recommendation, built from separately documented operations, and only the WAF block and the deletion have documented effects. Whether the meta tags disappear is something you confirm in step 4. If they are still there, keep the WAF rule in place so the advertised endpoint refuses every request, and ask Cloudflare support about removing them.
Decide whether your website needs another search facility
Start with the content an agent would actually need to find. If you want help deciding what should be exposed or checking an existing implementation, my technical SEO services cover AI search visibility. For a content-heavy site already using Cloudflare, a monitored trial is a reasonable way to assess Cloudflare Search for Agents.