Cloudflare Launches Search for Agents for AI Discovery

Cloudflare's Search for Agents lets site owners enable AI-searchable endpoints via a single toggle. Covers pricing ($0.75/1k queries, $0.10/GB-month

Table of contents
  1. 1.Introduction & Key Highlights
  2. 2.Core Parameters & Comparison
  3. 3.Deep Dive & Operational Details
  4. 3.1.Technical Stack & Data Flow
  5. 3.2.Cost Model & Budget Control
  6. 3.3.Migration & Compatibility Strategy
  7. 4.Scenario-Based Selection & Pitfall Checklist
  8. 5.FAQ
  9. 6.Sources & References
Cloudflare Launches Search for Agents for AI Discovery

Introduction & Key Highlights

Cloudflare has officially launched Search for Agents, a feature that allows website owners to expose a discoverable search API for AI agents with a single dashboard toggle. The capability addresses inefficiencies in how AI agents currently retrieve information from large documentation sites — Mintlify reports that 45.3% of its traffic now originates from AI coding agents — and the character limits inherent in llms.txt files. The core trade-off is straightforward: the site owner enables the feature and assumes all underlying AI Search hosted service costs for queries and storage, while agents gain precise answers without crawling every page. This briefing covers the technical architecture, billing model, applicability boundaries, and operational decision points for infrastructure architects and site operators evaluating adoption.

Core Parameters & Comparison

Dimension Key Parameter / Mechanism Notes & Risk Flags
Feature Entry Single toggle in Cloudflare dashboard Requires site to be on Cloudflare network; effective immediately, no code changes
Underlying Infrastructure AI Search managed service (GA Oct 2026) Managed indexing, vectorization, retrieval ranking; no customization of embedding model or sharding strategy
Billing Model Pay-as-you-go, fully borne by site owner Queries: $0.75 / 1k queries; Storage: $0.10 / GB·month; Monthly minimum: $2 (includes free allowance)
Index Capacity Limit 10 GB per index (explicitly disclosed) Overage requires sharding or sales contact; large doc sites must evaluate sharding cost
Agent Discovery Auto-generated /search endpoint, declared via robots.txt / ai.txt Relies on agents voluntarily following discovery protocol; non-standard agents may not recognize it
Prerequisite Dependency Markdown for Agents (launched Feb 2026) Auto-converts HTML to lightweight Markdown to improve vectorization quality; highly complex site structures may lose semantics during conversion
Traffic Trend Reference AI crawler requests up 20× YoY in 2025 (Cloudflare self-reported) Cost scales linearly with agent call volume; budget alerts essential

Deep Dive & Operational Details

Technical Stack & Data Flow

Search for Agents is not a new engine but a productized wrapper around the AI Search managed service. Enabling the toggle triggers the following automated pipeline at Cloudflare edge nodes:

  1. Content Ingestion: Reuses existing HTML crawl pipeline, passes content through Markdown for Agents to produce structured Markdown, stripping navigation, ads, and other noise.
  2. Vectorization & Indexing: Invokes an embedded embedding model (version not disclosed in source) to generate vectors, written into the managed vector database. Hard limit: 10 GB per index.
  3. Endpoint Exposure: Automatically registers a /search REST endpoint at the site root, returning an OpenAPI 3.1 description. Agents can POST natural-language queries directly.
  4. Metering & Billing: Each query and storage unit consumed is recorded in real time. The $2 monthly minimum applies even with zero queries.

Key Constraints: Index refresh frequency, embedding model version, and reranking strategy are not configurable. Teams needing custom chunking or hybrid retrieval must call the AI Search API directly and build their own pipeline.

Cost Model & Budget Control

The three disclosed price anchors form the complete cost formula:

  • Query Cost = Monthly Queries / 1,000 × $0.75
  • Storage Cost = Index Size (GB) × $0.10
  • Bill Floor = max(Query Cost + Storage Cost, $2)

Operational Recommendations:

  • Configure Budget Alerts in the Cloudflare dashboard (suggested tiers: $5 / $10 / $50).
  • Cache frequent query results via Workers/KV to reduce duplicate calls.
  • Periodically purge stale documents to compress storage footprint (specific CLI commands not disclosed in source; consult official docs).

Risk Factor: With AI crawler traffic growing 20× in 2025, a site picked up by popular agents can see exponential query growth. Hard budget caps or rate limiting via Workers are mandatory safeguards.

Migration & Compatibility Strategy

For sites already maintaining llms.txt or Mintlify-tiered indexes:

  • Parallel Operation: Keep existing llms.txt as fallback; Search for Agents serves as enhanced entry point.
  • Semantic Deduplication: Leverage AI Search document_id idempotency to avoid re-indexing identical content.
  • Priority Signaling: Declare search_endpoint_priority: high in ai.txt to steer compliant agents to the search endpoint first.
  • Observability: Track search_latency_p99, index_freshness_hours, and cost_per_1k_queries as core SLO metrics.

Scenario-Based Selection & Pitfall Checklist

  1. Technical Documentation / Developer Portals (high AI coding agent traffic) → Strongly Recommended. Mintlify data shows 45.3% AI-originated traffic; search endpoint drastically reduces bandwidth and origin load at controllable cost.
  2. E-commerce / Content Sites (diverse long-tail queries, long conversion paths) → Evaluate Cautiously. Varied query intent may challenge vector recall; run small-scale A/B test for ROI before full rollout.
  3. Private / Compliance-Sensitive Data → Disable. Managed indexes reside on overseas edge nodes, violating data residency requirements; self-hosted vector search required.
  4. Massive-Scale Sites (index > 10 GB) → Shard or Decline. Hard 10 GB per-index ceiling; sharding adds operational overhead and cross-index merge-sort complexity. Prefer direct AI Search API with multi-index cluster.
  5. Budget-Constrained Personal / Small Sites → Disable or Hard-Limit. $2/month floor seems low, but $0.75/1k queries far exceeds traditional search API pricing. Anti-scraping measures must be robust.

FAQ

After enabling Search for Agents, do I still need to maintain llms.txt?

Yes, keep it. Search for Agents relies on agents proactively discovering the /search endpoint, while llms.txt remains a universal discovery mechanism compatible with legacy agents that don’t support the new protocol. The two are complementary; maintenance overhead is minimal (sync document list in your generation script).

How do I prevent malicious agents from spamming queries and spiking my bill?

In Cloudflare WAF, create a Rate Limiting Rule for the /search endpoint (e.g., 10 req/min/IP) and enable Bot Management to block known malicious crawlers. Additionally, implement API Key validation in a Worker to allowlist only approved agents — this dramatically improves cost predictability.

What happens when the index hits the 10 GB limit?

The source explicitly states a 10 GB per-index hard limit with no auto-sharding. Options: contact Cloudflare sales for enterprise quota, or manually split across multiple subdomains/path prefixes, each with its own Search for Agents instance, routed via a gateway layer. This adds operational complexity and makes cross-index result merging difficult.

Sources & References

Spotted outdated pricing, stock, or expired coupons?See methodology & report an update →

Related articles