Cloudflare
← Back to Blog
CloudflareNovember 27, 2026·4 min read

How Cloudflare’s AI Agent Search Toggle Impacts Your Site

Why can’t my AI chatbot find the newest articles?

That question pops up every time a developer adds a language model on top of a static site and then discovers the model’s answers are stale. The root cause isn’t the model – it’s the way the site’s content is exposed to the model. Cloudflare just released a single‑toggle feature that lets you expose your site’s pages to AI agents and charges you per query. It’s a simple switch, but it reshapes how you think about cost, control, and integration.

Editorial illustration for How Cloudflare’s AI Agent Search Toggle Impacts Your Site

What actually changed?

Until now, integrating an AI agent with your site required you to build a custom endpoint, manage authentication, and keep an eye on usage manually. Cloudflare bundles all that into an Agent Search toggle in the dashboard. When you flip it on, Cloudflare automatically creates a searchable index of your public content and routes queries from any compatible AI agent to that index. The billing model also moves from a vague “pay‑as‑you‑go for edge services” to a clear per‑query charge that appears on your Cloudflare invoice.

Who should care?

In short, anyone who wants an AI‑driven “search‑inside‑the‑site” capability without the plumbing overhead.

How to enable the toggle

1. Log into the Cloudflare dashboard and select the domain you want to augment.
2. Navigate to Workers → AI → Agent Search (the exact path may vary by UI version).
3. Click the Enable button. Cloudflare will start crawling public URLs and building an index – the process can take a few minutes for larger sites.
4. Once the status shows Ready, any AI agent that respects the CF-Agent-Search header can query your content.

Monitoring usage and costs

Cloudflare adds a new line item called “AI Agent Search Queries” to the billing view. You can also set up alerts:

These alerts help you avoid surprise bills, especially when traffic spikes from a marketing campaign or a new chatbot rollout.

Pricing basics

The per‑query price is published on Cloudflare’s pricing page (currently $0.0005 per query, but check the latest rates). Because the cost is tied directly to queries, you can estimate spend by multiplying expected monthly queries by the per‑query rate. For a site that expects 50 000 queries a month, the cost would be roughly $25 – a predictable line item compared to the previous “edge‑compute” abstraction.

Practical example: querying your site

Here’s a quick curl command you can run from your terminal to test the endpoint after enabling the toggle:

curl -X POST "https://api.cloudflare.com/client/v4/accounts//ai/agent-search" \
     -H "Authorization: Bearer " \
     -H "Content-Type: application/json" \
     -d '{"prompt": "What are the main topics covered in the 2024 blog posts?"}'

Replace <ACCOUNT_ID> and <API_TOKEN> with your credentials. The response will include a concise answer generated from your indexed pages.

Limitations to keep in mind

Understanding these constraints helps you set realistic expectations for your AI‑driven features.

Next steps for developers

• Enable the toggle on a staging domain first and monitor query volume.
• Use the usage alerts to experiment with pricing caps.
• Combine the Agent Search endpoint with a custom prompt layer if you need domain‑specific formatting.

By treating the toggle as a controllable feature flag rather than a permanent switch, you retain flexibility and keep costs transparent.

Source: The New Stack

Ready to find your automation candidates?

We run a structured AI Readiness Assessment for SMEs — two weeks, concrete output, no fluff. You’ll hear back directly from Kerim.

Start with an AI Assessment

Topics

CloudflareAIWeb DevelopmentPricing