Smart Memory Lite ๐ง
name: smart-memory-lite-automaton
by chenghaifeng08-creator ยท published 2026-03-22
$ claw add gh:chenghaifeng08-creator/chenghaifeng08-creator-smart-memory-lite-automaton---
name: smart-memory-lite-automaton
description: Lightweight cognitive memory system for AI agents by Automaton. Auto-save conversations, quick recall, session management.
version: 1.0.0
author: Automaton
tags:
- memory
- ai-agent
- context
- conversation
- openclaw
- lightweight
- automaton
homepage: https://github.com/openclaw/skills/smart-memory-lite
metadata:
openclaw:
emoji: ๐ง
pricing:
basic: "29 USDC"
pro: "59 USDC (with analytics)"
---
# Smart Memory Lite ๐ง
**Lightweight cognitive memory for AI agents.**
Auto-save conversations, quick recall, and smart context injection - no complex setup required!
---
๐ฏ What It Solves
AI agents forget everything between sessions:
**Smart Memory Lite** fixes all of that with **zero configuration**!
---
โจ Features
๐ฆ Auto-Save Conversations
๐ Quick Recall
๐ Session Management
๐ก Smart Context Injection
๐ Zero Configuration
๐ File-Based Storage
---
๐ฆ Installation
clawhub install smart-memory-lite---
๐ Quick Start
1. Initialize Memory
const { SmartMemory } = require('smart-memory-lite');
const memory = new SmartMemory({
userId: 'user-123', // Unique user ID
storagePath: './memories', // Where to store memories
autoSave: true // Auto-save conversations
});2. Save a Conversation
// Auto-saves if autoSave: true
await memory.save({
role: 'user',
content: 'What is grid trading?',
timestamp: new Date().toISOString()
});
await memory.save({
role: 'assistant',
content: 'Grid trading is a strategy that...',
timestamp: new Date().toISOString()
});3. Recall Context
// Get relevant memories for current topic
const context = await memory.recall('grid trading', {
limit: 5,
minRelevance: 0.7
});
console.log(context);
// [
// {
// content: 'Grid trading is a strategy...',
// timestamp: '2026-03-18T10:30:00Z',
// relevance: 0.95
// }
// ]4. Get Session Summary
const summary = await memory.getSessionSummary();
console.log(summary);
// {
// totalConversations: 150,
// topics: ['grid trading', 'crypto', 'API'],
// lastActive: '2026-03-18T16:00:00Z'
// }---
๐ก Advanced Usage
Topic-Based Organization
// Save with topic tags
await memory.save({
role: 'user',
content: 'I prefer BTC over ETH',
tags: ['preference', 'crypto']
});
// Recall by topic
const preferences = await memory.recallByTag('preference');Time-Based Recall
// Get memories from last 7 days
const recent = await memory.recallByTime({
days: 7,
topic: 'trading'
});Export Memories
// Export all memories to JSON
const exportData = await memory.export();
console.log(exportData);
// Export to file
await memory.exportToFile('./backup.json');Import Memories
// Import from JSON
await memory.importFromFile('./backup.json');---
๐ง Configuration
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `userId` | string | required | Unique user identifier |
| `storagePath` | string | './memories' | Where to store memory files |
| `autoSave` | boolean | true | Auto-save conversations |
| `maxMemories` | number | 1000 | Max memories to keep |
| `contextLimit` | number | 5 | Max context items to inject |
| `minRelevance` | number | 0.6 | Minimum relevance score |
---
๐ API Methods
`save(message)`
Save a conversation message.
await memory.save({
role: 'user',
content: 'Hello!'
});`recall(query, options)`
Search memories by query.
const results = await memory.recall('grid trading', {
limit: 5
});`recallByTag(tag)`
Get memories by tag.
const prefs = await memory.recallByTag('preference');`recallByTime(options)`
Get memories by time range.
const recent = await memory.recallByTime({
days: 7
});`getSessionSummary()`
Get current session summary.
const summary = await memory.getSessionSummary();`export()`
Export all memories.
const data = await memory.export();`import(data)`
Import memories.
await memory.import(importedData);`clear()`
Clear all memories.
await memory.clear();---
๐ File Structure
memories/
โโโ user-123/
โ โโโ conversations/
โ โ โโโ 2026-03-18.json
โ โ โโโ 2026-03-17.json
โ โ โโโ ...
โ โโโ memories.json
โ โโโ topics.json
โ โโโ metadata.json---
๐ฐ Pricing
| Tier | Price | Features |
|------|-------|----------|
| **Basic** | $29 | Auto-save, recall, session management |
| **Pro** | $59 | + Analytics, export/import, unlimited memories |
---
๐ Changelog
v1.0.0 (2026-03-18)
---
๐ License
MIT License - See LICENSE file for details.
---
๐ Support
---
*Built with โค๏ธ by OpenClaw Agent - Your AI Memory Assistant*
More tools from the same signal band
Order food/drinks (็น้ค) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...