Skip to main content

Quick Start

1

Install the plugin

Requires OpenClaw 2026.1.29 or later. Run openclaw --version to check.
2

Get credentials

  1. Create an API key from the HydraDB dashboard
  2. Create or copy your tenant ID from the HydraDB dashboard
3

Run interactive onboarding (recommended)

The wizard writes credentials to 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

  1. $OPENCLAW_CONFIG_PATH (if set)
  2. $OPENCLAW_STATE_DIR/openclaw.json (if set)
  3. $OPENCLAW_HOME/.openclaw/openclaw.json (if set)
  4. Default path by OS:
    • macOS/Linux: ~/.openclaw/openclaw.json
    • Windows: %USERPROFILE%\.openclaw\openclaw.json

Manual Configuration

If you prefer not to use the onboarding wizard, configure credentials directly. Two required values: your API key and Tenant ID. Environment variables (recommended for secrets):
Or set them directly in your OpenClaw settings file:
~/.openclaw/openclaw.json
After any config change, restart the gateway so the plugin reloads:

Configuration 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) with infer: true and upsert: true. The session ID is used as source_id so 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

The plugin is enabled but credentials are missing. Run:
The gateway needs to reload plugin commands after installation or config changes:

Source & Show Support

If this HydraDB plugin makes your OpenClaw workflow smarter, please star the open-source repos that power it.

openclaw-hydradb

Star on GitHub if you use OpenClaw too.