Cloud & infrastructure

Cloudflare shifts AI search costs to site owners with new agent API

Cloudflare's new Search for Agents feature lets websites expose content to AI bots via a dedicated API, but site owners now pay for the indexing and query infrastructure.

Illustration of AI search infrastructure costs falling on server owners
Illustration generated for this article

Cloudflare has launched a new feature called Search for Agents that allows website owners to make their content directly searchable by AI agents through a dedicated API. Announced on November 26, 2026, the tool simplifies agent access but shifts the financial burden of search infrastructure from AI companies to the publishers hosting the data.

What happened

The new feature builds on Cloudflare’s existing AI Search service, which was launched last month to help developers index data for applications. Search for Agents extends this infrastructure to public websites, enabling them to expose a search endpoint that AI bots can query directly. This moves beyond previous efforts like Markdown for Agents, which converted HTML into lightweight text, by allowing agents to ask specific questions rather than crawling entire page hierarchies.

Website operators can enable the feature, currently in beta, through the Quick Actions section of their Cloudflare dashboard or via API. Once activated, Cloudflare provisions a dedicated AI Search instance, crawls the site, and inserts metadata instructions into each page. These instructions tell visiting agents where to find the search API and how to use it, specifically pointing to a /.well-known/search endpoint.

However, the economic model represents a significant shift. While Cloudflare has spent the last year developing tools like pay-per-crawl and the Monetization Gateway to help publishers charge AI companies for content access, this new feature requires site owners to foot the bill for the search infrastructure. Billing for AI Search begins on December 1, meaning publishers will incur costs for ingestion, storage, and queries beyond a free monthly allowance.

How it works

When an AI agent visits a site with Search for Agents enabled, it reads the metadata or YAML front matter to locate the search endpoint. Instead of navigating through multiple pages to find relevant information, the agent sends keywords or natural-language questions directly to the API. The system returns relevant excerpts in Markdown format, which the agent uses to formulate its response to the user.

This process relies on established web conventions, including well-known URIs and HTTP GET requests, as well as the newer HTTP QUERY method proposed by the Internet Engineering Task Force. Cloudflare states that this approach is more efficient for agents than traditional crawling, as it bypasses the need to parse entire site maps or large index files like llms.txt, which often hit character limits on larger documentation sites.

Key details

  • Billing starts December 1, 2026: Accounts receive a monthly free allowance of 5 million ingestion tokens, 10 GB-months of storage, and 1,000 semantic and full-text queries each.
  • Overage costs: Beyond the allowance, charges are $0.75 per million ingestion tokens, $2 per GB-month of storage, $0.75 per 1,000 semantic queries, and $0.10 per 1,000 full-text queries.
  • Crawl limits: Free plan users are limited to crawling 500 pages per day, while paying customers have no daily limit, though both are capped at 100,000 pages per discovery crawl.
  • Availability: The feature is available across all Cloudflare plans, including the free tier, and is currently in beta.
  • Future monetization: Cloudflare plans to extend its Monetization Gateway to support these search endpoints, potentially allowing owners to charge agents for queries in the future, though no timeline was provided.

Why it matters

For software engineers and technical founders, this update changes the cost structure of making content accessible to AI. Previously, the focus was on optimizing static files like llms.txt to ensure agents could read site maps efficiently. Now, maintaining visibility in AI responses requires managing a dynamic search infrastructure. This introduces variable operational costs that scale with agent interest, rather than just static hosting fees.

The shift also highlights a tension in the emerging AI web economy. While Cloudflare advocates for publishers to monetize their data through protocols like x402, the immediate effect of Search for Agents is to increase publisher expenses. With AI agents already accounting for 57% of HTML page requests on Cloudflare’s network, site owners must decide if the improved accuracy and efficiency of agent responses justify the added infrastructure bill.

What you can do

  • Audit your current AI traffic: Check your analytics to determine what percentage of your requests come from bots and AI agents to estimate potential search query volume.
  • Review the free allowances: Calculate if your site’s content volume and expected query load fit within the 5 million token and 1,000 query monthly free tier.
  • Test the beta endpoint: Enable Search for Agents in your Cloudflare dashboard and verify that the /.well-known/search endpoint returns correct Markdown excerpts for typical user questions.
  • Monitor ingestion costs: Keep an eye on the number of pages crawled and tokens ingested, especially if you have a large documentation site that may exceed the 500-page daily limit on free plans.
  • Prepare for billing: Update your budget forecasts to account for AI Search charges starting December 1, 2026, particularly if you anticipate high agent engagement.
  • Explore monetization options: Investigate Cloudflare’s AI Crawl Control and x402 payment protocol to see if you can offset search costs by charging for direct content access elsewhere on your site.
  • #cloudflare
  • #ai-agents
  • #web-infrastructure
  • #api-design
  • #cost-management

Tools from the Bytechap store

Keep reading

All stories