Skip to content

anthropic

Claude Code keeps your session data locally for 30 days

Claude News

Per Anthropic's docs, the Claude Code client stores session transcripts in plaintext under ~/.claude/projects/ for 30 days by default so you can pick work back up. You can change the window with the cleanupPeriodDays setting.

Server-side retention depends on your plan. Free, Pro, and Max sessions live for 30 days, but if you've opted into model training on your data, that stretches to 5 years. Team, Enterprise, and API default to 30 days.

Anthropic doesn't train its generative models on Claude Code prompts and code under commercial terms unless you hand over the data yourself, for example through the Development Partner Program. Zero data retention (ZDR) is available to qualified Enterprise accounts on request.

Related stories

  1. Researcher identifies hidden tracking in Claude Code
  2. You own Claude's outputs. You still can't train a competitor on them.
  3. One git call let a repo escape the Claude Code sandbox
  4. Stolen session keys are draining Claude Max accounts
  5. Breaking Claude Code Opus 5 Auto Mode
  6. Claude Opus broke four SAML libraries in a month

Comments

No comments yet. Be the first.

Join the conversation

Sign in with Google to leave a comment. Your name and avatar come from your Google profile, and the comment appears after moderation.

We only use your name and avatar from Google. We never store your email address.