# Claude-Code

> Claude-Code is a bot list name for Claude Code, Anthropic's coding agent. Anthropic says its WebFetch tool sends a user agent that starts with Claude-User.

Canonical: https://promptlyfound.com/crawlers/claude-code
Updated: 2026-11-29

## Short answer

Claude-Code is the name that bot lists give the web requests of Claude Code, Anthropic's coding agent. Anthropic says its WebFetch tool sends a user agent that starts with Claude-User. **Anthropic documents no Claude-Code token and no robots.txt policy for Claude Code, so a Claude-Code rule is only a request.** Known Agents reports user agents that contain claude-code.

## Key findings

- Anthropic's Claude Code tools reference says WebFetch sets a User-Agent header that begins with Claude-User. It also sends an Accept header that prefers Markdown over HTML. [1]
- The Claude Code tools reference does not mention robots.txt. [1]
- Anthropic's crawler page lists three bots: ClaudeBot, Claude-User and Claude-SearchBot. It does not name Claude-Code. [2]
- Known Agents lists Claude-Code as an Anthropic coding agent that a user action triggers. Its top user agents include Claude-User (claude-code/2.1.330; +https://support.anthropic.com/). [3]
- Known Agents expects Claude-Code to follow robots.txt. It says the agent publishes no verification method. [3]

## What blocking it does

Claude Code is Anthropic's coding agent. Its [tools reference](https://code.claude.com/docs/en/tools-reference) lists a WebFetch tool that fetches content from a specified URL.[1] Anthropic says WebFetch sets a User-Agent header that begins with Claude-User.[1] The tools reference does not mention robots.txt.[1]

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) lists three bots: ClaudeBot, Claude-User and Claude-SearchBot.[2] It does not name Claude-Code or Claude Code. Anthropic does not say whether a [Claude-User](https://promptlyfound.com/crawlers/claude-user) rule applies to Claude Code.

[Known Agents](https://knownagents.com/agents/claude-code) lists Claude-Code as an Anthropic coding agent. It says a user action triggers it and that it fetches documentation and other resources to help build software.[3] Known Agents expects it to follow robots.txt.[3] This is a third-party view, not an Anthropic statement.

## robots.txt rules

This group asks Claude-Code to stay out of the whole site. Anthropic has not said that Claude Code reads it:

```
User-agent: Claude-Code
Disallow: /
```

The documented user agent starts with Claude-User. To ask both names, add Claude-User to the same group:

```
User-agent: Claude-Code
User-agent: Claude-User
Disallow: /
```

Anthropic says a Claude-User block stops its system from retrieving your content in response to a user query, which may reduce your visibility for user-directed web search.[2] A firewall rule that matches "claude-code" in the user agent can refuse the request. robots.txt can only ask.

## Verify a request

You cannot verify a Claude Code request. Anthropic gives only the start of the user agent.[1] Known Agents reports full strings such as `Claude-User (claude-code/2.1.330; +https://support.anthropic.com/)` and `claude-code/2.1.317 (claude-desktop, agent-sdk/0.3.317)`.[3] It says the agent publishes no verification method, so any client can send the name.[3] The Claude Code tools reference gives no IP list.[1] A match in your logs is only a clue.

## Sources

1. Tools reference. Claude Code Docs (Anthropic). https://code.claude.com/docs/en/tools-reference
2. Does Anthropic crawl data from the web, and how can site owners block the crawler?. Anthropic Help Center. https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler
3. What Is Claude-Code? User Agent & Robots.txt Blocking. Known Agents. https://knownagents.com/agents/claude-code

---

This is a plain-text copy of https://promptlyfound.com/crawlers/claude-code from Promptly Found. The web page is the canonical version and includes the charts.
