• Claude retains sessions for 30 days. You can change the retention period with cleanupPeriodDays.
  • Codex does not have a configured retention period.