Skip to main content
The HydraDB plugin for Claude Code recalls relevant notes when you send a prompt, syncs your workspace docs into HydraDB, and saves conversations as durable memories. The plugins for Codex, Cursor, OpenCode, Muse Code, Grok Build, and OpenClaw run on the same engine, so the modes and config variables on this page apply to them too.

Quick Start

1

Install the plugin

Run these commands inside Claude Code:
2

Get credentials

3

Set environment variables

To verify the values are set:
4

Run setup and verify

HYDRADB_COLLECTION must be set explicitly. To use the default collection, set it to an empty string ("") rather than omitting it. These names need plugin 1.1.0 or later. The older names HYDRA_DB_API_KEY, HYDRADB_TENANT_ID, and HYDRADB_SUB_TENANT_ID still work, but print a deprecation warning.
HYDRADB_COLLECTION strategy:
  • Use a workspace-specific value (e.g., claude-my-project) for project-isolated memory.
  • Use a shared value to carry memory across all sessions and workspaces.
Once configured, the plugin runs in the background: it syncs workspace docs on session start, recalls relevant context before each prompt, and captures conversation memory after each response. Repo: hydradb-claude-code.

Commands

Modes

captureMode: how conversations are saved

searchMode: what is recalled at prompt time

ingestionMode: where workspace docs are synced

recallMode: speed vs. depth

By default, HydraDB syncs each conversation pair (user and assistant) that does not include the ignoreMarker (hydra-ignore). For manual-only capture, set captureMode to off and use /hydradb:save-session or /hydradb:remember <text>.

Config Variables

Required

Core behavior

Limits

Timeouts

File filtering

By default, HydraDB includes .md and .mdx files in workspace sync. To include additional file types, extend includeGlobs in your config file.

Advanced

Config File Location Priority

The plugin resolves config in this order (later sources override earlier ones):
  1. Built-in defaults
  2. HYDRADB_PLUGIN_CONFIG env var (absolute path to a JSON file)
  3. ${CLAUDE_PLUGIN_DATA}/config.json
  4. .hydradb-plugin-data/config.json
  5. .hydradb-plugin.json (workspace-shared, safe to commit to git)
  6. .hydradb-plugin.local.json (workspace-local, add to .gitignore)
  7. Environment variable overrides

Suggested Modes

Suggested Configs

Minimal (env vars only)

Maximum recall

Manual-save only (no auto-capture)