Quick Start
1
Install the plugin
Requires OpenClaw 2026.1.29 or later. Run
openclaw --version to check.2
Get credentials
- Create an API key from the HydraDB dashboard
- Create or copy your database ID from the HydraDB dashboard
3
Run interactive onboarding (recommended)
plugins.entries.openclaw.config inside your OpenClaw settings file.4
Restart OpenClaw gateway
The onboarding wizard auto-detects your config path using OpenClaw’s normal resolution order. Manual path selection is usually not needed.
Config path resolution order
$OPENCLAW_CONFIG_PATH(if set)$OPENCLAW_STATE_DIR/openclaw.json(if set)$OPENCLAW_HOME/.openclaw/openclaw.json(if set)- Default path by OS:
- macOS/Linux:
~/.openclaw/openclaw.json - Windows:
%USERPROFILE%\.openclaw\openclaw.json
- macOS/Linux:
Manual Configuration
If you prefer not to use the onboarding wizard, configure credentials directly. Two required values: your API key and Tenant ID (your database ID). Environment variables (recommended for secrets):- macOS/Linux (bash or zsh)
- Windows (PowerShell)
- macOS/Linux
- Windows
~/.openclaw/openclaw.jsonConfiguration Options
How It Works
- Auto-recall: before every AI turn, queries HydraDB (
POST /recall/recall_preferences) for relevant memories and injects graph-enriched context: entity paths, chunk relations, and linked extra context. - Auto-capture: after every AI turn, the last user/assistant exchange is sent to HydraDB (
POST /memories/add_memory) withinfer: trueandupsert: true. The session ID is used assource_idso HydraDB groups exchanges per session and builds the knowledge graph automatically.
Slash Commands
AI Tools
CLI Reference
Context Injection
Recalled context is injected inside<hydra-context> tags containing:
- Entity paths: knowledge graph paths connecting entities relevant to the query
- Context chunks: retrieved memory chunks with source titles, graph relations, and linked extra context
Troubleshooting
Not configured. Run openclaw hydra onboard
Not configured. Run openclaw hydra onboard
The plugin is enabled but credentials are missing. Run:
CLI says a command is unknown
CLI says a command is unknown
The gateway needs to reload plugin commands after installation or config changes:
Source code
openclaw-hydradb
View the source on GitHub.
