Cloudflare's AI Search service has long enabled websites to serve as data sources through automatic crawling and indexing, but the initial setup required manual configuration and integration work. The company is now streamlining this process with Search for Agents, a feature that eliminates the manual steps by automatically creating search instances and exposing discovery mechanisms directly from customer domains.

How it works

Search for Agents follows the same design pattern as Markdown for Agents, which uses content negotiation headers to convert HTML pages to Markdown in real time. The new feature leverages AI Search capabilities to automatically generate an index for a zone and surface APIs that AI agents can discover and use to search websites under the customer's own domain, all operating at the network level.

Enabling Search for Agents requires only toggling a setting in the Cloudflare dashboard or using the API. Once activated, Cloudflare automatically provisions an AI Search instance, begins crawling and indexing zone content, and makes search accessible from the customer's domain. The feature is available to all customers, including those on the Free plan, though with usage limits. The underlying AI Search instance can be configured with options like reranking and cache settings at any time.

Enabling Search for Agents in the dashboard

Discoverability

Search for Agents AI Search instance

For agents to use search functionality, they must first discover it exists. Search for Agents automatically advertises the search endpoint on every page of a site. For HTML responses, metadata is injected into the page's <head> section. When Markdown for Agents is also enabled, agents requesting pages with Accept: text/markdown receive the same information in YAML front matter:

---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://developers.cloudflare.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

Agents automatically recognize these instructions and understand how to search the site.

Searching content

Once an agent discovers a search endpoint, it can begin querying. Keyword-based searches work directly:

$ curl "https://developers.cloudflare.com/.well-known/search?q=cloudflare+artifacts"
# Search results for: "cloudflare artifacts"

## docs/artifacts/api/workers-binding/index.md (score: 1.000)

# Workers binding · Artifacts · Cloudflare Artifacts docs

Call Artifacts from a Worker binding.

---

## docs/artifacts/index.md (score: 0.951)

# Artifacts · Cloudflare Artifacts docs

Store, version, and share filesystem artifacts across Workers, APIs, and Git-compatible tools.

Depending on AI Search configuration, agents can also submit natural language questions:

$ curl --get "https://developers.cloudflare.com/.well-known/search" --data-urlencode "q=What is the maximum push size for Cloudflare Artifacts?"
# Search results for: "What is the maximum push size for Cloudflare Artifacts?"

## docs/artifacts/platform/limits/index.limits-cloudflare-artifacts-docs.md (score: 1.000)

# Limits · Cloudflare Artifacts docs
Section: Limits · Cloudflare Artifacts docs

title: Limits
description: Review Artifacts platform limits.
pcx_content_type: reference
products:
  - artifacts

Limits that apply to creating, importing, cloning, and pushing Artifacts are detailed below.

These limits cover naming rules, storage, request rates for control-plane and Git operations, and the size of each push.

FeatureLimitControl-plane request rate2,000 requests per 10 seconds per Artifacts namespaceGit request rate, per artifact2,000 requests per 10 seconds per artifactMaximum storage per repository1 GB for repos created on or after 2026-09-29. Repos created earlier have a 10 GB limit. See size limit change.Maximum storage per account1 TB (can be raised on request)Maximum number of repositoriesUnlimitedMaximum number of namespacesUnlimitedNamespace name length2–63 charactersNamespace and repo namesStart with a letter or digit. Remaining characters may include letters, digits, ., _, and -.Maximum push size64 MiB per push. Includes all data sent in the push. Split larger work into several smaller pushes.Maximum objects per push50,000 objects, such as file versions, folders, and commits.Maximum file size32 MiB per file. Already-compressed files, like images, video, or zip archives, may be rejected slightly below 32 MiB.Maximum ref updates per push1 MiB of branch and tag updates per push.Maximum entries per folder100,000 files and subfolders in a single folder.

The search endpoint returns retrieved content in Markdown format rather than generating answers. Since agents already have their own AI models and active conversations with users, they need only the relevant information from the site, not a separate AI model's response.

Supporting a new HTTP method: QUERY

The QUERY HTTP method, an IETF Proposed Standard published in June 2026 as RFC 10008, was coauthored by Cloudflare's James Snell. QUERY allows clients to send search criteria in a request body safely and idempotently without modifying server state, making it well-suited for AI search operations. Major browser vendors are currently discussing the RFC, and several frameworks and clients including curl and undici have adopted or are considering adoption.

Search for Agents natively supports QUERY with either plain text or JSON request bodies:

# Plain text
curl -X QUERY 'https://developers.cloudflare.com/.well-known/search' \
  --data 'What is the maximum payload size per ingestion request in Basin Pipelines?'

# JSON
curl -X QUERY 'https://developers.cloudflare.com/.well-known/search' \
  --header 'Content-Type: application/json' \
  --data '{"q":"How many bulk import requests per minute does Email Service allow?"}'

See it in action

Cloudflare enabled Search for Agents on its Developer Documentation ahead of this announcement. During an agentic session, when a user asks a question like "What is the maximum push size for Cloudflare Artifacts?", logs show the agent discovering the search endpoint on the homepage, then fetching /.well-known/search with the question to retrieve results. The answer arrives within seconds and proves accurate.

A Search for Agents request

Once agents discover the search API, they typically reuse it multiple times within the same session whenever they need to search the site. Cloudflare has observed that agents effectively discover and utilize the search API during their tasks.

OpenCode getting its answer while using Search for Agents

It's still an AI Search instance

Sample of Search for Agents requests in our developer documentation

Since Search for Agents runs on a standard AI Search instance within the customer's account, all configuration options and features remain available. Users can enable public REST API or MCP endpoints, integrate with Workers, or embed AI Search on their website for human visitors.

AI Search Snippet embedded in the Cloudflare Blog

Getting started

Search for Agents is available immediately to all customers. Pricing follows the standard AI Search model, covering content ingestion, index storage, and query serving, subject to included usage and limits on both Workers Free and Paid plans.

Agent Readiness check for Search for Agents

Cloudflare recommends reviewing its Agent Readiness page to understand how to optimize sites for agents, including guidance on authentication, controlling agent access to content, specifying content formats, and managing agent costs. Additional details are available in the Search for Agents developer documentation, and the company invites feedback from site owners on X and in the Cloudflare Developer Discord.