Search for Agents makes your website searchable by AI agents. Turn it on for your domain to create an AI Search instance, index your content, and expose a search endpoint at https://example.com/.well-known/search.
Cloudflare advertises the endpoint on your pages so agents can discover it automatically. The endpoint returns relevant content in Markdown, not an AI-generated answer. Agents can use that content with their own models and conversations.
You can use Search for Agents alongside Markdown for Agents. Markdown for Agents converts individual pages to Markdown on request, while Search for Agents retrieves relevant content from your site's index.
Search for Agents is available in beta on all plans. Usage is subject to AI Search pricing and plan limits, including content ingestion, index storage, and queries.
Read the Search for Agents blog post ↗︎ for more information.
Your domain must be onboarded to your Cloudflare account. Only index content that you intend to make publicly searchable. Requests to the search endpoint remain subject to your AI Crawl Control and Web Application Firewall (WAF) configurations.
-
In the Cloudflare dashboard, select your domain and go to Overview.
Go to Overview ↗ -
Under Quick Actions, turn on Search for Agents.
-
Review the default settings and pricing notice, then confirm.
-
Wait for AI Search to crawl and index your content before running a search.
Search for Agents creates an instance named search-for-agents-<ZONE_ID> in the default namespace. The instance uses https://<YOUR_DOMAIN> as its website data source. It uses the Discover parse type to find pages through sitemaps and links, without requiring a sitemap. For crawl behavior and controls, refer to Discover.
You can open the instance from your domain's Overview page or from AI Search in your account.
When you turn on Search for Agents, you accept its suggested configuration. You can change configurable settings at any time in your AI Search instance's Settings tab. Some settings, including the embedding model and data source, are fixed at creation time. Refer to Configuration for which settings you can change.
Search for Agents explicitly selects Discover crawling and hybrid search. Other settings inherit the AI Search defaults.
New Search for Agents instances use these crawl and indexing settings:
| Setting | Default |
|---|---|
| Parse type | discover, using both 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 search |
| Embedding model | @cf/qwen/qwen3-embedding-0.6b |
| Chunk size | 1,024 tokens |
| Chunk overlap | 10% |
New Search for Agents instances use these retrieval and cache settings:
| Setting | Default |
|---|---|
| Fusion method | Reciprocal Rank Fusion (RRF) |
| Maximum results | 10 chunks |
| Match threshold | 0.4 |
| Query rewriting | Off |
| Reranking | Off |
| Similarity cache | On |
| Cache threshold | Strong (close_enough) |
| Cache duration | 48 hours |
The /.well-known/search endpoint retrieves content without generating an answer. Generation model settings apply when you use the instance through a chat completions API, not through Search for Agents.
Cloudflare adds search metadata to the <head> of HTML responses:
<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 turn on Markdown for Agents, requests with Accept: text/markdown receive the same discovery information in YAML front matter:
---
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://example.com/.well-known/search?q={query}"
method: "GET"
documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---Agents can read this metadata and query your site instead of crawling individual pages.
Replace example.com with your domain. You can search with keywords or natural-language questions.
Send the search text in the q query parameter:
curl --get "https://example.com/.well-known/search" \
--data-urlencode "q=How do I verify webhook signatures?"The response contains retrieved content in Markdown, including source references and relevance scores.
The endpoint also supports the HTTP QUERY method. Send UTF-8 search text in a plain-text body:
curl -X QUERY "https://example.com/.well-known/search" \
--header "Content-Type: text/plain" \
--data "How do I verify webhook signatures?"Alternatively, send a JSON object with a q field:
curl -X QUERY "https://example.com/.well-known/search" \
--header "Content-Type: application/json" \
--data '{"q":"How do I verify webhook signatures?"}'Both methods return retrieved content, not a generated answer.
The instance created by Search for Agents is also a standard AI Search instance. You can use it through a Workers binding, turn on public REST and MCP endpoints, or embed search and chat components for human visitors.
Additional public endpoints are separate from /.well-known/search. You do not need to turn them on to use Search for Agents.