# 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.

Source: https://mentioned.sh/docs/guides/robots-txt-for-ai-crawlers
Last updated: 2026-11-27

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.

> [!IMPORTANT] Google-Extended is the exception
> Blocking Google-Extended keeps you in Google Search and AI Overviews, but it also stops Gemini apps grounding answers in your content. Leave it allowed if you want to be cited in the Gemini app.

## 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](https://developers.openai.com/api/docs/bots), [Anthropic's crawler page](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler) and [Google's common crawlers](https://developers.google.com/search/docs/crawling-indexing/google-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.

```text
# 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: /
```

> [!WARNING] robots.txt isn't the only gate
> CDN bot protection can block AI crawlers even when robots.txt allows them. Check both with the free [Agent Ready scanner](https://mentioned.sh/tools/agent-ready).

## 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](https://mentioned.sh/docs/guides/grok) covers what does work.

## What's changing

```timeline
2026-08 | Google retires Google-NotebookLM | User-added sources are now fetched as `Google-GeminiNotebook`.
2026-10-30 | AI training preference signal | OpenAI, Google, Microsoft and Anthropic back the IETF AIPREF signal; Anthropic honours it from this date.
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.

```faq
{"kind":"faq","items":[{"q":"Does blocking GPTBot remove me from ChatGPT?","a":"No. GPTBot only collects training data. ChatGPT search uses OAI-SearchBot, which has its own robots.txt token."},{"q":"Which bot should I allow to appear in Google AI Overviews?","a":"Googlebot. AI Overviews and AI Mode use Google's normal search index; Google-Extended doesn't affect them."},{"q":"Do AI crawlers follow robots.txt?","a":"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."}]}
```
