π¦ ClawHub
Mema Brain
by @1999azzar
Mema's personal brain - SQLite metadata index for documents and Redis short-term context buffer. Use for organizing workspace knowledge paths and managing ep...
TERMINAL
clawhub install memaπ About This Skill
name: mema description: Mema's personal brain - SQLite metadata index for documents and Redis short-term context buffer. Use for organizing workspace knowledge paths and managing ephemeral session state. metadata: {"openclaw":{"requires":{"bins":["python3"],"env":["REDIS_HOST","REDIS_PORT"]},"install":[{"id":"pip-deps","kind":"exec","command":"pip install -r requirements.txt"}]}}
Mema Brain (Centralized Memory)
Standardized memory system providing a Metadata Index (SQLite) and Short-Term Context (Redis).
Core Components
1. Document Index (SQLite)
~/.openclaw/memory/main.sqlite2. Short-Term Memory (Redis)
mema:mental:*Core Workflows
Indexing Knowledge
Record a file's location and tags in the local database.python3 $WORKSPACE/skills/mema/scripts/mema.py index [--tag ] Searching Index
List indexed paths filtered by tag or recency.python3 $WORKSPACE/skills/mema/scripts/mema.py list [--tag ] Mental State (Redis)
Manage key-value pairs in themema:mental namespace.
python3 $WORKSPACE/skills/mema/scripts/mema.py mental set [--ttl N] python3 $WORKSPACE/skills/mema/scripts/mema.py mental get Setup
1. Copyenv.example.txt to .env.
2. Configure REDIS_HOST and REDIS_PORT (defaults: localhost:6379).
3. Initialize the SQLite schema:
python3 $WORKSPACE/skills/mema/scripts/mema.py initReliability & Security
REDIS_HOST to trusted instances.~/.openclaw/memory directory.βοΈ Configuration
1. Copy env.example.txt to .env.
2. Configure REDIS_HOST and REDIS_PORT (defaults: localhost:6379).
3. Initialize the SQLite schema:
python3 $WORKSPACE/skills/mema/scripts/mema.py init