---
title: "Cloudflare Search for Agents: search a site instead of crawling"
description: "scrapenews.com on Cloudflare's Search for Agents and what it costs sites. In the picture: an orange cloud hands index cards to robot couriers."
url: "https://scrapenews.com/news/cloudflare-search-for-agents"
updated: "2026-11-26T16:45:00Z"
---

# Cloudflare Search for Agents: search a site instead of crawling

By [scrapenews.com newsroom](https://scrapenews.com/authors/newsroom.md) · Published 26 Nov 2026, 16:45 UTC · Source: [blog.cloudflare.com](https://blog.cloudflare.com/search-for-agents/)

![Illustration for Cloudflare Search for Agents: an orange cloud at a library desk hands index cards to four small robot couriers, a site answering AI agents' searches instead of being crawled.](https://scrapenews.com/img/cloudflare-search-for-agents.jpg)

Ask the desk, skip the stacks. Illustration: scrapenews.com

**TL;DR**

- Since 25 Nov 2026, any site on Cloudflare can flip one switch and turn on a search box for AI agents at `/.well-known/search`.
- Your agent asks a question and gets the matching text back as Markdown, with no page-by-page crawl.
- Look for an `agent:endpoint` tag before you crawl. The site’s bot rules still count, and the site pays for each search.

## What Cloudflare shipped

Cloudflare calls it [Search for Agents](https://blog.cloudflare.com/search-for-agents/). It is in beta, open on every plan, Free plans included.

What happens when a site owner turns it on (one toggle under Quick Actions on the domain’s Overview page, or by API):

1. Cloudflare crawls the site then builds a search index in the owner’s account (an AI Search instance).
2. Every page gets a few hidden markers that tell agents the search exists.
3. Agents send a query to `https://<site>/.well-known/search` and get the best-matching chunks of text back, in Markdown.

The answer is not written by AI. Cloudflare says your agent already has a model, so it only needs the source text.

The [defaults](https://developers.cloudflare.com/ai-search/how-to/search-for-agents/): up to 100,000 pages, five link hops deep, found through sitemaps and links. The index refreshes every 24 hours, and each search gives you up to 10 chunks.

[AI Search](https://blog.cloudflare.com/search-for-agents/) is Cloudflare’s hosted search service. Before this, it could already index a website. The owner had to create the index by hand, then wire the search up to the domain and tell agents where it was, and the toggle now does all three.

A few terms:

- **Chunk:** Cloudflare cuts each page into pieces of about 1,024 tokens (the units AI models measure text in). A search returns the pieces closest to your question, not whole pages.
- **Hybrid search:** two searches at once. One matches meaning (vector search), one matches exact words (keyword search). Then it merges the two result lists.
- **Discover crawl:** the crawler starts at the site’s address and follows sitemaps and links. That way a site needs no sitemap.

The index is named `search-for-agents-<ZONE_ID>`. The owner can add reranking or change the cache later, but the embedding model and data source are fixed once it is created.

## How your agent finds it

Cloudflare adds this into the `<head>` of every HTML page:

```html
<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 the site also runs Markdown for Agents, a request with `Accept: text/markdown` gets the same four lines as YAML front matter at the top of the page.

Cloudflare turned it on for its own developer docs first, and it says agents “do a good job” of finding the endpoint and reuse it within a session.

The tags sit in the page’s `<head>`. A scraper that only reads the visible body never sees them. So check the head.

The YAML route needs [Markdown for Agents](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/). That feature converts a page’s HTML to Markdown at Cloudflare’s edge when a request asks for `text/markdown`. It comes free on Pro, Business and Enterprise plans, not on Free. On the Free plan, the tags show up in the HTML only.

The post cites no standard behind the `agent:` tag names. For now, treat them as Cloudflare’s own format.

In Cloudflare’s own run, the OpenCode coding agent got a question about a product limit. It spotted the tags on the docs home page, called `/.well-known/search` with the question and answered correctly a few seconds later.

## It works, and the doors stay the same

We asked the Cloudflare docs endpoint for `browser run pricing` on 26 Nov 2026. It sent back Markdown chunks. The top hit was `docs/browser-run/pricing/index.pricing-faq.md`, score `1.000`.

The door policy stays the same, though. Searches stay subject to the site’s bot management, plus AI Crawl Control and WAF (firewall) rules. **If a site blocks your scraper, expect it to block your searches too.**

Each result comes back as plain Markdown. It starts with `# Search results for: "…"`. Each hit then gets a `##` line with the source page’s path and a score from 0 to 1, then the chunk text. In our test the second hit scored `0.973`.

The path tells you which page the text came from. Use it when you need that full page or want to cite it.

Why the old rules still bite: [AI Crawl Control](https://developers.cloudflare.com/ai-crawl-control/features/manage-ai-crawlers/) lets an owner allow, charge or block each known AI crawler by name. WAF rules are the owner’s own firewall rules. Both stand in front of the search endpoint, the same as in front of the pages. A crawler blocked by its name gets no shortcut here.

## What it costs the site owner

Billing begins on 1 Dec 2026, under [AI Search pricing](https://developers.cloudflare.com/ai-search/platform/limits-pricing/).

| per account, per month | included | after that |
| --- | --- | --- |
| ingestion (indexing text) | 5M tokens | $0.75 per 1M tokens |
| storage | 10 GB-month | $2.00 per GB-month |
| semantic, vector and hybrid searches | 1,000 | $0.75 per 1,000 |
| full-text searches | 1,000 | $0.10 per 1,000 |

Search for Agents uses hybrid search by default. That means the $0.75 rate is the one that applies. By our math, 100,000 agent searches in a month cost the owner $74.25.

On the Workers Free plan, Cloudflare crawls at a maximum of 500 pages a day. A big site on Free gets indexed slowly.

The bill lands on the site owner’s account, not on the agent. Your searches are free on your side.

How the meter counts, per the [pricing page](https://developers.cloudflare.com/ai-search/platform/limits-pricing/):

- **Ingestion tokens** are counted on the final chunks with the `cl100k_base` tokenizer. The 10% shared edge between chunks is counted twice.
- **Storage** is the Markdown copy Cloudflare keeps of every page. The index itself is not on the meter.
- The crawl, the embeddings and the vector-index storage do not show up as separate bills.

Our math on the 100,000-search example: 99,000 billed searches, 99 × $0.75 = $74.25.

The Free cap adds up too. A 100,000-page site at 500 pages a day needs 200 days for the first full crawl. Until the crawl finishes, search only covers part of the site.

## Open questions

- Cloudflare hasn’t said whether a search answered from its similarity cache still counts as a paid query.

The [similarity cache](https://developers.cloudflare.com/ai-search/configuration/retrieval/cache/) reuses results for questions close in meaning to one asked before, and it is on by default for Search for Agents, for 48 hours. Cloudflare says it cuts costs, but the pricing page lists no cache rule.

Why you should care: if cache hits are free, an agent that asks the same few questions all day costs the owner little. If each one is billed, busy agents run up the owner’s bill fast. Owners who see that may block agents or switch the feature off, and the shortcut you built on goes away.

## What it changes for you

- **Ask before you crawl.** For “find the page about X” jobs, one search can replace a crawl of many pages. Fewer requests also means fewer chances to get blocked.
- **Still fetch the page for live data.** The index can be up to a day old. Anything fresh, like prices or stock, still needs the real page.
- **Read the text around the answer.** remio warns that a search hit can miss a version note or caveat sitting right next to it.
- **robots.txt and llms.txt stay.** robots.txt says where bots may go. llms.txt hands an agent a map. This adds a search box. Only sites on Cloudflare can offer it, since the domain has to be set up there.
- **robots.txt also shapes the index.** Cloudflare’s crawler calls itself `Cloudflare-AI-Search`. Pages that robots.txt blocks for it stay out of the search.

Search and page reading do different jobs, remio points out. Search picks which text deserves attention. Reading helps once you know which page you want. A line saying “works with version 3” is useless if the next line excludes your setup. When a hit matters, open the source page.

Check a site with two commands:

```bash
curl -s https://example.com/ | grep -o '<meta name="agent:endpoint"[^>]*>'
curl --get "https://example.com/.well-known/search" --data-urlencode "q=How do I verify webhook signatures?"
```

The endpoint additionally takes the new HTTP `QUERY` method ([RFC 10008](https://www.rfc-editor.org/rfc/rfc10008.html), June 2026), which sends the question in the body. Plain text or JSON both work:

```bash
curl -X QUERY "https://example.com/.well-known/search" \
  --header "Content-Type: application/json" \
  --data '{"q":"How do I verify webhook signatures?"}'
```

Default index settings: embedding model `@cf/qwen/qwen3-embedding-0.6b`, 1,024-token chunks with 10% overlap, match threshold 0.4, reranking off. A similarity cache runs for 48 hours, so a near-repeat question can come back from the cache.

Site owners with strict bot rules: Cloudflare’s crawler has its own identity, and the [website source docs](https://developers.cloudflare.com/ai-search/configuration/data-source/website/) show a Skip rule on Bot Detection ID `122933950` to let it in.

The [crawler docs](https://developers.cloudflare.com/ai-search/configuration/data-source/website/parse-types/) say disallowed pages get the error code `blocked_by_robots_txt` instead of being indexed. They even show how to shut out every other bot and let only this one in:

```txt
User-agent: *
Disallow: /

User-agent: Cloudflare-AI-Search
Allow: /

Sitemap: https://example.com/sitemap.xml
```

So a site may refuse your crawler and still answer your agent through search, as long as its firewall lets the search request through.

More on scraping without getting blocked: [how to scrape a website](https://scrapenews.com/guides/how-to-scrape-a-website.md).

## Related

- [AI scrapers and agents](https://scrapenews.com/compare/ai-scrapers.md)  (Compare)
- [Crawling frameworks](https://scrapenews.com/compare/crawl-frameworks.md)  (Compare)

## Sources

1. [blog.cloudflare.com/search-for-agents](https://blog.cloudflare.com/search-for-agents/)
2. [developers.cloudflare.com/ai-search/how-to/search-for-agents](https://developers.cloudflare.com/ai-search/how-to/search-for-agents/)
3. [developers.cloudflare.com/ai-search/platform/limits-pricing](https://developers.cloudflare.com/ai-search/platform/limits-pricing/)
4. [developers.cloudflare.com/ai-search/configuration/data-source/website](https://developers.cloudflare.com/ai-search/configuration/data-source/website/)
5. [developers.cloudflare.com/ai-search/configuration/data-source/website/parse-types](https://developers.cloudflare.com/ai-search/configuration/data-source/website/parse-types/)
6. [developers.cloudflare.com/ai-search/configuration/retrieval/cache](https://developers.cloudflare.com/ai-search/configuration/retrieval/cache/)
7. [developers.cloudflare.com/fundamentals/reference/markdown-for-agents](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)
8. [developers.cloudflare.com/ai-crawl-control/features/manage-ai-crawlers](https://developers.cloudflare.com/ai-crawl-control/features/manage-ai-crawlers/)
9. [rfc-editor.org/rfc/rfc10008.html](https://www.rfc-editor.org/rfc/rfc10008.html)
10. [developers.cloudflare.com/.well-known/search](https://developers.cloudflare.com/.well-known/search?q=browser+run+pricing)
11. [remio.ai/post/cloudflare-introducing-search-for-agents](https://www.remio.ai/post/cloudflare-introducing-search-for-agents)

## Up

- [Home](https://scrapenews.com/index.md)
- [News](https://scrapenews.com/news.md)
