Additive, lifecycle-aware RushDB memory for OpenClaw.
The plugin recalls scope-authorized historical context before inference and durably captures successful completed turns. OpenClaw's local Markdown and SQLite memory remain active.
- Node.js 22.14 or newer
- OpenClaw 2026.8.1-beta.2 or newer
- A RushDB project API key from app.rushdb.com
openclaw plugins install @rushdb/openclaw-memorySet the API key in the OpenClaw gateway environment:
export RUSHDB_API_KEY="your-project-api-key"Optionally set RUSHDB_API_URL for self-hosted RushDB and RUSHDB_MEMORY_SCOPE_SALT to make participant hashes deployment-specific.
The defaults enable automatic recall and capture. Optional plugin configuration:
{
"plugins": {
"entries": {
"rushdb-memory": {
"enabled": true,
"config": {
"profileId": "default",
"localScopeId": "optional-stable-local-profile",
"autoRecall": true,
"autoCapture": true,
"recallTimeoutMs": 300
}
}
}
}
}For local/CLI conversations, set localScopeId when multiple sessions should share one private participant scope. Channel conversations derive participant scope from host session metadata.
- Only host-authorized direct/private or eligible local conversations are captured.
- Sandboxed, group, channel, automation, and subagent session keys fail closed.
- Only the latest successful user/assistant pair is persisted; system prompts, tool transcripts, command output, secrets, and local paths are not automatically uploaded.
- Recall has a short fail-open timeout, so RushDB availability never blocks the OpenClaw reply.
- Writes first enter a mode-
0600local outbox under~/.openclaw/rushdb-memory/outboxand use deterministic IDs plus idempotent RushDB upserts. - Recalled records are injected as untrusted historical context, never as instructions or policy.
The plugin automatically projects completed turns to EPISODE. It does not replace OpenClaw's explicit local memory-write path or expose a model-callable canonical fact writer.
pnpm install
pnpm check
npm pack --dry-runThe provider-neutral AgentMemoryEvent v1 implementation is supplied by
@rushdb/agent-memory-contract.
CI verifies pull requests and every push to main. A successful main build publishes the version in package.json to npm when that exact version is not already present. Configure the repository secret NPM_TOKEN with publish access to the @rushdb scope. Bump version before merging a subsequent release.
Apache-2.0