Skip to main content

Overview

The memory init command initializes a new memory vault in your memory home directory. This creates the necessary directory structure for storing memories.

Syntax

memory init

Description

This command creates the vault directory at $MEMORY_HOME/vault (or ~/.memory/vault if MEMORY_HOME is not set). The vault is where all your project memories are stored. If the directory already exists, the command will succeed silently.

Examples

Initialize a new vault

memory init
Output:
Memory vault initialized at /home/user/.memory

Initialize with custom MEMORY_HOME

MEMORY_HOME=/path/to/custom/location memory init
Output:
Memory vault initialized at /path/to/custom/location

What Gets Created

The command creates:
  • The memory home directory (if it doesn’t exist)
  • A vault/ subdirectory where memories are stored
You only need to run memory init once. If you’re using memory config set-home or the MEMORY_HOME environment variable, the directories will be created automatically.

Build docs developers (and LLMs) love