@openclaw-memory/cli
v0.3.0
Published
Command-line interface for managing OpenClaw memory daemon (ocmem)
Maintainers
Readme
@openclaw-memory/cli
Command-line interface for managing OpenClaw memory daemon (ocmem).
Installation
npm install -g @openclaw-memory/cliQuick Start
# Check daemon status
ocmem status
# View daemon health and memory stats
ocmem debug
# Export all memories to JSON
ocmem export my-agent > backup.json
# Clear all memories for an agent
ocmem clear my-agent
# Purge expired memories
ocmem purgeCommands
ocmem status
Check if the daemon is running and show connection info.
ocmem statusocmem debug
Display detailed daemon health, MongoDB status, and memory statistics.
ocmem debugocmem export <agentId>
Export all memories for an agent to JSON (stdout).
ocmem export my-agent > backup.jsonocmem clear <agentId>
Delete all memories for a specific agent.
ocmem clear my-agent --confirmocmem purge
Remove expired memories (TTL-based cleanup).
ocmem purgeConfiguration
The CLI connects to the daemon via http://localhost:7654 by default.
Override with environment variable:
export MEMORY_DAEMON_URL=http://localhost:8080
ocmem statusDocumentation
Full documentation: github.com/mrlynn/openclaw-mongodb-memory
License
MIT
