Claude Code Agent
Operated by Anthropic
Quick Facts
- User-Agent:
- Claude-Code
- Category:
- AI & LLM Bots
- Operator:
- Anthropic
- Safety:
- Safe
- Blocking Impact:
- Low - No SEO ranking impact
- SEO Impact Score:
- 2/10
- Official docs:
- None published by Anthropic
- Named by:
- ai.robots.txt
Reported, not operator documented
Anthropic has not published a crawler page that names Claude-Code. It is listed here because a credible public source does: ai.robots.txt. Claude Code agent fetches, reported in public registries. Anthropic publishes no UA for it.
What that means for you: the robots.txt rule on this page is the best available spelling, and a well-behaved crawler using this string will honour it, but there is no vendor statement of purpose, crawl rate or robots.txt compliance to rely on. Treat a matching request in your logs as a detection clue, not proof of who sent it, and combine the rule with a firewall rule if the traffic matters to you. If the operator publishes documentation, this profile moves to Official docs.
What is Claude Code Agent?
Claude Code Agent is an on-demand AI fetcher operated by Anthropic. It retrieves a page only when a user explicitly asks an AI assistant or agent to read, summarize, or act on a specific URL. Because it is triggered by real user intent rather than bulk crawling, blocking it mainly prevents users from pulling your content into Anthropic's assistant.
Claude Code Agent is an on-demand AI fetcher operated by Anthropic. It retrieves a page only when a user explicitly asks an AI assistant or agent to read, summarize, or act on a specific URL. Because it is triggered by real user intent rather than bulk crawling, blocking it mainly prevents users from pulling your content into Anthropic's assistant.
Claude Code Agent uses the user-agent token Claude-Code. You can control it via robots.txt, meta tags (noai), or the emerging llms.txt standard. Robots.txt is voluntary; for hard enforcement, combine it with server-level IP blocking.
What happens if you block Claude Code Agent?
User-agent / Disallow: / without any SEO penalty.Want to see whether Claude Code Agent actually visits you? Read how do I monitor AI bot traffic to my website?
How to block Claude Code Agent with robots.txt
<code>User-agent: Claude-Code</code> - Matching is case-insensitive. Robots.txt is fetched from the root of each subdomain separately.
Is Claude Code Agent safe to allow?
What does Claude Code Agent do?
Understanding Claude Code Agent's purpose helps you decide whether to allow or block it.
- Fetches a page only when a user asks an AI assistant to read it
- Summarizes or extracts the URL the user provided
- Triggered by real user intent, not bulk crawling
- Low traffic volume compared with training crawlers
- Blocking it prevents users from pulling your content into the assistant
Frequently Asked Questions
What user-agent string does Claude Code Agent use?
Claude-Code. That spelling comes from ai.robots.txt, not from Anthropic, which has not published crawler documentation naming it. Use it in robots.txt as the best available match, and treat a request carrying it as a clue rather than proof of who sent it.Is Claude Code Agent safe?
Will blocking Claude Code Agent hurt my SEO?
User-agent / Disallow: / without any SEO penalty.How do I block Claude Code Agent in robots.txt?
/robots.txt file:User-agent: Claude-Code Disallow: /
This instructs Claude Code Agent not to crawl any path on your site. To block only specific sections, replace / with the path (e.g.,
Disallow: /blog/).Does Claude Code Agent respect robots.txt?
Claude-Code will stop a client that chooses to honour it; for enforcement, add a firewall or CDN rule as well.How do I verify if Claude Code Agent is crawling my site?
Claude-Code (for example grep -i "Claude-Code" /var/log/nginx/access.log). Because the operator publishes no IP ranges or reverse-DNS pattern, a match shows that something used the name, not that Anthropic sent it.