AI agents

Cloudflare automates search infrastructure for AI agents

Cloudflare introduces Search for Agents, a feature that automatically indexes websites and exposes discoverable search endpoints to AI agents without manual configuration.

Server rack with search icons connecting to documents
Illustration generated for this article

Cloudflare has launched Search for Agents, a new capability that automates the process of making website content searchable for artificial intelligence agents. Announced on November 25, 2026, this feature removes the need for developers to manually build retrieval infrastructure or configure complex search endpoints. By simply toggling a setting in the Cloudflare dashboard, site owners can instantly expose their content to AI systems via standardized protocols.

What happened

Previously, using Cloudflare’s AI Search service required significant manual effort. Developers had to create an AI Search instance, configure it, and then integrate search endpoints into their applications. They also needed to ensure that external AI agents could discover these endpoints and understand how to use them. This friction limited the adoption of structured search for agentic workflows, as many site owners lacked the resources to maintain dedicated search infrastructure.

Search for Agents changes this by placing the entire setup behind a single toggle in the Cloudflare dashboard under Quick Actions. When enabled for a specific zone, the service automatically creates an AI Search instance, begins crawling and indexing the site’s content, and exposes search APIs directly from the site’s own domain. This automation is available to all customers, including those on the Free plan, though usage is subject to standard limits.

The system leverages existing network-level capabilities, similar to Cloudflare’s Markdown for Agents feature. Once the index is built, any AI agent on the internet can discover and query the search endpoint, provided the site’s bot management and web application firewall settings allow it. Developers retain control over configuration options such as reranking and cache settings, but the initial deployment requires no code changes.

How it works

The core mechanism relies on automatic discoverability. Cloudflare injects metadata into every page of the enabled site to guide AI agents. For HTML responses, the service adds meta tags to the page head, specifying the search endpoint URL, the HTTP method to use, and instructions on how to format queries. If the site also uses Markdown for Agents, this information is included in the YAML front matter of the Markdown response. This ensures that agents do not need to guess where the search API is located; they can read the page structure and find the necessary connection details immediately.

When an agent queries the endpoint, typically at /.well-known/search, it receives retrieved content in Markdown format rather than a generated natural language answer. This distinction is critical for agentic workflows, as the agent already possesses its own language model and conversation context. It needs raw, relevant data from the site to synthesize an answer, not a pre-packaged response from a third-party AI. The search results include relevance scores and source paths, allowing the agent to cite its sources accurately.

The service also supports the new HTTP QUERY method, defined in RFC 10008. This method allows clients to send search criteria in the request body safely and idempotently, which is better suited for complex queries than traditional GET requests with long URL parameters. Cloudflare supports both plain text and JSON bodies for these QUERY requests, aligning with emerging web standards adopted by tools like curl and undici.

Key details

  • Automatic provisioning: Enabling the feature creates an AI Search instance and starts indexing without manual API configuration.
  • Standardized discovery: Search endpoints are advertised via HTML meta tags or YAML front matter, making them easily findable by agents.
  • Markdown output: Results are returned in Markdown format, providing clean data for agents to process rather than generated answers.
  • HTTP QUERY support: The service natively supports the new HTTP QUERY method for sending search parameters in the request body.
  • Universal availability: The feature is available to all Cloudflare customers, including Free tier users, subject to usage limits.
  • Configurable backend: Users can adjust reranking, cache settings, and access controls via the standard AI Search interface.

Why it matters

For software engineers and technical founders, this update significantly reduces the operational overhead of supporting AI agents. Building and maintaining a retrieval-augmented generation (RAG) pipeline is often complex and costly. By abstracting this infrastructure to the network edge, Cloudflare allows teams to focus on their core product logic rather than search engine maintenance. This democratizes access to high-quality search capabilities, ensuring that even small projects can be fully compatible with modern AI agents.

Furthermore, the emphasis on discoverability addresses a major fragmentation issue in the AI ecosystem. Without standard ways for agents to find search APIs, each developer must implement custom discovery mechanisms or rely on brittle heuristics. By embedding machine-readable instructions directly into the page structure, Cloudflare creates a consistent interface for agents. This standardization encourages more robust agent behavior, as models can reliably locate and utilize search tools across different domains without specialized training for each site.

What you can do

  • Enable Search for Agents in your Cloudflare dashboard under the Quick Actions section for your zone.
  • Review your AI Crawl Control and WAF settings to ensure legitimate agents can access the new search endpoint.
  • Test the discoverability of your site by inspecting the HTML head or Markdown front matter for agent metadata.
  • Use the /.well-known/search endpoint to verify that queries return relevant Markdown content with correct relevance scores.
  • Consider adopting the HTTP QUERY method for your internal tools to align with the new standard for safe, idempotent search requests.
  • Monitor your AI Search instance metrics to understand how agents are interacting with your content and adjust reranking settings if necessary.
  • #cloudflare
  • #ai agents
  • #search infrastructure
  • #web standards
  • #developer tools

Tools from the Bytechap store

Keep reading

All stories