{"slug": "cloudflare-search-for-agents-how-it-works-and-the-limits-to-check-first", "title": "Cloudflare Search for Agents: how it works and the limits to check first", "summary": "Cloudflare released Search for Agents, a dashboard toggle that indexes a site and exposes a search endpoint at /.well-known/search on the customer's own domain, creating an AI Search instance named search-for-agents-<ZONE_ID> in the default namespace. The feature uses Discover crawling across XML sitemaps and links up to five hops deep with 24-hour syncs and a 24-hour crawl cache, plus hybrid search combining the @cf/qwen/qwen3-embedding-0.6b embedding model with keyword search via Reciprocal Rank Fusion, 1,024-token chunks at 10% overlap, and a 48-hour similarity cache. Cloudflare injects four meta tags (agent:instructions, agent:endpoint, agent:method, agent:documentation) into HTML responses and YAML frontmatter for Markdown for Agents requests, and the endpoint returns ranked Markdown chunks with no extra LLM generation step; the feature works on the Free plan, though the author had not enabled it on his 4,500-URL site pending checks of the limits.", "body_md": "# Cloudflare Search for Agents: how it works and the limits to check first\n\nBy [Flavio](https://flaviocopes.com/about/)\n\nTagged: [Cloudflare](https://flaviocopes.com/tags/cloudflare/)\n\nCloudflare Search for Agents turns any zone into a /.well-known/search endpoint for AI agents. Live GET and QUERY tests, real quirks, and Free plan limits.\n\nCloudflare just shipped [Search for Agents](https://blog.cloudflare.com/search-for-agents), a single dashboard toggle that indexes your site and exposes a search endpoint at `/.well-known/search` on your own domain.\n\nTheir [announcement on X](https://x.com/Cloudflare/status/2125591595965702452) and posts like [Dan Mindru’s](https://x.com/d4m1n/status/2125959630484562165) kicked off a wave of people telling every Cloudflare user to flip it on right away, especially since it works on the Free plan.\n\nI haven’t turned it on for `flaviocopes.com` yet, because I wanted to test Cloudflare’s own live endpoints first and run the math on the limits before flipping a public AI endpoint on a 4,500-URL site. Here is what the feature actually does, what my live `GET` and `QUERY` requests returned, and the limits worth checking before you turn it on.\n\n## What the toggle actually creates\n\nEarlier this year I wrote about [serving my site as Markdown to AI agents](https://flaviocopes.com/serving-markdown-to-ai-agents/) and why I built static `.md` mirrors instead of using Cloudflare’s edge conversion. Markdown for Agents solves one half of the problem: giving an agent clean text once it already knows which URL to fetch.\n\nSearch for Agents tackles the other half: helping an agent find the right page without scraping your site one link at a time.\n\nWhen you flip **Search for Agents** on under **Overview > Quick Actions** in the Cloudflare dashboard, Cloudflare creates an [AI Search](https://developers.cloudflare.com/ai-search/) instance named `search-for-agents-<ZONE_ID>` in your `default` namespace. It points that instance at `https://<YOUR_DOMAIN>` and configures it with two main choices:\n\n- **Discover crawling** finds pages through both your XML sitemaps and links it follows up to five hops deep, syncing every 24 hours with a 24-hour crawl cache.\n- **Hybrid search** combines vector embeddings (`@cf/qwen/qwen3-embedding-0.6b` ) with keyword search using Reciprocal Rank Fusion (RRF), 1,024-token chunks with 10% overlap, and a 48-hour similarity cache.\n\nOnce the index is ready, your domain serves search results at `https://<YOUR_DOMAIN>/.well-known/search`. The endpoint returns ranked Markdown chunks directly, with no extra LLM generation step in the middle. The agent calling your site already has its own model, so it only wants the matching passages.\n\n## How agents discover the endpoint\n\nA search endpoint on your domain only helps if an agent knows it exists. Cloudflare injects four `<meta>` tags into the `<head>` of HTML responses automatically.\n\nHere is the exact metadata I pulled from `developers.cloudflare.com`:\n\n```\n<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.\">\n<meta name=\"agent:endpoint\" content=\"https://developers.cloudflare.com/.well-known/search?q={query}\">\n<meta name=\"agent:method\" content=\"GET\">\n<meta name=\"agent:documentation\" content=\"https://developers.cloudflare.com/ai-search/how-to/search-for-agents/\">\n```\n\nIf you also use Markdown for Agents, requesting the same URL with `Accept: text/markdown` puts those exact four fields into YAML frontmatter at the top of the Markdown document:\n\n```\n---\nagent:\n  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.\"\n  endpoint: \"https://developers.cloudflare.com/.well-known/search?q={query}\"\n  method: \"GET\"\n  documentation: \"https://developers.cloudflare.com/ai-search/how-to/search-for-agents/\"\n---\n```\n\nCloudflare also added a **Search for Agents** check to [isitagentready.com](https://isitagentready.com/). When I scanned `developers.cloudflare.com`, it scored 92 out of 100 (Level 5, `Agent-Native`) with both Markdown negotiation and Search for Agents passing:\n\nScanning `flaviocopes.com` scored 25 out of 100 (Level 1, `Basic Web Presence`). Even though every post here has a static `.md` mirror, an [llms.txt](https://flaviocopes.com/ai-glossary/llms-txt/) index, and explicit AI crawler rules in [robots.txt](https://flaviocopes.com/robots-txt-ai-crawlers/), the scanner checks for `Accept: text/markdown` negotiation and `/.well-known/search`.\n\n## Live tests with GET and HTTP QUERY\n\nCloudflare already has Search for Agents running on `developers.cloudflare.com` and `blog.cloudflare.com`, so I ran a set of live requests against both.\n\nThe simplest call is a plain `GET` with a `q` query parameter. Here I asked the docs about [Cloudflare Artifacts](https://flaviocopes.com/cloudflare-artifacts/) push limits:\n\n```\ncurl --get \"https://developers.cloudflare.com/.well-known/search\" \\\n  --data-urlencode \"q=What is the maximum push size for Cloudflare Artifacts?\"\n```\n\nThe top chunk came back with `score: 1.000` and the exact table row (`64 MiB per push`), without my client ever needing to know the URL `/artifacts/platform/limits/`:\n\n```\n# Search results for: \"What is the maximum push size for Cloudflare Artifacts?\"\n\n## docs/artifacts/platform/limits/index.limits-cloudflare-artifacts-docs.md (score: 1.000)\n\n# Limits · Cloudflare Artifacts docs\nSection: Limits · Cloudflare Artifacts docs\n...\nMaximum push size: 64 MiB per push. Includes all data sent in the push.\n```\n\nThe endpoint also supports the **HTTP `QUERY`** method ([RFC 10008](https://www.rfc-editor.org/rfc/rfc10008.html), published in June 2026). Unlike `POST`, `QUERY` is defined as safe and idempotent, so caches and clients know it only reads data while still letting you put a long prompt in the request body instead of a query string.\n\nYou can pass `QUERY` as plain text or JSON:\n\n```\ncurl -X QUERY \"https://developers.cloudflare.com/.well-known/search\" \\\n  -H \"Content-Type: text/plain\" \\\n  --data \"What is the default chunk size in Search for Agents?\"\n\ncurl -X QUERY \"https://blog.cloudflare.com/.well-known/search\" \\\n  -H \"Content-Type: application/json\" \\\n  --data '{\"q\":\"Search for Agents\"}'\n```\n\nHere are the exact status codes, timings, and payload sizes I observed across those live calls:\n\n| Request | Status | Time | Response size | Content-Type | \n|---|---|---|---|---|\n| `GET` HTML`/ai-search/how-to/search-for-agents/` | 200 | 62 ms | 137,656 B | `text/html` | \n| `GET` same URL with`Accept: text/markdown` | 200 | 37 ms | 11,132 B | `text/markdown; charset=utf-8` | \n| `GET`` developers.cloudflare.com/.well-known/search` (1st run) | 200 | 1,325 ms | 50,569 B | `text/markdown; charset=utf-8` | \n| `GET` same query (2nd run) | 200 | 814 ms | 50,569 B | `text/markdown; charset=utf-8` | \n| `QUERY` (`text/plain` ) on`developers.cloudflare.com` | 200 | 869 ms | 55,736 B | `text/markdown; charset=utf-8` | \n| `QUERY` (`application/json` ) on`blog.cloudflare.com` | 200 | 929 ms | 73,601 B | `text/markdown; charset=utf-8` | \n| `POST` (`application/json` ) on`developers.cloudflare.com` | 405 | n/a | 40 B | `text/plain; charset=utf-8` | \n\nA few HTTP details stood out when I poked the edges:\n\n- Every `200` and`HEAD` response includes`accept-query: text/plain, application/json` , advertising the RFC 10008 body formats.\n- Sending `POST` returns`405` with`allow: GET, HEAD, QUERY` and the body`Only GET, HEAD, and QUERY are supported.`\n- Calling `GET /.well-known/search` with no`q` parameter returns`400` (`Missing query parameter: ?q=` ).\n- Even when I sent `Accept: application/json` on a`GET` , the endpoint still returned`text/markdown; charset=utf-8` . If you want JSON responses or an MCP endpoint, you enable the separate public REST or MCP endpoints on the underlying AI Search instance.\n\n## Two real quirks I noticed in the output\n\nRunning real queries turned up two behaviors you should know before trusting the defaults.\n\nFirst, payload sizes get big fast if you raise the result cap. New Search for Agents instances default to **10 chunks**, which is sensible. Cloudflare’s own `developers.cloudflare.com` and `blog.cloudflare.com` endpoints are configured to return **50 chunks**, producing 50 KB to 73 KB of Markdown per query. That is fine when the top chunk answers the question, but dumping 50 chunks into a coding agent’s context window burns tokens fast if the agent doesn’t truncate the output.\n\nSecond, **crawl filters and sync lag matter**. When I queried `blog.cloudflare.com/.well-known/search` for `\"Search for Agents\"` more than a day after Cloudflare published the launch post, the blog post itself wasn’t in the 50 returned results at all. The top match was `https://blog.cloudflare.com/markdown-for-agents`, and more than half of the 50 slots were translated duplicates of older posts (`/fr-fr/`, `/it-it/`, `/ja-jp/`, `/ko-kr/`, `/de-de/`, `/es-es/`, `/zh-cn/`, `/zh-tw/`).\n\nOn `developers.cloudflare.com`, the exact same query returned the new Search for Agents guide and changelog in the top 13 chunks.\n\nIf your site has localized mirrors, tag archives, pagination, or private draft paths, configure [path filtering](https://developers.cloudflare.com/ai-search/configuration/data-source/website/#path-filtering) on the AI Search instance right after enabling the toggle. Note that path patterns match the full URL including scheme and hostname, so you write `**/blog/**`, not `/blog/**`.\n\nAlso watch your WAF rules. If you block bots aggressively, Cloudflare’s docs tell you to add a Skip rule for the AI Search crawler using **Bot Detection ID `122933950`**, otherwise your own security rules can block indexing.\n\n## Free plan limits and December 1 pricing\n\n“Available on the free plan” is accurate, with an important catch: **AI Search billing starts on December 1, 2026**, and the feature draws from your account’s AI Search allowance.\n\nEvery account gets the same monthly included bundle: 5 million ingestion tokens (counted with `cl100k_base` on the final chunks, including 10% overlap), 10 GB-month of storage, 1,000 semantic queries, and 1,000 full-text queries. Here is how Workers Free and Workers Paid compare in the [official AI Search limits](https://developers.cloudflare.com/ai-search/platform/limits-pricing/):\n\n| Resource or limit | Workers Free | Workers Paid | Overage (from Dec 1, 2026) | \n|---|---|---|---|\n| Max pages crawled per day | 500 | Unlimited (100,000 per crawl) | n/a | \n| Files per hybrid-search instance | 100,000 | 500,000 | n/a | \n| AI Search instances per account | 100 | 5,000 included | $0.10 / instance / month | \n| Ingestion tokens / month | 5 million included | 5 million included | $0.75 / million tokens | \n| Index storage | 10 GB-month included | 10 GB-month included | $2.00 / GB-month | \n| Semantic / hybrid queries / month | 1,000 included | 1,000 included | $0.75 / 1,000 queries | \n| Full-text queries / month | 1,000 included | 1,000 included | $0.10 / 1,000 queries | \n\nOne nice detail in the billing rules: the Workers AI embeddings, reranking, R2 storage, Vectorize index, and Browser Run calls that AI Search runs under the hood do not show up as separate charges on those products. Only optional extras like answer generation, query rewriting, or file summaries bill separately.\n\nThe binding limit on Workers Free is **500 pages crawled per day**. And the part to watch on a Paid account is the **1,000 included semantic/hybrid queries per month**. Because Search for Agents uses hybrid search by default and exposes `/.well-known/search` to every agent on the internet, a busy public site can cross 1,000 queries quickly. The 48-hour similarity cache absorbs repeated questions, and your WAF and AI Crawl Control rules sit in front of the endpoint, so rate-limiting `/.well-known/search` is worth setting up if your site gets heavy bot traffic.\n\n## How I would use it (and why I haven’t flipped it on here yet)\n\nI ran the numbers on `flaviocopes.com` to see what flipping the toggle would mean for this site.\n\nRight now `sitemap-0.xml` lists **4,593 URLs**, and `src/posts/` alone holds **2,336 Markdown posts** totaling **18.20 MB** (about 2.91 million words, or roughly 4.77 million tokens before the 10% chunk overlap pushes it past 5 million). On Workers Free, the 500-pages-per-day crawl cap means the initial crawl would take ten days to finish, and a full re-index sits right on top of the monthly 5-million-token allowance.\n\nMore importantly, `flaviocopes.com` already serves a static `.md` file next to every post along with `llms.txt` and `llms-full.txt`, hosted on Cloudflare Pages with zero metered queries no matter how many agents visit. Paying $0.75 per 1,000 hybrid queries for an open public search endpoint on a high-traffic blog isn’t a trade I need to rush into before seeing how often real agents actually call `/.well-known/search`.\n\nWhere I *would* turn Search for Agents on right away:\n\n- **Documentation sites and small product sites under 500 pages.** A Free-plan crawl finishes in one pass, storage stays well below 10 GB, and ingestion stays comfortably inside 5 million tokens.\n- **Sites built from a CMS or database without static Markdown mirrors.** If you don’t already publish`.md` files and`llms.txt` , one toggle gives agents structured Markdown retrieval without touching your app code.\n- **Sites where you want an embedded site search too.** Since the toggle creates a regular AI Search instance, you can reuse the exact same index from a Workers binding, an MCP server, or an embedded search box for human visitors.\n\nIf you want to understand how Workers, WAF rules, and Cloudflare’s storage primitives fit together around features like this, my free [Cloudflare Handbook](https://flaviocopes.com/ebooks/cloudflare-handbook/) walks through the full platform stack.\n\nFor smaller Cloudflare sites, flipping the toggle and adding path-filtering rules takes five minutes and gives agents a cleaner path than scraping your HTML. For large blogs or busy domains, check your sitemap size, add a rate limit on `/.well-known/search`, and keep an eye on query volume once billing starts on December 1.\n\nWant me to talk about your product? You can [sponsor this site](https://flaviocopes.com/sponsor/).", "url": "https://wpnews.pro/news/cloudflare-search-for-agents-how-it-works-and-the-limits-to-check-first", "canonical_source": "https://flaviocopes.com/cloudflare-search-for-agents/", "published_at": "2026-11-27 11:00:00+00:00", "updated_at": "2026-11-27 11:41:43.249397+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-search", "ai-crawlers", "generative-engine-optimization"], "entities": ["Cloudflare", "Search for Agents", "AI Search", "Markdown for Agents", "@cf/qwen/qwen3-embedding-0.6b", "Flavio Copes", "Dan Mindru"], "also_reported_by": [], "takeaway": "Enabling Search for Agents creates an AI Search instance that serves ranked Markdown chunks at /.well-known/search using hybrid vector (qwen3-embedding-0.6b) and keyword search with RRF, 1,024-token chunks at 10% overlap, and a 48-hour similarity cache, with discovery via four agent: meta tags.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/cloudflare-search-for-agents-how-it-works-and-the-limits-to-check-first", "markdown": "https://wpnews.pro/news/cloudflare-search-for-agents-how-it-works-and-the-limits-to-check-first.md", "text": "https://wpnews.pro/news/cloudflare-search-for-agents-how-it-works-and-the-limits-to-check-first.txt", "jsonld": "https://wpnews.pro/news/cloudflare-search-for-agents-how-it-works-and-the-limits-to-check-first.jsonld"}}