Skip to main content
The --memory flag and memory command enable persistent memory for agents, allowing them to remember context across sessions.

Quick Start

Show Memories

Show stored memories example

Use Memory Flag

With memory flag example

Usage

Manage Persistent Memory

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

  1. Capture: Agent extracts important information from conversations
  2. Categorize: Information is sorted into memory types
  3. Store: Memories are persisted to storage
  4. 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.