robots.txt for AI crawlers: every bot and what to allow

Every documented AI crawler token for ChatGPT, Claude and Google, which ones get you cited, which only train models, and a robots.txt you can copy.

Updated

To be cited by AI assistants, allow their search and user-fetch crawlers in robots.txt and decide separately about training crawlers. OpenAI, Anthropic and Google each use different robots.txt tokens for each job, so blocking a training bot like GPTBot or ClaudeBot doesn't stop ChatGPT or Claude citing you. xAI documents no crawler for Grok at all.

Which AI crawlers get you cited?#

The search and user-fetch bots are the ones that put your pages in answers. Each vendor documents them on its own crawler page.

Token Company Role Follows robots.txt
OAI-SearchBot OpenAI ChatGPT search answers Yes
ChatGPT-User OpenAI Live fetch for a ChatGPT user May not apply
Claude-SearchBot Anthropic Claude search indexing Yes
Claude-User Anthropic Live fetch for a Claude user Yes
Googlebot Google Search, AI Overviews and AI Mode Yes

Sources: OpenAI's crawler overview, Anthropic's crawler page and Google's common crawlers.

Which ones only train models?#

Training crawlers collect pages to train future models. Blocking them is an opt-out from training and has no effect on whether ChatGPT or Claude can cite you.

Token Company Blocking it…
GPTBot OpenAI Opts out of training. ChatGPT search is unaffected.
ClaudeBot Anthropic Opts out of training. Claude search is unaffected.
Google-Extended Google Opts out of Gemini training and Gemini app grounding. Google Search is unaffected.

The robots.txt to copy#

This allows every crawler that can cite you and opts out of OpenAI and Anthropic training. Merge it into your existing file instead of replacing rules you need.

# Search and live-fetch bots: these put you in AI answers.
User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: Googlebot
Allow: /

# Training only: blocking these doesn't stop citations.
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

# Also controls Gemini app answers: keep Allow to be cited there.
User-agent: Google-Extended
Allow: /

What about Grok and GrokBot?#

xAI publishes no crawler user agent, robots.txt token or IP ranges for Grok. Names such as GrokBot appear in third-party bot lists, not in xAI documentation, so a User-agent: GrokBot rule is harmless but unverified. Grok cites results from live web search and public X posts. The Grok guide covers what does work.

What's changing#

  1. Google retires Google-NotebookLM

    User-added sources are now fetched as Google-GeminiNotebook.

  2. AI training preference signal

    OpenAI, Google, Microsoft and Anthropic back the IETF AIPREF signal; Anthropic honours it from this date.

  3. Early 2027

    Google supports the AIPREF signal

    Google says it plans to support user-agent: __usage_ai-training in early 2027.

The AIPREF signal adds a vendor-neutral way to opt out of training in robots.txt. Until every company supports it, keep the per-bot rules above.

Frequently asked questions

Does blocking GPTBot remove me from ChatGPT?

No. GPTBot only collects training data. ChatGPT search uses OAI-SearchBot, which has its own robots.txt token.

Which bot should I allow to appear in Google AI Overviews?

Googlebot. AI Overviews and AI Mode use Google's normal search index; Google-Extended doesn't affect them.

Do AI crawlers follow robots.txt?

OpenAI's OAI-SearchBot and GPTBot do, and all three of Anthropic's bots do. OpenAI says robots.txt may not apply to ChatGPT-User, which fetches pages live for a user.