The --claude-memory flag enables Anthropicโs native memory tool for Claude models, allowing the agent to store and retrieve information across conversations.
Quick Start
Basic Usage
Expected Output:
Combine with Other Flags
Requirements
Claude Memory Tool requires an Anthropic model. It will not work with other providers.
How It Works
- Enable: The
--claude-memory flag activates Anthropicโs native memory tool
- Store: Claude can store information using the memory tool
- Retrieve: Claude can retrieve stored information in future conversations
- Persist: Memory persists across conversation sessions
Comparison with Other Memory Options
Examples
Research Task
Learning Session
Project Context
Programmatic Usage
Best Practices
Use Claude Memory Tool for tasks where you want Claude to decide what to remember.
Claude Memory Tool data is stored on Anthropicโs servers. For sensitive data, use local --memory instead.