Commercial: 30 days. Consumer: 5 years if training is allowed, else 30 days. The client also keeps plaintext transcripts in ~/.claude/projects for 30 days.
Standard: 30-day retention period
Against the 21 tools that state a period (grey dots):
We retain inputs and outputs for up to 2 years and trust and safety classification scores for up to 7 years if your chat is flagged by our automated trust and safety systems as violating our
Self-hosted environments (public beta, Team/Enterprise, off by default) run cloud sessions on your infrastructure. Model inference still goes to Anthropic, Bedrock or Google Cloud, session content goes to Anthropic, and the feature is unavailable with ZDR or the HIPAA configuration.
A self-hosted environment executes Claude Code cloud sessions on infrastructure your organization operates.