Menu
The New Stack·November 26, 2026

Cloudflare's AI Search for Agents: Bridging Websites and LLMs

Cloudflare introduces "Search for Agents," a new feature enabling websites to expose a direct search API for AI agents. This service, built on Cloudflare's AI Search, allows agents to query site content efficiently, bypassing traditional crawling. It highlights evolving web architecture to support machine visitors and presents both technical solutions and cost considerations for website owners.

Read original on The New Stack

The Challenge of AI Agent Content Retrieval

Traditionally, AI agents access website content by crawling pages. However, limitations like character limits in `llms.txt` files (e.g., 100,000 characters for Mintlify) can lead to incomplete content indexing, preventing agents from discovering all available information. This inefficiency becomes critical as AI agent traffic increasingly rivals human traffic.

Cloudflare's "Search for Agents" Solution

Cloudflare's new "Search for Agents" feature provides a dedicated, agent-discoverable search API for websites. This service provisions an AI Search instance for the website, which then crawls and indexes its content. Instead of navigating pages, agents can directly query a `/.well-known/search` endpoint, receiving relevant content excerpts in Markdown format.

  • Underlying Infrastructure: Built upon Cloudflare's existing AI Search managed service, which allows developers to index their data.
  • Content Format: Integrates with "Markdown for Agents" to convert HTML into a lightweight, machine-readable format.
  • Discovery Mechanism: Inserts instructions into page metadata and YAML front matter (for Markdown documents) to guide agents to the search API.
  • API Standard: Utilizes established web conventions like well-known URIs and HTTP GET, alongside the proposed HTTP QUERY method.
💡

Architectural Benefits

By offering a direct search API, Cloudflare significantly improves the efficiency and accuracy of content retrieval for AI agents. This bypasses the overhead of traditional crawling and ensures agents access a comprehensive and structured index, making web content more programmatically accessible.

Cost and Monetization Considerations

While Search for Agents is available across Cloudflare plans, website owners incur costs for ingestion, storage, and queries beyond a monthly free allowance. This presents an interesting trade-off: website owners foot the bill to make content more accessible to agents, even as Cloudflare explores ways for publishers to monetize AI traffic through initiatives like pay-per-crawl and the Monetization Gateway. Future integration of Search for Agents with the Monetization Gateway aims to enable direct charging for agent search queries, balancing accessibility with economic incentives.

AI agentssearch APICloudflareweb architecturecontent retrievalLLMsdeveloper experiencemonetization

Comments

Loading comments...