What is Claude-Code?
Claude Code is an AI coding agent by Anthropic that can build, debug, and ship code directly from the terminal, handling tasks like codebase onboarding, multi-file edits, and turning issues into pull requests. You can set up Agent Analytics to see when Claude-Code visits your website.
Category
| Example User Agent | Claude-User (claude-code/2.1.309; +https://support.anthropic.com/) |
| Operated By | Anthropic |
| Source | Official Website |
| Triggered By | User action |
| Used for AI Model Training | Not expected |
| Affects AI Chat & Search Visibility | Possibly |
| Expected To Follow Robots.txt | Yes |
Why Is Claude-Code Visiting My Website?
A developer is working with a product or technology you document. Claude-Code retrieved your documentation, API reference, or examples because they were relevant to the code being written.
Should I Block Claude-Code?
Allow Claude-Code if developers rely on your documentation or technical content. Blocking it can make your product harder to build with but does not affect traditional search rankings. For context, 8% of the top websites we track currently have robots.txt rules for Claude-Code.
How Do I Block Claude-Code Using Robots.txt?
Add this rule to your robots.txt file to block Claude-Code from accessing your website, or use Automatic Robots.txt to block all AI coding agents at once. You can customize which pages are blocked by swapping out / for a different path.
User-agent: Claude-Code # https://knownagents.com/agents/claude-code
Disallow: /
Insights for Claude-Code
As of November 9, 2026, this data reflects agent visits measured across thousands of websites using Agent Analytics, combined with daily scans of the top 1000 websites and their robots.txt files.
Robots.txt Compliance
Country of Origin
Robots.txt Blocked Percentage
Frequently Asked Questions
What Traffic Patterns Should I Expect From Claude-Code?
Claude-Code typically makes several requests within seconds. A single developer leaves quiet gaps, while overlapping sessions can produce steady traffic. Activity comes in short, targeted sessions rather than broad site-wide crawls.
Does Claude-Code Follow Robots.txt Rules?
Claude-Code is expected to follow robots.txt rules, so a disallow rule is the appropriate first step if you want to block it. Automatic Robots.txt can add and maintain that rule, while Agent Analytics lets you verify whether Claude-Code respects it.
Is Claude-Code Used for AI Model Training?
Not ordinarily. Claude-Code is not categorized as an AI training scraper or data provider, so AI model training is not its expected purpose.
Does Blocking Claude-Code Affect AI Search or Citations?
Blocking Claude-Code can keep your documentation out of answers it gives developers. It does not directly affect general AI search indexes or traditional search rankings.
Does Claude-Code Access Private Content?
Not unless a developer explicitly provides credentials. Claude-Code otherwise reads only public documentation, references, and code examples.
How Can I Verify a Request From Claude-Code?
Agent Analytics tracks Claude-Code visits in real time. You can also check your server logs for requests whose user-agent string contains "Claude-Code". Look for clustered requests across documentation, API reference, and code example pages. Because Claude-Code does not publish a verification method, any client can claim its identity and a log match is only a clue.
How Is Claude-Code Different From Other Anthropic Agents?
Anthropic operates separate agents for different purposes, so each agent should be evaluated and controlled independently.
- Claude-Agent: Claude-Agent is Anthropic's cloud browser agent for Claude Duet. It navigates websites and completes multi-step tasks on behalf of users.
- Claude-User: Claude-User is dispatched by Anthropic's Claude AI assistant in response to user prompts, when it needs to fetch content to include in its answers.
- ClaudeBot: ClaudeBot is a web crawler operated by Anthropic to download training data for its LLMs (Large Language Models) that power AI products like Claude.
- Claude-SearchBot: Claude-SearchBot is used to create an index of websites that can be surfaced as results in Anthropic's Claude AI assistant search feature.
- anthropic-ai: anthropic-ai is a unconfirmed agent possibly used by Anthropic to download training data for its LLMs (Large Language Models) that power AI products like Claude.