Skip to main content
The HydraDB plugin for Claude Code runs in the background: it syncs your workspace docs into HydraDB on session start, retrieves relevant context before each prompt, and saves the conversation as memories after each response. The plugins for Codex, Cursor, OpenCode, Muse Code, Grok Build, OpenClaw, and DeepSeek Harness run on the same engine, so the modes and other configuration settings on this page apply to them too.

Quickstart

1

Install the plugin

Run these commands inside Claude Code:
2

Get credentials

3

Set environment variables

HYDRADB_COLLECTION must be set explicitly:
  • Set it to an empty string ("") to use the default collection. Do not omit it.
  • Set a workspace-specific value (for example, claude-my-project) for project-isolated memory.
  • Set a shared value to carry memory across all sessions and workspaces.
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.
To verify the values are set:
4

Run setup and verify

Commands

Configuration

Set each setting below in a JSON config file. The required settings and the timeouts also have environment variables.

Config file locations

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

Required

Core behavior

Modes

captureMode: how conversations are saved

By default, the plugin saves every 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>.

searchMode: what is queried at prompt time

ingestionMode: where workspace docs are synced

recallMode: speed or depth

Limits

Timeouts

File filtering

To sync file types other than .md and .mdx, extend includeGlobs in your config file.

Advanced

Suggested configurations

Pick the mode values that match your use case: The first row is the default, so it needs no mode settings.

Minimal (env vars only)

Maximum retrieval coverage

Manual saves only (no automatic capture)

Feedback and contributions

This plugin is open source. Raise an issue or contribute on GitHub.