Cloudflare Search for Agents Website Indexing: How It Works and How to Enable It
Cloudflare Search for Agents website indexing is a beta capability, announced November 25, 2026, that allows a domain owner to make site content searchable by AI agents with a single toggle. When enabled, Cloudflare automatically creates an AI Search instance for the domain, indexes its public pages, and exposes a search endpoint at https://example.com/.well-known/search. The endpoint accepts keyword or natural-language queries and returns relevant content in Markdown, rather than a generated answer, so agents can feed the retrieved chunks into their own models.
The feature addresses a practical problem in the agent ecosystem: agents that crawl page by page consume tokens, time, and origin bandwidth while often retrieving more HTML than they need. Search for Agents replaces that approach with a dedicated search surface. Instead of fetching dozens of pages, an agent can submit a question such as "How do I verify webhook signatures?" and receive the most relevant content chunks, each with source references and relevance scores.
What Search for Agents Actually Does
According to Cloudflare's official documentation, enabling the feature creates an instance named search-for-agents-<ZONE_ID> in the account's default AI Search namespace. The instance uses the domain as its website data source and selects the Discover parse type, which discovers pages through both sitemaps and internal links. A sitemap is therefore not required for indexing to begin. Once the instance is created, Cloudflare crawls the site, indexes the content, and advertises the endpoint on the pages themselves.
The retrieval behavior is configured for hybrid search, combining vector similarity with keyword matching. This is a deliberate choice for agent workloads: a hybrid approach tends to perform well for both precise queries, such as a product name or error code, and looser natural-language questions where the exact wording may not appear on the page. The endpoint returns content chunks without generating an answer, which keeps the agent in control of prompting, context assembly, and final output.
Indexing and Retrieval Defaults
Cloudflare's documentation lists the default crawl and indexing settings for newly created Search for Agents instances. These values apply at creation and can be reviewed before confirming the setup.
| Setting | Default | |---|---| | 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 | 1,024 tokens | | Chunk overlap | 10% |
The retrieval defaults are similarly fixed at creation. Cloudflare uses Reciprocal Rank Fusion (RRF) to combine vector and keyword results, returns a maximum of 10 chunks per query, and applies a match threshold of 0.4. Query rewriting and reranking are off by default, while a similarity cache is on with a 48-hour cache duration. These settings balance relevance against cost and latency, and several of them can be adjusted later in the instance's Settings tab, though the embedding model and data source are fixed at creation time.
How Agents Discover the Endpoint
Discovery is built into the HTML response. When the feature is active, Cloudflare adds metadata to the <head> of each page. The metadata includes agent:endpoint, which points to https://example.com/.well-known/search?q={query}, along with agent:method set to GET, an agent:instructions field, and a link to the documentation. An agent that fetches a page can read this metadata and route future queries to the search endpoint instead of continuing to crawl individual pages.
The endpoint supports both standard GET requests and the HTTP QUERY method. In the GET form, the search text is passed in the q parameter, as in the following example from Cloudflare's documentation:
curl --get "https://example.com/.well-known/search" --data-urlencode "q=How do I verify webhook signatures?"
The response contains retrieved content in Markdown with source references and relevance scores. Because the output is source material rather than a synthesized answer, agents can apply their own retrieval-augmented generation pipeline without being tied to a particular model or citation format.
Setup and Configuration
Enabling the feature requires the domain to be onboarded to a Cloudflare account. From the domain's Overview page, the toggle appears under Quick Actions. After turning it on, the account owner reviews the default settings and the pricing notice, then confirms. Indexing begins after confirmation, and Cloudflare's documentation advises waiting for the crawl and index to complete before running the first search.
The created instance can be opened from the domain's Overview page or from the AI Search section of the account. Requests to the search endpoint remain subject to the domain's AI Crawl Control and Web Application Firewall (WAF) configurations, so existing access rules continue to apply. Cloudflare's guidance also notes that only content intended to be publicly searchable should be indexed.
Pricing and Plan Limits
Search for Agents is available in beta on all plans, including the free tier. Usage is billed under AI Search pricing, which Cloudflare states will begin on December 1, 2026. Every account receives an included monthly allotment of 5 million ingestion tokens, 10 GB-months of storage, 1,000 semantic queries, and 1,000 full-text queries. Beyond that, base ingestion is billed at $0.75 per million tokens, storage at $2.00 per GB-month, semantic or hybrid queries at $0.75 per 1,000, and full-text queries at $0.10 per 1,000. Image processing adds $0.50 per million tokens.
On the free Workers plan, website crawling is also bounded by a daily limit of 500 pages, which is the binding constraint for larger sites. Paid plans lift that daily crawl cap. The default 100,000-page crawl limit still applies through the Discover parse type, so the number of pages actually indexed is the lowest of the applicable limits.
How It Relates to Markdown for Agents
Cloudflare positions Search for Agents as complementary to Markdown for Agents, an earlier capability that converts individual pages to Markdown on request when a client sends an Accept: text/markdown header. Markdown for Agents returns a single page in a clean format;Search for Agents retrieves relevant content across the whole index. The two can operate together. When Markdown for Agents is also enabled, requests that negotiate Markdown receive the same discovery information in YAML front matter, allowing an agent to choose between fetching one page or querying the site-wide index depending on the task.
This distinction matters for site owners deciding which signal to expose. A documentation site with many pages benefits from both: agents that know the exact page can fetch it directly, while agents that need to find an answer across the site can query the search endpoint. Neither path requires the site operator to build or maintain a separate search integration.
Frequently Asked Questions
Does Search for Agents require a sitemap to index a website?
No. The default Discover parse type finds pages through both sitemaps and internal links, so a sitemap is not required. Cloudflare's documentation states that crawl depth defaults to five link hops from the source URL.
What endpoint do agents use to search the site?
Agents query https://example.com/.well-known/search, replacing example.com with the actual domain. The endpoint accepts the query in the q parameter via GET, and also supports the HTTP QUERY method. Responses are returned in Markdown with source references and relevance scores.
Which settings can be changed after the instance is created?
Configurable settings such as crawl limits, match threshold, and the maximum number of returned chunks can be adjusted in the instance's Settings tab. However, Cloudflare notes that some settings, including the embedding model and data source, are fixed at creation time.
Is Search for Agents available on the free plan?
Yes. The feature is available in beta on all plans. Free-plan accounts are subject to lower usage limits, including a daily crawl limit of 500 pages, and billing for usage beyond the monthly included allotments begins December 1, 2026.
