Cloudflare Search for Agents gives a website its own agent-discoverable search endpoint at https://yourdomain.com/.well-known/search. Turn it on from Cloudflare Dashboard → your domain → Overview → Quick Actions → Search for Agents. Cloudflare then creates an AI Search instance, crawls the site and returns relevant passages in Markdown when an agent sends a keyword or natural-language query.[1][2]
Five-minute setup checklist
- Confirm the domain is already onboarded to your Cloudflare account.
- Open the domain’s Overview page.
- Under Quick Actions, switch on Search for Agents.
- Review the suggested AI Search configuration and pricing notice.
- Wait for the first crawl and index to finish.
- Test
/.well-known/searchwith thecurlcommand below. - Inspect a normal HTML page for the
agent:endpointmetadata. - Review indexed URLs before relying on the endpoint publicly.
The feature is in beta and available on all plans. It uses AI Search metering for ingestion, storage and queries rather than introducing a separate Search for Agents subscription.[2][3]
Test the endpoint
Replace example.com with your domain:
curl --get "https://example.com/.well-known/search" \
--data-urlencode "q=How do I verify webhook signatures?"
A successful request should return relevant indexed content in Markdown, with source references and relevance scores. It does not generate a final AI answer; the calling agent uses the retrieved passages with its own model and conversation.[2]
Try three kinds of queries:
- An exact product, feature or article name.
- A natural-language support question.
- A question whose answer appears only on a deeper page.
Do not judge the setup from one easy homepage query. Check whether the endpoint retrieves the correct deep page and whether the returned passage actually contains enough context for an agent to answer accurately.
Verify agent discovery metadata
Cloudflare advertises the endpoint in the <head> of HTML responses with agent:instructions, agent:endpoint, agent:method and agent:documentation meta tags. If Markdown for Agents is also enabled, the same discovery information can appear as YAML front matter when a client requests Accept: text/markdown.[1][2]
Use this quick check:
curl -s https://example.com/ | grep -i 'agent:endpoint'
You should see an endpoint similar to:
<meta name="agent:endpoint" content="https://example.com/.well-known/search?q={query}">
If the search API works but the tag is absent, purge relevant caches, confirm the feature is enabled for the correct zone and inspect the unmodified origin-to-edge response. Also check whether an optimization, HTML rewrite or security rule is stripping injected metadata.
What Cloudflare creates automatically
Enabling the feature creates an AI Search instance named search-for-agents-<ZONE_ID> in the default namespace. The domain becomes the website data source, and the Discover parser finds pages through both sitemaps and links; a sitemap helps discovery but is not required.[2]
Cloudflare’s documented defaults include:
- Discover crawling through sitemaps and links;
- a limit of up to 100,000 pages per Discover crawl, subject to plan and instance limits;
- five link hops from the source URL;
- a 24-hour crawl cache age and 24-hour sync interval;
- subdomain inclusion off;
- hybrid vector-and-keyword search;
- 1,024-token chunks with 10% overlap;
- up to 10 returned chunks;
- query rewriting and reranking off;
- similarity caching on for 48 hours.[2]
These are starting settings, not a quality guarantee. You can change configurable retrieval and indexing settings from the instance’s Settings tab, but Cloudflare says some creation-time choices—including the embedding model and data source—are fixed.[2]
Tune it for a WordPress or content site
1. Make important pages reachable
The default crawler follows links for up to five hops. Keep important guides, service pages, category hubs and documentation linked from clear navigation or hub pages. Submit a clean XML sitemap even though Discover can work without one.
2. Exclude content that should not become searchable
Cloudflare explicitly warns site owners to index only content intended for public search. Review staging URLs, account areas, thin tag archives, internal search pages, query-parameter variants and any accidentally public documents before enabling broad retrieval.[2]
3. Keep titles and opening paragraphs descriptive
The endpoint returns passages, not a generated answer. Clear page titles, answer-first introductions, descriptive headings and self-contained paragraphs give an agent better material to retrieve and interpret.
4. Test the questions visitors actually ask
Create a small evaluation sheet with 10–20 real questions. For each query, record:
- expected page;
- actual top result;
- whether the passage contains the answer;
- whether an outdated page outranks the current one;
- whether irrelevant archives or duplicates appear.
Change one retrieval setting at a time, rerun the same queries and keep the configuration only if it improves the set overall.
GET versus HTTP QUERY
The simplest integration uses a normal GET request with the search text in the q parameter. Search for Agents also supports the HTTP QUERY method with either a plain-text or JSON request body.[1][2]
Plain text:
curl -X QUERY "https://example.com/.well-known/search" \
--header "Content-Type: text/plain" \
--data "How do I verify webhook signatures?"
JSON:
curl -X QUERY "https://example.com/.well-known/search" \
--header "Content-Type: application/json" \
--data '{"q":"How do I verify webhook signatures?"}'
Use GET for the widest compatibility and simple browser or command-line testing. Consider QUERY when your client supports it and you prefer to send structured search criteria in the request body.
Pricing and free allowances
Cloudflare’s AI Search billing page says billing begins on December 1, 2026. Each account receives 5 million ingestion tokens, 10 GB-month of storage, 1,000 semantic queries and 1,000 full-text queries per month.[3]
Documented usage beyond those included amounts is:
- base ingestion: $0.75 per million tokens;
- image processing: an 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.[3]
Workers Free accounts can crawl at most 500 pages per day, even though a Discover crawl can accept up to 100,000 pages. Cloudflare notes that simultaneous account, instance, crawl and daily limits apply, so the lowest applicable limit determines how much content is indexed.[3]
For a small content site, start inside the included usage, check the first index size and query volume, then set a cost-review routine before promoting the endpoint heavily. Repeated indexing also counts overlapping chunk text more than once because ingestion is measured after parsing and chunking.[3]
Security and content-control checklist
- Index only content you are comfortable making publicly searchable.
- Test logged-out access to pages before assuming they are private.
- Review AI Crawl Control, WAF and bot-management rules.
- Confirm the endpoint does not surface stale copies of removed sensitive pages.
- Re-crawl after deleting or materially changing content.
- Keep private knowledge bases in a separate controlled retrieval system.
- Treat returned site content as untrusted input inside an agent; retrieved text can still contain malicious or misleading instructions.
Requests to /.well-known/search remain subject to the domain’s AI Crawl Control and WAF configuration. Cloudflare also states that the feature’s endpoint is separate from optional public REST and MCP endpoints, so those additional endpoints do not need to be enabled for Search for Agents to work.[2]
Troubleshooting
The endpoint returns no useful results
Wait for the initial crawl to finish, then inspect the AI Search instance. Confirm the expected page was indexed, is reachable through links or a sitemap and is not blocked by crawler or firewall rules.
Only shallow pages appear
Check navigation, crawl depth, sitemap coverage, canonical tags and duplicate archives. Important content buried beyond the default five-hop crawl depth may need stronger internal linking or a better hub structure.[2]
Results are relevant but incomplete
Inspect the indexed page and chunk boundaries. A useful answer split across several distant sections may need clearer page structure, a concise answer near the top or adjusted configurable retrieval settings.
Subdomain content is missing
Subdomain inclusion is off by default. Review the data-source configuration before expecting documentation, support or shop subdomains to appear.[2]
A security rule blocks the endpoint
Test the request while watching Cloudflare security events. Narrowly adjust the relevant WAF, bot or crawl-control policy rather than broadly disabling protection.
Should you enable Search for Agents?
Enable it when your site contains public documentation, support articles, product information or a substantial content library that agents need to search efficiently. It is less useful for a tiny brochure site, and it is inappropriate for content that should remain private.
The practical benefit is not “automatic AI rankings.” The feature gives agents a discoverable retrieval route to your public content. Whether an agent uses it—and whether the retrieved content earns a citation or recommendation—still depends on accessibility, relevance, clarity, trust and the agent’s own behavior.
FAQ
What is Cloudflare Search for Agents?
It is a beta feature that creates an AI Search index for a Cloudflare-managed domain and exposes retrieved site content through /.well-known/search.[2]
Does it generate an AI answer?
No. The endpoint returns relevant content in Markdown. The calling agent uses that material with its own model.[2]
Is Search for Agents free?
It is available on all plans and includes monthly AI Search allowances, but usage beyond those allowances is billed under AI Search pricing beginning December 1, 2026.[2][3]
Does it require a sitemap?
No. The Discover parser follows both sitemaps and links, so a sitemap is not required, though a clean sitemap can improve discoverability and auditing.[2]
Can I use it with WordPress?
Yes, if the WordPress site’s domain is onboarded to Cloudflare and its public pages are crawlable. Test archives, duplicate URLs, protected areas and cache behavior before treating the index as production-ready.
Does enabling it also enable a public MCP endpoint?
No. The AI Search instance can support optional REST and MCP endpoints, but they are separate from /.well-known/search and are not required for this feature.[2]
Sources
[1] https://blog.cloudflare.com/search-for-agents — Cloudflare: Introducing Search for Agents
[2] https://developers.cloudflare.com/ai-search/how-to/search-for-agents — Cloudflare Docs: Search for Agents
[3] https://developers.cloudflare.com/ai-search/platform/limits-pricing — Cloudflare AI Search limits and pricing