Learn how to manage Claude Code’s memory across sessions with different memory locations and best practices.
Memory Type | Location | Purpose | Use Case Examples | Shared With |
---|---|---|---|---|
Enterprise policy | macOS: /Library/Application Support/ClaudeCode/CLAUDE.md Linux: /etc/claude-code/CLAUDE.md Windows: C:\ProgramData\ClaudeCode\CLAUDE.md | Organization-wide instructions managed by IT/DevOps | Company coding standards, security policies, compliance requirements | All users in organization |
Project memory | ./CLAUDE.md | Team-shared instructions for the project | Project architecture, coding standards, common workflows | Team members via source control |
User memory | ~/.claude/CLAUDE.md | Personal preferences for all projects | Code styling preferences, personal tooling shortcuts | Just you (all projects) |
Project memory (local) | ./CLAUDE.local.md | Personal project-specific preferences | (Deprecated, see below) Your sandbox URLs, preferred test data | Just you (current project) |
@path/to/import
syntax. The following example imports 3 files:
/memory
command.
#
shortcut#
character:
/memory
/memory
slash command during a session to open any memory file in your system editor for more extensive additions or organization.
/Library/Application Support/ClaudeCode/CLAUDE.md
/etc/claude-code/CLAUDE.md
C:\ProgramData\ClaudeCode\CLAUDE.md