Skip to content
BENIBIX Learn

CLAUDE_CODE_DISABLE_AUTO_MEMORY

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_DISABLE_AUTO_MEMORY=1

Set to 1, it turns auto memory off. Set to 0, it forces it on.

Think of it like

It is like you ask a helper not to keep a diary.

Example

Jack shares a laptop for demos and does not want notes piling up. He sets this, and Claude keeps no memory between demos.

Why it matters

It lets you choose if Claude learns from past sessions, or starts fresh each time.

Definition

CLAUDE_CODE_DISABLE_AUTO_MEMORY set to 1 turns auto memory off. Claude then does not write or read the notes it keeps for itself. Set it to 0 to force auto memory on, even in bare mode or when a setting turns it off. Your own CLAUDE.md files still load.

Example code

bash
export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1
claude
Keep Claude from saving its own notes.
Column three: auto memory is off.

Common mistake

Expecting it to drop CLAUDE.md too. It only stops auto memory. Your own files still load.

Key takeaways

  1. 1
    1 turns it off. No notes.
  2. 2
    0 forces it on. Even in bare mode.
  3. 3
    CLAUDE.md stays. Only auto memory goes.

Compare