Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Claude Memory Tool (Beta)
Enable Claude to autonomously store and retrieve information across conversations using Anthropic’s native Memory Tool API. Claude decides what to remember and when to recall information.This feature requires Anthropic Claude models and uses the beta header
context-management-2025-06-27.Quick Start
Supported Models
| Model | Model ID |
|---|---|
| Claude Sonnet 4 | anthropic/claude-sonnet-4-20250514 |
| Claude Opus 4 | anthropic/claude-opus-4-20250514 |
| Claude Haiku 4.5 | anthropic/claude-haiku-4-5-20251001 |
| Claude Sonnet 4.5 | anthropic/claude-sonnet-4-5-20250929 |
| Claude Opus 4.5 | anthropic/claude-opus-4-5-20251101 |
How It Works
The Claude Memory Tool operates client-side with file-based storage:- Tool Definition: Memory tool is added to Claude’s available tools with type
memory_20250818 - Beta Header: Requests include
anthropic-beta: context-management-2025-06-27 - Autonomous Usage: Claude decides when to read/write memories
- File Storage: Memories stored in
.praison/claude_memory/{user_id}/memories/
Memory Commands
Claude can use these commands through the memory tool:| Command | Description |
|---|---|
view | List directory contents or read file |
create | Create or overwrite a file |
str_replace | Replace text in a file |
insert | Insert text at a specific line |
delete | Delete a file or directory |
rename | Rename/move a file |
Storage Structure
Configuration
Security Features
- Path Validation: Prevents directory traversal attacks
- Size Limits: Configurable max file size and file count
- User Isolation: Separate storage per user_id
- Sandboxed: Operations restricted to memory directory
Example: Research Assistant
Difference from FileMemory
| Feature | Claude Memory Tool | FileMemory |
|---|---|---|
| Control | Claude decides what to store | Developer controls storage |
| Format | Free-form files (md, txt) | Structured JSON |
| Models | Anthropic Claude only | All models |
| Dependencies | None | None |
| Use Case | Autonomous learning | Explicit memory management |
API Reference
ClaudeMemoryTool
See Also
Agent Memory
Zero-dependency file-based memory for all models
Advanced Memory
Multi-tiered memory with quality scoring and graph support

