Learn about Anthropic’s data usage policies for Claude
DISABLE_TELEMETRY
environment variable.
Claude Code connects from users’ machines to Sentry for operational error logging. The data is encrypted in transit using TLS and at rest using 256-bit AES encryption. Read more in the Sentry security documentation. To opt out of error logging, set the DISABLE_ERROR_REPORTING
environment variable.
When users run the /bug
command, a copy of their full conversation history including code is sent to Anthropic. The data is encrypted in transit and at rest. Optionally, a Github issue is created in our public repository. To opt out of bug reporting, set the DISABLE_BUG_COMMAND
environment variable.
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
environment variable. Here are the full default behaviors:
Service | Anthropic API | Vertex API | Bedrock API |
---|---|---|---|
Statsig (Metrics) | Default on.DISABLE_TELEMETRY=1 to disable. | Default off.CLAUDE_CODE_USE_VERTEX must be 1. | Default off.CLAUDE_CODE_USE_BEDROCK must be 1. |
Sentry (Errors) | Default on.DISABLE_ERROR_REPORTING=1 to disable. | Default off.CLAUDE_CODE_USE_VERTEX must be 1. | Default off.CLAUDE_CODE_USE_BEDROCK must be 1. |
Anthropic API (/bug reports) | Default on.DISABLE_BUG_COMMAND=1 to disable. | Default off.CLAUDE_CODE_USE_VERTEX must be 1. | Default off.CLAUDE_CODE_USE_BEDROCK must be 1. |
settings.json
(read more).