memory-setup
Original:🇺🇸 English
Translated
Enable and configure Moltbot/Clawdbot memory search for persistent context. Use when setting up memory, fixing "goldfish brain," or helping users configure memorySearch in their config. Covers MEMORY.md, daily logs, and vector search setup.
6installs
Added on
NPX Install
npx skill4agent add sundial-org/awesome-openclaw-skills memory-setupTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Memory Setup Skill
Transform your agent from goldfish to elephant. This skill helps configure persistent memory for Moltbot/Clawdbot.
Quick Setup
1. Enable Memory Search in Config
Add to (or ):
~/.clawdbot/clawdbot.jsonmoltbot.jsonjson
{
"memorySearch": {
"enabled": true,
"provider": "voyage",
"sources": ["memory", "sessions"],
"indexMode": "hot",
"minScore": 0.3,
"maxResults": 20
}
}2. Create Memory Structure
In your workspace, create:
workspace/
├── MEMORY.md # Long-term curated memory
└── memory/
├── logs/ # Daily logs (YYYY-MM-DD.md)
├── projects/ # Project-specific context
├── groups/ # Group chat context
└── system/ # Preferences, setup notes3. Initialize MEMORY.md
Create in workspace root:
MEMORY.mdmarkdown
# MEMORY.md — Long-Term Memory
## About [User Name]
- Key facts, preferences, context
## Active Projects
- Project summaries and status
## Decisions & Lessons
- Important choices made
- Lessons learned
## Preferences
- Communication style
- Tools and workflowsConfig Options Explained
| Setting | Purpose | Recommended |
|---|---|---|
| Turn on memory search | |
| Embedding provider | |
| What to index | |
| When to index | |
| Relevance threshold | |
| Max snippets returned | |
Provider Options
- — Voyage AI embeddings (recommended)
voyage - — OpenAI embeddings
openai - — Local embeddings (no API needed)
local
Source Options
- — MEMORY.md + memory/*.md files
memory - — Past conversation transcripts
sessions - — Full context (recommended)
both
Daily Log Format
Create daily:
memory/logs/YYYY-MM-DD.mdmarkdown
# YYYY-MM-DD — Daily Log
## [Time] — [Event/Task]
- What happened
- Decisions made
- Follow-ups needed
## [Time] — [Another Event]
- DetailsAgent Instructions (AGENTS.md)
Add to your AGENTS.md for agent behavior:
markdown
## Memory Recall
Before answering questions about prior work, decisions, dates, people, preferences, or todos:
1. Run memory_search with relevant query
2. Use memory_get to pull specific lines if needed
3. If low confidence after search, say you checkedTroubleshooting
Memory search not working?
- Check in config
memorySearch.enabled: true - Verify MEMORY.md exists in workspace root
- Restart gateway:
clawdbot gateway restart
Results not relevant?
- Lower to
minScorefor more results0.2 - Increase to
maxResults30 - Check that memory files have meaningful content
Provider errors?
- Voyage: Set in environment
VOYAGE_API_KEY - OpenAI: Set in environment
OPENAI_API_KEY - Use provider if no API keys available
local
Verification
Test memory is working:
User: "What do you remember about [past topic]?"
Agent: [Should search memory and return relevant context]If agent has no memory, config isn't applied. Restart gateway.
Full Config Example
json
{
"memorySearch": {
"enabled": true,
"provider": "voyage",
"sources": ["memory", "sessions"],
"indexMode": "hot",
"minScore": 0.3,
"maxResults": 20
},
"workspace": "/path/to/your/workspace"
}Why This Matters
Without memory:
- Agent forgets everything between sessions
- Repeats questions, loses context
- No continuity on projects
With memory:
- Recalls past conversations
- Knows your preferences
- Tracks project history
- Builds relationship over time
Goldfish → Elephant. 🐘