The --memory flag and memory command enable persistent memory for agents, allowing them to remember context across sessions.
Quick Start
Show Memories
Use Memory Flag
Usage
Enable Memory
Expected Output:
Memory Commands
Show Memory
Output:
List Memories
memory list is an alias for memory show — same output, added for parity with tools list, session list, and config list.
Use -l as a short form: praisonai memory list -l 25.
memory show and memory list accept the same flags:
Add Memory
Search Memory
Clear Memory
Session Management
Checkpoints
Help
Memory Types
How It Works
- Capture: Agent extracts important information from conversations
- Categorize: Information is sorted into memory types
- Store: Memories are persisted to storage
- Inject: Relevant memories are injected into future conversations
Storage Options
Programmatic Usage
Advanced Features
Best Practices
Use --user-id to isolate memory per user in multi-user applications.
Memory storage grows over time. Use memory clear periodically to manage storage.