Quickstart
1
Install the plugin
Run these commands inside Claude Code:
2
Get credentials
- Create an API key from the HydraDB dashboard
- Create or copy your database ID from the HydraDB dashboard
3
Set environment variables
- macOS/Linux (bash)
- macOS/Linux (zsh)
- Windows (PowerShell)
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.- macOS/Linux
- Windows (PowerShell)
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:- Built-in defaults
HYDRADB_PLUGIN_CONFIGenv var (absolute path to a JSON file)${CLAUDE_PLUGIN_DATA}/config.json.hydradb-plugin-data/config.json.hydradb-plugin.json(workspace-shared, safe to commit to git).hydradb-plugin.local.json(workspace-local, add to.gitignore)- Environment variable overrides
Required
Core behavior
Modes
captureMode: how conversations are saved
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.
