π¦ ClawHub
Trident Plugin
by @shivaclaw
Permanent memory for OpenClaw agents. Lossless capture, intelligent routing, semantic recall, and disaster recovery in five tiers.
βοΈ Configuration
Edit ~/.openclaw/workspace/openclaw.json:
{
"plugins": {
"trident": {
"enabled": true,
"storage_path": "~/.openclaw/workspace/memory",
"layer0": {
"enabled": true,
"sqlite_path": "~/.openclaw/workspace/memory/layer0/lossless.db"
},
"layer0_5": {
"enabled": true,
"model": "anthropic/claude-haiku-4-5",
"interval_minutes": 15,
"heartbeat_enabled": true,
"template_sha256_verify": true
},
"layer1": {
"enabled": true,
"hierarchy": {
"memory": "MEMORY.md",
"daily": "memory/daily/",
"self": "memory/self/",
"lessons": "memory/lessons/",
"projects": "memory/projects/"
}
},
"layer1_5": {
"enabled": true,
"qdrant": {
"mode": "binary", // "binary", "docker", or "cloud"
"host": "localhost",
"port": 6333,
"binary_path": "~/.openclaw/workspace/memory/layer1_5/qdrant",
"cloud_url": null
},
"falkordb": {
"mode": "binary", // "binary", "docker", "redis", or "cloud"
"host": "localhost",
"port": 6379,
"binary_path": "~/.openclaw/workspace/memory/layer1_5/falkordb",
"cloud_url": null
},
"embedding_model": "text-embedding-3-small",
"batch_size": 100
},
"layer2": {
"enabled": true,
"git": {
"enabled": true,
"remote": "https://github.com/YOUR_USERNAME/memory.git",
"commit_interval_hours": 24
},
"snapshots": {
"enabled": true,
"path": "~/.openclaw/workspace/memory/snapshots"
}
}
}
}
}
π Tips & Best Practices
"Qdrant binary failed to start"
# Check if port 6333 is available
lsof -i :6333Or use alternative port
openclaw trident configure --qdrant-port 6334
"FalkorDB connection timeout"
# Restart the database
openclaw trident restart-falkordbOr switch to cloud
openclaw trident configure --falkordb-mode=cloud --falkordb-cloud-url=...
"Memory search is slow"
Qdrant index not built. Rebuild:
openclaw trident rebuild-embeddings
TERMINAL
clawhub install project-trident-plugin